Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPVTransferFunction2DBox Class Reference

Shape that represents an individual control node in a 2D transfer function. More...

#include <vtkPVTransferFunction2DBox.h>

Inheritance diagram for vtkPVTransferFunction2DBox:
Inheritance graph
[legend]
Collaboration diagram for vtkPVTransferFunction2DBox:
Collaboration graph
[legend]

Public Member Functions

virtual const vtkRectdGetBox ()
 Returns the current box as [x0, y0, width, height]. More...
 
virtual vtkImageDataGetTexture ()
 Get the texture for this box item. More...
 
virtual void SetBox (double x, double y, double width, double height)
 Set position and width with respect to origin i.e. More...
 
virtual void SetBox (const vtkRectd &b)
 Set position and width with respect to origin i.e. More...
 
virtual void SetColor (double, double, double, double)
 Set/Get the color (r,g,b,a) to be used for this box. More...
 
virtual void SetColor (double [4])
 Set/Get the color (r,g,b,a) to be used for this box. More...
 
virtual doubleGetColor ()
 Set/Get the color (r,g,b,a) to be used for this box. More...
 
virtual void GetColor (double &, double &, double &, double &)
 Set/Get the color (r,g,b,a) to be used for this box. More...
 
virtual void GetColor (double [4])
 Set/Get the color (r,g,b,a) to be used for this box. More...
 
virtual void SetTextureSize (int, int)
 Set/Get the texture size of the box. More...
 
void SetTextureSize (int [2])
 Set/Get the texture size of the box. More...
 
virtual intGetTextureSize ()
 Set/Get the texture size of the box. More...
 
virtual void GetTextureSize (int &, int &)
 Set/Get the texture size of the box. More...
 
virtual void GetTextureSize (int [2])
 Set/Get the texture size of the box. More...
 
virtual void SetGaussianSigmaFactor (double)
 Set/Get the standard deviation for the gaussian function. More...
 
virtual double GetGaussianSigmaFactor ()
 Set/Get the standard deviation for the gaussian function. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual vtkMTimeType GetMTime ()
 
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)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkPVTransferFunction2DBoxNew ()
 Instantiate the class. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkPVTransferFunction2DBox ()
 
 ~vtkPVTransferFunction2DBox () override
 
virtual void ComputeTexture ()
 Internal method to compute texture. More...
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) VTK_OVERRIDE
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- 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

vtkRectd Box
 
double Color [4] = { 1, 1, 1, 1 }
 
int TextureSize [2] = { 128, 128 }
 
double GaussianSigmaFactor = 30.0
 
vtkImageDataTexture = nullptr
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 
typedef vtkObject Superclass
 Standard methods for the VTK class. More...
 
static int IsTypeOf (const char *type)
 Standard methods for the VTK class. More...
 
static vtkPVTransferFunction2DBoxSafeDownCast (vtkObject *o)
 Standard methods for the VTK class. More...
 
virtual const char * GetClassName ()
 Standard methods for the VTK class. More...
 
virtual int IsA (const char *type)
 Standard methods for the VTK class. More...
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Standard methods for the VTK class. More...
 

Detailed Description

Shape that represents an individual control node in a 2D transfer function.

Definition at line 22 of file vtkPVTransferFunction2DBox.h.

Member Typedef Documentation

◆ Superclass

Standard methods for the VTK class.

Definition at line 34 of file vtkPVTransferFunction2DBox.h.

Constructor & Destructor Documentation

◆ vtkPVTransferFunction2DBox()

vtkPVTransferFunction2DBox::vtkPVTransferFunction2DBox ( )
protected

◆ ~vtkPVTransferFunction2DBox()

vtkPVTransferFunction2DBox::~vtkPVTransferFunction2DBox ( )
overrideprotected

Member Function Documentation

◆ New()

static vtkPVTransferFunction2DBox* vtkPVTransferFunction2DBox::New ( )
static

Instantiate the class.

◆ GetClassName()

virtual const char* vtkPVTransferFunction2DBox::GetClassName ( )
virtual

Standard methods for the VTK class.

◆ IsTypeOf()

static int vtkPVTransferFunction2DBox::IsTypeOf ( const char *  type)
static

Standard methods for the VTK class.

◆ IsA()

virtual int vtkPVTransferFunction2DBox::IsA ( const char *  type)
virtual

Standard methods for the VTK class.

Reimplemented from vtkObjectBase.

◆ SafeDownCast()

static vtkPVTransferFunction2DBox* vtkPVTransferFunction2DBox::SafeDownCast ( vtkObject o)
static

Standard methods for the VTK class.

◆ PrintSelf()

void vtkPVTransferFunction2DBox::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

Standard methods for the VTK class.

Reimplemented from vtkObject.

◆ GetBox()

virtual const vtkRectd& vtkPVTransferFunction2DBox::GetBox ( )
virtual

Returns the current box as [x0, y0, width, height].

◆ SetBox() [1/2]

virtual void vtkPVTransferFunction2DBox::SetBox ( double  x,
double  y,
double  width,
double  height 
)
virtual

Set position and width with respect to origin i.e.

bottom left corner.

◆ SetBox() [2/2]

virtual void vtkPVTransferFunction2DBox::SetBox ( const vtkRectd b)
virtual

Set position and width with respect to origin i.e.

bottom left corner.

◆ SetColor() [1/2]

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

Set/Get the color (r,g,b,a) to be used for this box.

Defaults to opaque white (1, 1, 1, 1).

◆ SetColor() [2/2]

virtual void vtkPVTransferFunction2DBox::SetColor ( double  [4])
virtual

Set/Get the color (r,g,b,a) to be used for this box.

Defaults to opaque white (1, 1, 1, 1).

◆ GetColor() [1/3]

virtual double* vtkPVTransferFunction2DBox::GetColor ( )
virtual

Set/Get the color (r,g,b,a) to be used for this box.

Defaults to opaque white (1, 1, 1, 1).

◆ GetColor() [2/3]

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

Set/Get the color (r,g,b,a) to be used for this box.

Defaults to opaque white (1, 1, 1, 1).

◆ GetColor() [3/3]

virtual void vtkPVTransferFunction2DBox::GetColor ( double  [4])
virtual

Set/Get the color (r,g,b,a) to be used for this box.

Defaults to opaque white (1, 1, 1, 1).

◆ GetTexture()

virtual vtkImageData* vtkPVTransferFunction2DBox::GetTexture ( )
virtual

Get the texture for this box item.

The texture will be computed, if needed.

◆ SetTextureSize() [1/2]

virtual void vtkPVTransferFunction2DBox::SetTextureSize ( int  ,
int   
)
virtual

Set/Get the texture size of the box.

Defaults to (128, 128).

◆ SetTextureSize() [2/2]

void vtkPVTransferFunction2DBox::SetTextureSize ( int  [2])

Set/Get the texture size of the box.

Defaults to (128, 128).

◆ GetTextureSize() [1/3]

virtual int* vtkPVTransferFunction2DBox::GetTextureSize ( )
virtual

Set/Get the texture size of the box.

Defaults to (128, 128).

◆ GetTextureSize() [2/3]

virtual void vtkPVTransferFunction2DBox::GetTextureSize ( int ,
int  
)
virtual

Set/Get the texture size of the box.

Defaults to (128, 128).

◆ GetTextureSize() [3/3]

virtual void vtkPVTransferFunction2DBox::GetTextureSize ( int  [2])
virtual

Set/Get the texture size of the box.

Defaults to (128, 128).

◆ SetGaussianSigmaFactor()

virtual void vtkPVTransferFunction2DBox::SetGaussianSigmaFactor ( double  )
virtual

Set/Get the standard deviation for the gaussian function.

Defaults to 30.

◆ GetGaussianSigmaFactor()

virtual double vtkPVTransferFunction2DBox::GetGaussianSigmaFactor ( )
virtual

Set/Get the standard deviation for the gaussian function.

Defaults to 30.

◆ ComputeTexture()

virtual void vtkPVTransferFunction2DBox::ComputeTexture ( )
protectedvirtual

Internal method to compute texture.

Member Data Documentation

◆ Box

vtkRectd vtkPVTransferFunction2DBox::Box
protected

Definition at line 89 of file vtkPVTransferFunction2DBox.h.

◆ Color

double vtkPVTransferFunction2DBox::Color[4] = { 1, 1, 1, 1 }
protected

Definition at line 90 of file vtkPVTransferFunction2DBox.h.

◆ TextureSize

int vtkPVTransferFunction2DBox::TextureSize[2] = { 128, 128 }
protected

Definition at line 91 of file vtkPVTransferFunction2DBox.h.

◆ GaussianSigmaFactor

double vtkPVTransferFunction2DBox::GaussianSigmaFactor = 30.0
protected

Definition at line 92 of file vtkPVTransferFunction2DBox.h.

◆ Texture

vtkImageData* vtkPVTransferFunction2DBox::Texture = nullptr
protected

Definition at line 94 of file vtkPVTransferFunction2DBox.h.


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