#include <vtkTerrainDataPointPlacer.h>
vtkTerrainDataPointPlacer dictates the placement of points on height field data. The class takes as input the list of props that represent the terrain in a rendered scene. A height offset can be specified to dicatate the placement of points at a certain height above the surface.
pointPlacer->AddProp(demActor); // the actor(s) containing the terrain.
rep->SetPointPlacer(pointPlacer);
pointPlacer->SetHeightOffset( 100 );
Definition at line 48 of file vtkTerrainDataPointPlacer.h.
typedef vtkPointPlacer | Superclass |
static int | IsTypeOf (const char *type) |
static vtkTerrainDataPointPlacer * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
Public Member Functions | |
virtual void | AddProp (vtkProp *) |
virtual void | RemoveAllProps () |
virtual int | ValidateWorldPosition (double worldPos[3]) |
virtual int | ValidateDisplayPosition (vtkRenderer *, double displayPos[2]) |
virtual void | SetHeightOffset (double) |
virtual double | GetHeightOffset () |
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 vtkPropPicker * | GetPropPicker () |
Static Public Member Functions | |
static vtkTerrainDataPointPlacer * | New () |
Protected Member Functions | |
vtkTerrainDataPointPlacer () | |
~vtkTerrainDataPointPlacer () | |
Protected Attributes | |
vtkPropCollection * | TerrainProps |
vtkPropPicker * | PropPicker |
double | HeightOffset |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
Definition at line 56 of file vtkTerrainDataPointPlacer.h.
vtkTerrainDataPointPlacer::vtkTerrainDataPointPlacer | ( | ) | [protected] |
vtkTerrainDataPointPlacer::~vtkTerrainDataPointPlacer | ( | ) | [protected] |
static vtkTerrainDataPointPlacer* vtkTerrainDataPointPlacer::New | ( | ) | [static] |
Instantiate this class.
Reimplemented from vtkPointPlacer.
virtual const char* vtkTerrainDataPointPlacer::GetClassName | ( | ) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
static int vtkTerrainDataPointPlacer::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
virtual int vtkTerrainDataPointPlacer::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
static vtkTerrainDataPointPlacer* vtkTerrainDataPointPlacer::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
void vtkTerrainDataPointPlacer::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Standard methods for instances of this class.
Reimplemented from vtkPointPlacer.
virtual void vtkTerrainDataPointPlacer::AddProp | ( | vtkProp * | ) | [virtual] |
virtual void vtkTerrainDataPointPlacer::RemoveAllProps | ( | ) | [virtual] |
virtual void vtkTerrainDataPointPlacer::SetHeightOffset | ( | double | ) | [virtual] |
This is the height above (or below) the terrain that the dictated point should be placed. Positive values indicate distances above the terrain; negative values indicate distances below the terrain. The default is 0.0.
virtual double vtkTerrainDataPointPlacer::GetHeightOffset | ( | ) | [virtual] |
This is the height above (or below) the terrain that the dictated point should be placed. Positive values indicate distances above the terrain; negative values indicate distances below the terrain. The default is 0.0.
virtual int vtkTerrainDataPointPlacer::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 vtkTerrainDataPointPlacer::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 vtkTerrainDataPointPlacer::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 vtkTerrainDataPointPlacer::ValidateDisplayPosition | ( | vtkRenderer * | , | |
double | displayPos[2] | |||
) | [virtual] |
Given a display position, check the validity of this position.
Reimplemented from vtkPointPlacer.
virtual int vtkTerrainDataPointPlacer::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 vtkPropPicker* vtkTerrainDataPointPlacer::GetPropPicker | ( | ) | [virtual] |
Get the Prop picker.
vtkPropCollection* vtkTerrainDataPointPlacer::TerrainProps [protected] |
Definition at line 123 of file vtkTerrainDataPointPlacer.h.
vtkPropPicker* vtkTerrainDataPointPlacer::PropPicker [protected] |
Definition at line 124 of file vtkTerrainDataPointPlacer.h.
double vtkTerrainDataPointPlacer::HeightOffset [protected] |
Definition at line 125 of file vtkTerrainDataPointPlacer.h.