VTK
|
represent surface properties of a 2D image More...
#include <vtkProperty2D.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual vtkTypeBool | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkProperty2D * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) override |
Methods invoked by print to print information about the object including superclasses. More... | |
void | DeepCopy (vtkProperty2D *p) |
Assign one property to another. More... | |
virtual void | Render (vtkViewport *vtkNotUsed(viewport)) |
Have the device specific subclass render this property. More... | |
virtual void | SetColor (double, double, double) |
Set/Get the RGB color of this property. More... | |
virtual void | SetColor (double[3]) |
Set/Get the RGB color of this property. More... | |
virtual double * | GetColor () |
Set/Get the RGB color of this property. More... | |
virtual void | GetColor (double &, double &, double &) |
Set/Get the RGB color of this property. More... | |
virtual void | GetColor (double[3]) |
Set/Get the RGB color of this property. More... | |
virtual double | GetOpacity () |
Set/Get the Opacity of this property. More... | |
virtual void | SetOpacity (double) |
Set/Get the Opacity of this property. More... | |
virtual void | SetPointSize (float) |
Set/Get the diameter of a Point. More... | |
virtual float | GetPointSize () |
Set/Get the diameter of a Point. More... | |
virtual void | SetLineWidth (float) |
Set/Get the width of a Line. More... | |
virtual float | GetLineWidth () |
Set/Get the width of a Line. More... | |
virtual void | SetLineStipplePattern (int) |
Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). More... | |
virtual int | GetLineStipplePattern () |
Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off). More... | |
virtual void | SetLineStippleRepeatFactor (int) |
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. More... | |
virtual int | GetLineStippleRepeatFactor () |
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated. More... | |
virtual void | SetDisplayLocation (int) |
The DisplayLocation is either background or foreground. More... | |
virtual int | GetDisplayLocation () |
The DisplayLocation is either background or foreground. More... | |
void | SetDisplayLocationToBackground () |
The DisplayLocation is either background or foreground. More... | |
void | SetDisplayLocationToForeground () |
The DisplayLocation is either background or foreground. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
vtkTypeBool | HasObserver (unsigned long event) |
vtkTypeBool | HasObserver (const char *event) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
void | PrintRevisions (ostream &) |
Legacy. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
Static Public Member Functions | |
static vtkTypeBool | IsTypeOf (const char *type) |
static vtkProperty2D * | SafeDownCast (vtkObjectBase *o) |
static vtkProperty2D * | New () |
Creates a vtkProperty2D with the following default values: Opacity 1, Color (1,1,1) More... | |
Static Public Member Functions inherited from vtkObject | |
static vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkProperty2D () | |
~vtkProperty2D () override | |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
double | Color [3] |
double | Opacity |
float | PointSize |
float | LineWidth |
int | LineStipplePattern |
int | LineStippleRepeatFactor |
int | DisplayLocation |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
represent surface properties of a 2D image
vtkProperty2D contains properties used to render two dimensional images and annotations.
Definition at line 40 of file vtkProperty2D.h.
typedef vtkObject vtkProperty2D::Superclass |
Definition at line 43 of file vtkProperty2D.h.
|
protected |
|
overrideprotected |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class.
Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObjectBase.
|
static |
|
protectedvirtual |
vtkProperty2D* vtkProperty2D::NewInstance | ( | ) | const |
|
overridevirtual |
|
static |
Creates a vtkProperty2D with the following default values: Opacity 1, Color (1,1,1)
void vtkProperty2D::DeepCopy | ( | vtkProperty2D * | p | ) |
Assign one property to another.
Set/Get the RGB color of this property.
|
virtual |
Set/Get the RGB color of this property.
|
virtual |
Set/Get the RGB color of this property.
Set/Get the RGB color of this property.
|
virtual |
Set/Get the RGB color of this property.
|
virtual |
Set/Get the Opacity of this property.
|
virtual |
Set/Get the Opacity of this property.
|
virtual |
Set/Get the diameter of a Point.
The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
|
virtual |
Set/Get the diameter of a Point.
The size is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
|
virtual |
Set/Get the width of a Line.
The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
|
virtual |
Set/Get the width of a Line.
The width is expressed in screen units. This is only implemented for OpenGL. The default is 1.0.
|
virtual |
Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off).
This is only implemented for OpenGL, not OpenGL2. The default is 0xFFFF.
|
virtual |
Set/Get the stippling pattern of a Line, as a 16-bit binary pattern (1 = pixel on, 0 = pixel off).
This is only implemented for OpenGL, not OpenGL2. The default is 0xFFFF.
|
virtual |
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated.
This is only implemented for OpenGL, not OpenGL2. The default is 1.
|
virtual |
Set/Get the stippling repeat factor of a Line, which specifies how many times each bit in the pattern is to be repeated.
This is only implemented for OpenGL, not OpenGL2. The default is 1.
|
virtual |
The DisplayLocation is either background or foreground.
If it is background, then this 2D actor will be drawn behind all 3D props or foreground 2D actors. If it is background, then this 2D actor will be drawn in front of all 3D props and background 2D actors. Within 2D actors of the same DisplayLocation type, order is determined by the order in which the 2D actors were added to the viewport.
|
virtual |
The DisplayLocation is either background or foreground.
If it is background, then this 2D actor will be drawn behind all 3D props or foreground 2D actors. If it is background, then this 2D actor will be drawn in front of all 3D props and background 2D actors. Within 2D actors of the same DisplayLocation type, order is determined by the order in which the 2D actors were added to the viewport.
|
inline |
The DisplayLocation is either background or foreground.
If it is background, then this 2D actor will be drawn behind all 3D props or foreground 2D actors. If it is background, then this 2D actor will be drawn in front of all 3D props and background 2D actors. Within 2D actors of the same DisplayLocation type, order is determined by the order in which the 2D actors were added to the viewport.
Definition at line 124 of file vtkProperty2D.h.
|
inline |
The DisplayLocation is either background or foreground.
If it is background, then this 2D actor will be drawn behind all 3D props or foreground 2D actors. If it is background, then this 2D actor will be drawn in front of all 3D props and background 2D actors. Within 2D actors of the same DisplayLocation type, order is determined by the order in which the 2D actors were added to the viewport.
Definition at line 126 of file vtkProperty2D.h.
|
inlinevirtual |
Have the device specific subclass render this property.
Definition at line 133 of file vtkProperty2D.h.
|
protected |
Definition at line 139 of file vtkProperty2D.h.
|
protected |
Definition at line 140 of file vtkProperty2D.h.
|
protected |
Definition at line 141 of file vtkProperty2D.h.
|
protected |
Definition at line 142 of file vtkProperty2D.h.
|
protected |
Definition at line 143 of file vtkProperty2D.h.
|
protected |
Definition at line 144 of file vtkProperty2D.h.
|
protected |
Definition at line 145 of file vtkProperty2D.h.