vtkPiecewiseControlPointsItem Class Reference

#include <vtkPiecewiseControlPointsItem.h>

Inheritance diagram for vtkPiecewiseControlPointsItem:

Inheritance graph
[legend]
Collaboration diagram for vtkPiecewiseControlPointsItem:

Collaboration graph
[legend]

List of all members.


Detailed Description

Control points for vtkPiecewiseFunction.

vtkPiecewiseControlPointsItem draws the control points of a vtkPiecewiseFunction.

See also:
vtkControlPointsItem vtkPiecewiseFunctionItem vtkCompositeTransferFunctionItem
Examples:
vtkPiecewiseControlPointsItem (Examples)
Tests:
vtkPiecewiseControlPointsItem (Tests)

Definition at line 40 of file vtkPiecewiseControlPointsItem.h.


Public Types

typedef vtkControlPointsItem Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkIdType AddPoint (double *newPos)
virtual vtkIdType RemovePoint (double *pos)
virtual void SetPiecewiseFunction (vtkPiecewiseFunction *function)
virtual vtkPiecewiseFunctionGetPiecewiseFunction ()
virtual void SetStrokeMode (bool)

Static Public Member Functions

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

Protected Member Functions

 vtkPiecewiseControlPointsItem ()
virtual ~vtkPiecewiseControlPointsItem ()
virtual unsigned long int GetControlPointsMTime ()
virtual int GetNumberOfPoints () const
virtual void GetControlPoint (vtkIdType index, double *point)
virtual void SetControlPoint (vtkIdType index, double *point)
virtual void EditPoint (float tX, float tY)

Protected Attributes

vtkPiecewiseFunctionPiecewiseFunction

Member Typedef Documentation

Reimplemented from vtkControlPointsItem.

Definition at line 43 of file vtkPiecewiseControlPointsItem.h.


Constructor & Destructor Documentation

vtkPiecewiseControlPointsItem::vtkPiecewiseControlPointsItem (  )  [protected]

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


Member Function Documentation

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

Reimplemented from vtkControlPointsItem.

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

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

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

Reimplemented from vtkControlPointsItem.

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

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

Creates a piecewise control points object

Reimplemented from vtkObject.

virtual void vtkPiecewiseControlPointsItem::SetPiecewiseFunction ( vtkPiecewiseFunction function  )  [virtual]

Set the piecewise function to draw its points

virtual vtkPiecewiseFunction* vtkPiecewiseControlPointsItem::GetPiecewiseFunction (  )  [virtual]

Set the piecewise function to draw its points

virtual vtkIdType vtkPiecewiseControlPointsItem::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 vtkControlPointsItem.

virtual vtkIdType vtkPiecewiseControlPointsItem::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 vtkControlPointsItem.

virtual void vtkPiecewiseControlPointsItem::SetStrokeMode ( bool   )  [virtual]

Controls whether or not control points are drawn (true) or clicked and moved (false). False by default.

virtual unsigned long int vtkPiecewiseControlPointsItem::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.

virtual int vtkPiecewiseControlPointsItem::GetNumberOfPoints (  )  const [protected, virtual]

Returns the total number of points

Implements vtkControlPointsItem.

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

Implements vtkControlPointsItem.

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

Implements vtkControlPointsItem.

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


Member Data Documentation

Definition at line 84 of file vtkPiecewiseControlPointsItem.h.


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

Generated on Wed Aug 24 11:54:49 2011 for VTK by  doxygen 1.5.6