VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkProperty2D Class Reference

represent surface properties of a 2D image More...

#include <vtkProperty2D.h>

Inheritance diagram for vtkProperty2D:
[legend]
Collaboration diagram for vtkProperty2D:
[legend]

Public Types

typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkProperty2DNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 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 doubleGetColor ()
 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 ()
 
int HasObserver (unsigned long event)
 
int 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...
 
vtkCommandGetCommand (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...
 
int HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
int 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 int IsTypeOf (const char *type)
 
static vtkProperty2DSafeDownCast (vtkObjectBase *o)
 
static vtkProperty2DNew ()
 Creates a vtkProperty2D with the following default values: Opacity 1, Color (1,1,1) More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 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 vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkProperty2D ()
 
 ~vtkProperty2D ()
 
- 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=NULL)
 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
 

Detailed Description

represent surface properties of a 2D image

vtkProperty2D contains properties used to render two dimensional images and annotations.

See also
vtkActor2D
Tests:
vtkProperty2D (Tests)

Definition at line 40 of file vtkProperty2D.h.

Member Typedef Documentation

Definition at line 43 of file vtkProperty2D.h.

Constructor & Destructor Documentation

vtkProperty2D::vtkProperty2D ( )
protected
vtkProperty2D::~vtkProperty2D ( )
protected

Member Function Documentation

static int vtkProperty2D::IsTypeOf ( const char *  type)
static
virtual int vtkProperty2D::IsA ( const char *  name)
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 vtkProperty2D* vtkProperty2D::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkProperty2D::NewInstanceInternal ( ) const
protectedvirtual
vtkProperty2D* vtkProperty2D::NewInstance ( ) const
void vtkProperty2D::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

Methods invoked by print to print information about the object including superclasses.

Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkObject.

static vtkProperty2D* vtkProperty2D::New ( )
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.

virtual void vtkProperty2D::SetColor ( double  ,
double  ,
double   
)
virtual

Set/Get the RGB color of this property.

virtual void vtkProperty2D::SetColor ( double  [3])
virtual

Set/Get the RGB color of this property.

virtual double* vtkProperty2D::GetColor ( )
virtual

Set/Get the RGB color of this property.

virtual void vtkProperty2D::GetColor ( double ,
double ,
double  
)
virtual

Set/Get the RGB color of this property.

virtual void vtkProperty2D::GetColor ( double  [3])
virtual

Set/Get the RGB color of this property.

virtual double vtkProperty2D::GetOpacity ( )
virtual

Set/Get the Opacity of this property.

virtual void vtkProperty2D::SetOpacity ( double  )
virtual

Set/Get the Opacity of this property.

virtual void vtkProperty2D::SetPointSize ( float  )
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 float vtkProperty2D::GetPointSize ( )
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 void vtkProperty2D::SetLineWidth ( float  )
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 float vtkProperty2D::GetLineWidth ( )
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 void vtkProperty2D::SetLineStipplePattern ( int  )
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. The default is 0xFFFF.

virtual int vtkProperty2D::GetLineStipplePattern ( )
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. The default is 0xFFFF.

virtual void vtkProperty2D::SetLineStippleRepeatFactor ( int  )
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. The default is 1.

virtual int vtkProperty2D::GetLineStippleRepeatFactor ( )
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. The default is 1.

virtual void vtkProperty2D::SetDisplayLocation ( int  )
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 int vtkProperty2D::GetDisplayLocation ( )
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.

void vtkProperty2D::SetDisplayLocationToBackground ( )
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.

void vtkProperty2D::SetDisplayLocationToForeground ( )
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.

virtual void vtkProperty2D::Render ( vtkViewport vtkNotUsedviewport)
inlinevirtual

Have the device specific subclass render this property.

Definition at line 133 of file vtkProperty2D.h.

Member Data Documentation

double vtkProperty2D::Color[3]
protected

Definition at line 139 of file vtkProperty2D.h.

double vtkProperty2D::Opacity
protected

Definition at line 140 of file vtkProperty2D.h.

float vtkProperty2D::PointSize
protected

Definition at line 141 of file vtkProperty2D.h.

float vtkProperty2D::LineWidth
protected

Definition at line 142 of file vtkProperty2D.h.

int vtkProperty2D::LineStipplePattern
protected

Definition at line 143 of file vtkProperty2D.h.

int vtkProperty2D::LineStippleRepeatFactor
protected

Definition at line 144 of file vtkProperty2D.h.

int vtkProperty2D::DisplayLocation
protected

Definition at line 145 of file vtkProperty2D.h.


The documentation for this class was generated from the following file: