VTK
|
Snaps points at the center of a cell. More...
#include <vtkCellCentersPointPlacer.h>
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 51 of file vtkCellCentersPointPlacer.h.
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
Definition at line 59 of file vtkCellCentersPointPlacer.h.
anonymous enum |
Definition at line 123 of file vtkCellCentersPointPlacer.h.
vtkCellCentersPointPlacer::vtkCellCentersPointPlacer | ( | ) | [protected] |
vtkCellCentersPointPlacer::~vtkCellCentersPointPlacer | ( | ) | [protected] |
static vtkCellCentersPointPlacer* vtkCellCentersPointPlacer::New | ( | ) | [static] |
Instantiate 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 | ( | vtkObjectBase * | o | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
virtual vtkObjectBase* vtkCellCentersPointPlacer::NewInstanceInternal | ( | ) | const [protected, virtual] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
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] |
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.
vtkPropCollection* vtkCellCentersPointPlacer::PickProps [protected] |
Definition at line 136 of file vtkCellCentersPointPlacer.h.
vtkCellPicker* vtkCellCentersPointPlacer::CellPicker [protected] |
Definition at line 137 of file vtkCellCentersPointPlacer.h.
int vtkCellCentersPointPlacer::Mode [protected] |
Definition at line 138 of file vtkCellCentersPointPlacer.h.