VTK
|
Snaps points at the center of a cell. More...
#include <vtkCellCentersPointPlacer.h>
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 vtkCellPicker * | GetCellPicker () |
virtual void | SetMode (int) |
virtual int | GetMode () |
Static Public Member Functions | |
static vtkCellCentersPointPlacer * | New () |
Protected Member Functions | |
vtkCellCentersPointPlacer () | |
~vtkCellCentersPointPlacer () | |
Protected Attributes | |
vtkPropCollection * | PickProps |
vtkCellPicker * | CellPicker |
int | Mode |
typedef vtkPointPlacer | Superclass |
static int | IsTypeOf (const char *type) |
static vtkCellCentersPointPlacer * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
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.
placer->AddProp( actor );
Definition at line 50 of file vtkCellCentersPointPlacer.h.
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
Definition at line 58 of file vtkCellCentersPointPlacer.h.
anonymous enum |
Definition at line 122 of file vtkCellCentersPointPlacer.h.
vtkCellCentersPointPlacer::vtkCellCentersPointPlacer | ( | ) | [protected] |
vtkCellCentersPointPlacer::~vtkCellCentersPointPlacer | ( | ) | [protected] |
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::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.
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.
vtkPropCollection* vtkCellCentersPointPlacer::PickProps [protected] |
Definition at line 135 of file vtkCellCentersPointPlacer.h.
vtkCellPicker* vtkCellCentersPointPlacer::CellPicker [protected] |
Definition at line 136 of file vtkCellCentersPointPlacer.h.
int vtkCellCentersPointPlacer::Mode [protected] |
Definition at line 137 of file vtkCellCentersPointPlacer.h.