VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkColorTransferControlPointsItem Class Reference

Control points for vtkColorTransferFunction. More...

#include <vtkColorTransferControlPointsItem.h>

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

List of all members.

Public Types

typedef vtkControlPointsItem Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkColorTransferControlPointsItemNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
void SetColorTransferFunction (vtkColorTransferFunction *function)
virtual vtkIdType GetNumberOfPoints () const
virtual void GetControlPoint (vtkIdType index, double *point) const
virtual void SetControlPoint (vtkIdType index, double *point)
virtual vtkIdType AddPoint (double *newPos)
virtual vtkIdType RemovePoint (double *pos)
virtual vtkColorTransferFunctionGetColorTransferFunction ()
virtual void SetColorFill (bool)
virtual bool GetColorFill ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static
vtkColorTransferControlPointsItem
SafeDownCast (vtkObjectBase *o)
static
vtkColorTransferControlPointsItem
New ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkColorTransferControlPointsItem ()
virtual ~vtkColorTransferControlPointsItem ()
virtual void emitEvent (unsigned long event, void *params)
virtual unsigned long int GetControlPointsMTime ()
virtual void DrawPoint (vtkContext2D *painter, vtkIdType index)
virtual void EditPoint (float tX, float tY)

Protected Attributes

vtkColorTransferFunctionColorTransferFunction
bool ColorFill

Detailed Description

Control points for vtkColorTransferFunction.

vtkColorTransferControlPointsItem draws the control points of a vtkColorTransferFunction.

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

Definition at line 38 of file vtkColorTransferControlPointsItem.h.


Member Typedef Documentation

Reimplemented from vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

Definition at line 41 of file vtkColorTransferControlPointsItem.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkColorTransferControlPointsItem::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 vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

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

Reimplemented in vtkCompositeControlPointsItem.

Reimplemented from vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

Reimplemented from vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

Reimplemented from vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

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

Reimplemented in vtkCompositeControlPointsItem.

Creates a piecewise control points object

Reimplemented from vtkObject.

Reimplemented in vtkCompositeControlPointsItem.

Set the piecewise function to draw its points

Reimplemented in vtkCompositeControlPointsItem.

Get the piecewise function

Return the number of points in the color transfer function.

Implements vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

virtual void vtkColorTransferControlPointsItem::GetControlPoint ( vtkIdType  index,
double point 
) const [virtual]

Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index. Note: The y (point[1]) is always 0.5

Implements vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

virtual void vtkColorTransferControlPointsItem::SetControlPoint ( vtkIdType  index,
double point 
) [virtual]

Sets the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index. Changing the y has no effect, it will always be 0.5

Implements vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

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.

Implements vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

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.

Implements vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

virtual void vtkColorTransferControlPointsItem::SetColorFill ( bool  ) [virtual]

If ColorFill is true, the control point brush color is set with the matching color in the color transfer function. False by default.

If ColorFill is true, the control point brush color is set with the matching color in the color transfer function. False by default.

virtual void vtkColorTransferControlPointsItem::emitEvent ( unsigned long  event,
void *  params 
) [protected, virtual]

Implements vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

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

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

Implements vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

virtual void vtkColorTransferControlPointsItem::DrawPoint ( vtkContext2D painter,
vtkIdType  index 
) [protected, virtual]

Internal function that paints a collection of points and optionally excludes some.

Reimplemented from vtkControlPointsItem.

Reimplemented in vtkCompositeControlPointsItem.

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

Reimplemented in vtkCompositeControlPointsItem.


Member Data Documentation

Definition at line 95 of file vtkColorTransferControlPointsItem.h.

Definition at line 97 of file vtkColorTransferControlPointsItem.h.


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