vtkCompositeControlPointsItem Class Reference

#include <vtkCompositeControlPointsItem.h>

Inheritance diagram for vtkCompositeControlPointsItem:

Inheritance graph
[legend]
Collaboration diagram for vtkCompositeControlPointsItem:

Collaboration graph
[legend]

List of all members.


Detailed Description

Control points for vtkCompositeFunction.

vtkCompositeControlPointsItem draws the control points of a vtkPiecewiseFunction and a vtkColorTransferFunction.

See also:
vtkControlPointsItem vtkColorTransferControlPointsItem vtkCompositeTransferFunctionItem
Tests:
vtkCompositeControlPointsItem (Tests)

Definition at line 38 of file vtkCompositeControlPointsItem.h.


Public Types

typedef
vtkColorTransferControlPointsItem 
Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetColorTransferFunction (vtkColorTransferFunction *function)
virtual vtkIdType AddPoint (double *newPos)
virtual vtkIdType RemovePoint (double *pos)
void SetOpacityFunction (vtkPiecewiseFunction *opacity)
virtual vtkPiecewiseFunctionGetOpacityFunction ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkCompositeControlPointsItem
SafeDownCast (vtkObject *o)
static
vtkCompositeControlPointsItem
New ()

Protected Member Functions

 vtkCompositeControlPointsItem ()
virtual ~vtkCompositeControlPointsItem ()
virtual unsigned long int GetControlPointsMTime ()
virtual void ComputePoints ()
virtual void GetControlPoint (vtkIdType index, double *pos)
virtual void SetControlPoint (vtkIdType index, double *point)
virtual void EditPoint (float tX, float tY)
void MergeColorTransferFunction ()

Protected Attributes

vtkPiecewiseFunctionOpacityFunction
bool Updating

Member Typedef Documentation

Reimplemented from vtkColorTransferControlPointsItem.

Definition at line 42 of file vtkCompositeControlPointsItem.h.


Constructor & Destructor Documentation

vtkCompositeControlPointsItem::vtkCompositeControlPointsItem (  )  [protected]

virtual vtkCompositeControlPointsItem::~vtkCompositeControlPointsItem (  )  [protected, virtual]


Member Function Documentation

virtual const char* vtkCompositeControlPointsItem::GetClassName (  )  [virtual]

Reimplemented from vtkColorTransferControlPointsItem.

static int vtkCompositeControlPointsItem::IsTypeOf ( const char *  name  )  [static]

Return 1 if this class type 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 vtkColorTransferControlPointsItem.

virtual int vtkCompositeControlPointsItem::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 vtkColorTransferControlPointsItem.

static vtkCompositeControlPointsItem* vtkCompositeControlPointsItem::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkColorTransferControlPointsItem.

virtual void vtkCompositeControlPointsItem::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 vtkColorTransferControlPointsItem.

static vtkCompositeControlPointsItem* vtkCompositeControlPointsItem::New (  )  [static]

Creates a piecewise control points object

Reimplemented from vtkColorTransferControlPointsItem.

virtual void vtkCompositeControlPointsItem::SetColorTransferFunction ( vtkColorTransferFunction function  )  [virtual]

Set the color transfer function to draw its points

Reimplemented from vtkColorTransferControlPointsItem.

void vtkCompositeControlPointsItem::SetOpacityFunction ( vtkPiecewiseFunction opacity  ) 

Utility function that calls SetPiecewiseFunction()

virtual vtkPiecewiseFunction* vtkCompositeControlPointsItem::GetOpacityFunction (  )  [virtual]

Utility function that calls SetPiecewiseFunction()

virtual vtkIdType vtkCompositeControlPointsItem::AddPoint ( double *  newPos  )  [virtual]

Add a point to the function. Returns the index of the point (0 based), or -1 on error. Subclasses should reimplement this function to do the actual work.

Reimplemented from vtkColorTransferControlPointsItem.

virtual vtkIdType vtkCompositeControlPointsItem::RemovePoint ( double *  pos  )  [virtual]

Remove a point of the function. Returns the index of the point (0 based), or -1 on error. Subclasses should reimplement this function to do the actual work.

Reimplemented from vtkColorTransferControlPointsItem.

virtual unsigned long int vtkCompositeControlPointsItem::GetControlPointsMTime (  )  [protected, virtual]

Must be reimplemented by subclasses to calculate the points to draw. It's subclass responsibility to call ComputePoints() via the callback

Reimplemented from vtkColorTransferControlPointsItem.

virtual void vtkCompositeControlPointsItem::ComputePoints (  )  [protected, virtual]

Must be reimplemented by subclasses to calculate the points to draw. It's subclass responsibility to call ComputePoints() via the callback

Reimplemented from vtkControlPointsItem.

virtual void vtkCompositeControlPointsItem::GetControlPoint ( vtkIdType  index,
double *  point 
) [protected, virtual]

Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index.

Reimplemented from vtkColorTransferControlPointsItem.

virtual void vtkCompositeControlPointsItem::SetControlPoint ( vtkIdType  index,
double *  point 
) [protected, virtual]

Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index.

Reimplemented from vtkColorTransferControlPointsItem.

virtual void vtkCompositeControlPointsItem::EditPoint ( float  tX,
float  tY 
) [protected, virtual]

Reimplemented from vtkColorTransferControlPointsItem.

void vtkCompositeControlPointsItem::MergeColorTransferFunction (  )  [protected]


Member Data Documentation

Definition at line 80 of file vtkCompositeControlPointsItem.h.

Definition at line 81 of file vtkCompositeControlPointsItem.h.


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

Generated on Wed Aug 24 11:31:43 2011 for VTK by  doxygen 1.5.6