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

Snaps points at the center of a cell. More...

#include <vtkCellCentersPointPlacer.h>

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

List of all members.

Public Types

enum  { ParametricCenter = 0, CellPointsMean, None }

Public Member Functions

virtual void AddProp (vtkProp *)
virtual void RemoveViewProp (vtkProp *prop)
virtual void RemoveAllProps ()
int HasProp (vtkProp *)
int GetNumberOfProps ()
virtual int ValidateWorldPosition (double worldPos[3])
virtual int ValidateDisplayPosition (vtkRenderer *, double displayPos[2])
virtual int ComputeWorldPosition (vtkRenderer *ren, double displayPos[2], double worldPos[3], double worldOrient[9])
virtual int ComputeWorldPosition (vtkRenderer *ren, double displayPos[2], double refWorldPos[3], double worldPos[3], double worldOrient[9])
virtual int ValidateWorldPosition (double worldPos[3], double worldOrient[9])
virtual vtkCellPickerGetCellPicker ()
virtual void SetMode (int)
virtual int GetMode ()

Static Public Member Functions

static vtkCellCentersPointPlacerNew ()

Protected Member Functions

 vtkCellCentersPointPlacer ()
 ~vtkCellCentersPointPlacer ()

Protected Attributes

vtkPropCollectionPickProps
vtkCellPickerCellPicker
int Mode
typedef vtkPointPlacer Superclass
static int IsTypeOf (const char *type)
static vtkCellCentersPointPlacerSafeDownCast (vtkObject *o)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)

Detailed Description

Snaps points at the center of a cell.

vtkCellCentersPointPlacer is a class to snap points on the center of cells. The class has 3 modes. In the ParametricCenter mode, it snaps points to the parametric center of the cell (see vtkCell). In CellPointsMean mode, points are snapped to the mean of the points in the cell. In 'None' mode, no snapping is performed. The computed world position is the picked position within the cell.

Usage:
The actors that render data and wish to be considered for placement by this placer are added to the list as
 placer->AddProp( actor );
See also:
vtkPointPlacer
Tests:
vtkCellCentersPointPlacer (Tests)

Definition at line 50 of file vtkCellCentersPointPlacer.h.


Member Typedef Documentation

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

Definition at line 58 of file vtkCellCentersPointPlacer.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
ParametricCenter 
CellPointsMean 
None 

Definition at line 122 of file vtkCellCentersPointPlacer.h.


Constructor & Destructor Documentation

vtkCellCentersPointPlacer::vtkCellCentersPointPlacer ( ) [protected]
vtkCellCentersPointPlacer::~vtkCellCentersPointPlacer ( ) [protected]

Member Function Documentation

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

Instantiate this class.

Reimplemented from vtkPointPlacer.

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

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

static int vtkCellCentersPointPlacer::IsTypeOf ( const char *  type) [static]

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

virtual int vtkCellCentersPointPlacer::IsA ( const char *  type) [virtual]

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

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

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

void vtkCellCentersPointPlacer::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

virtual void vtkCellCentersPointPlacer::AddProp ( vtkProp ) [virtual]
virtual void vtkCellCentersPointPlacer::RemoveViewProp ( vtkProp prop) [virtual]
virtual void vtkCellCentersPointPlacer::RemoveAllProps ( ) [virtual]
int vtkCellCentersPointPlacer::HasProp ( vtkProp )
int vtkCellCentersPointPlacer::GetNumberOfProps ( )
virtual int vtkCellCentersPointPlacer::ComputeWorldPosition ( vtkRenderer ren,
double  displayPos[2],
double  worldPos[3],
double  worldOrient[9] 
) [virtual]

Given a renderer and a display position in pixel coordinates, compute the world position and orientation where this point will be placed. This method is typically used by the representation to place the point initially. For the Terrain point placer this computes world points that lie at the specified height above the terrain.

Reimplemented from vtkPointPlacer.

virtual int vtkCellCentersPointPlacer::ComputeWorldPosition ( vtkRenderer ren,
double  displayPos[2],
double  refWorldPos[3],
double  worldPos[3],
double  worldOrient[9] 
) [virtual]

Given a renderer, a display position, and a reference world position, compute the new world position and orientation of this point. This method is typically used by the representation to move the point.

Reimplemented from vtkPointPlacer.

virtual int vtkCellCentersPointPlacer::ValidateWorldPosition ( double  worldPos[3]) [virtual]

Given a world position check the validity of this position according to the constraints of the placer

Reimplemented from vtkPointPlacer.

virtual int vtkCellCentersPointPlacer::ValidateDisplayPosition ( vtkRenderer ,
double  displayPos[2] 
) [virtual]

Given a display position, check the validity of this position.

Reimplemented from vtkPointPlacer.

virtual int vtkCellCentersPointPlacer::ValidateWorldPosition ( double  worldPos[3],
double  worldOrient[9] 
) [virtual]

Given a world position and a world orientation, validate it according to the constraints of the placer.

Reimplemented from vtkPointPlacer.

virtual vtkCellPicker* vtkCellCentersPointPlacer::GetCellPicker ( ) [virtual]

Get the Prop picker.

virtual void vtkCellCentersPointPlacer::SetMode ( int  ) [virtual]

Modes to change the point placement. Parametric center picks the parametric center within the cell. CellPointsMean picks the average of all points in the cell. When the mode is None, the input point is passed through unmodified. Default is CellPointsMean.

virtual int vtkCellCentersPointPlacer::GetMode ( ) [virtual]

Modes to change the point placement. Parametric center picks the parametric center within the cell. CellPointsMean picks the average of all points in the cell. When the mode is None, the input point is passed through unmodified. Default is CellPointsMean.


Member Data Documentation

Definition at line 135 of file vtkCellCentersPointPlacer.h.

Definition at line 136 of file vtkCellCentersPointPlacer.h.

Definition at line 137 of file vtkCellCentersPointPlacer.h.


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