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

Control points for vtkPiecewiseFunction. More...

#include <vtkPiecewiseControlPointsItem.h>

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

List of all members.

Public Types

typedef vtkControlPointsItem Superclass

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

vtkPiecewiseFunctionPiecewiseFunction

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 41 of file vtkPiecewiseControlPointsItem.h.


Member Typedef Documentation

Reimplemented from vtkControlPointsItem.

Definition at line 44 of file vtkPiecewiseControlPointsItem.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

Reimplemented from vtkControlPointsItem.

virtual vtkObjectBase* vtkPiecewiseControlPointsItem::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkControlPointsItem.

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.

Creates a piecewise control points object

Reimplemented from vtkObject.

Set the piecewise function to draw its points

Get the piecewise function

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.

Implements vtkControlPointsItem.

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.

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

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

virtual void vtkPiecewiseControlPointsItem::emitEvent ( unsigned long  event,
void *  params = 0 
) [protected, virtual]

Implements vtkControlPointsItem.

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 vtkIdType vtkPiecewiseControlPointsItem::GetNumberOfPoints ( ) const [protected, virtual]

Returns the total number of points

Implements vtkControlPointsItem.

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

Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index. point must be a double array of size 4.

Implements vtkControlPointsItem.

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

Sets 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 86 of file vtkPiecewiseControlPointsItem.h.


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