VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkTerrainDataPointPlacer Class Reference

Place points on terrain data. More...

#include <vtkTerrainDataPointPlacer.h>

Inheritance diagram for vtkTerrainDataPointPlacer:
[legend]
Collaboration diagram for vtkTerrainDataPointPlacer:
[legend]

Public Types

typedef vtkPointPlacer Superclass
 
- Public Types inherited from vtkPointPlacer
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkTerrainDataPointPlacerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void AddProp (vtkProp *)
 
virtual void RemoveAllProps ()
 
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])
 
virtual int ValidateDisplayPosition (vtkRenderer *, double displayPos[2])
 
virtual int ValidateWorldPosition (double worldPos[3], double worldOrient[9])
 
virtual vtkPropPickerGetPropPicker ()
 
- Public Member Functions inherited from vtkPointPlacer
vtkPointPlacerNewInstance () const
 
virtual int UpdateWorldPosition (vtkRenderer *ren, double worldPos[3], double worldOrient[9])
 
virtual int UpdateNodeWorldPosition (double worldPos[3], vtkIdType nodePointId)
 
virtual int UpdateInternalState ()
 
virtual void SetPixelTolerance (int)
 
virtual int GetPixelTolerance ()
 
virtual void SetWorldTolerance (double)
 
virtual double GetWorldTolerance ()
 
- Public Member Functions inherited from vtkObject
vtkObjectNewInstance () const
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
bool GetDebug ()
 
void SetDebug (bool debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
int GetReferenceCount ()
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 

Static Public Member Functions

static vtkTerrainDataPointPlacerNew ()
 
static int IsTypeOf (const char *type)
 
static vtkTerrainDataPointPlacerSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkPointPlacer
static vtkPointPlacerNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPointPlacerSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObjectBase *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkTerrainDataPointPlacer ()
 
 ~vtkTerrainDataPointPlacer ()
 
- Protected Member Functions inherited from vtkPointPlacer
 vtkPointPlacer ()
 
 ~vtkPointPlacer ()
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

vtkPropCollectionTerrainProps
 
vtkPropPickerPropPicker
 
double HeightOffset
 
- Protected Attributes inherited from vtkPointPlacer
int PixelTolerance
 
double WorldTolerance
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

Place points on terrain data.

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.

Usage:
A typical usage of this class is as follows:
pointPlacer->AddProp(demActor); // the actor(s) containing the terrain.
rep->SetPointPlacer(pointPlacer);
pointPlacer->SetHeightOffset( 100 );
See also
vtkPointPlacer vtkTerrainContourLineInterpolator
Tests:
vtkTerrainDataPointPlacer (Tests)

Definition at line 49 of file vtkTerrainDataPointPlacer.h.

Member Typedef Documentation

◆ Superclass

Standard methods for instances of this class.

Definition at line 57 of file vtkTerrainDataPointPlacer.h.

Constructor & Destructor Documentation

◆ vtkTerrainDataPointPlacer()

vtkTerrainDataPointPlacer::vtkTerrainDataPointPlacer ( )
protected

◆ ~vtkTerrainDataPointPlacer()

vtkTerrainDataPointPlacer::~vtkTerrainDataPointPlacer ( )
protected

Member Function Documentation

◆ New()

static vtkTerrainDataPointPlacer* vtkTerrainDataPointPlacer::New ( )
static

Instantiate this class.

◆ IsTypeOf()

static int vtkTerrainDataPointPlacer::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkTerrainDataPointPlacer::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 vtkPointPlacer.

◆ SafeDownCast()

static vtkTerrainDataPointPlacer* vtkTerrainDataPointPlacer::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkTerrainDataPointPlacer::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkPointPlacer.

◆ NewInstance()

vtkTerrainDataPointPlacer* vtkTerrainDataPointPlacer::NewInstance ( ) const

◆ PrintSelf()

void vtkTerrainDataPointPlacer::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 vtkPointPlacer.

◆ AddProp()

virtual void vtkTerrainDataPointPlacer::AddProp ( vtkProp )
virtual

◆ RemoveAllProps()

virtual void vtkTerrainDataPointPlacer::RemoveAllProps ( )
virtual

◆ SetHeightOffset()

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.

◆ GetHeightOffset()

virtual double vtkTerrainDataPointPlacer::GetHeightOffset ( )
virtual

◆ ComputeWorldPosition() [1/2]

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.

◆ ComputeWorldPosition() [2/2]

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.

◆ ValidateWorldPosition() [1/2]

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.

◆ ValidateDisplayPosition()

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

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

Reimplemented from vtkPointPlacer.

◆ ValidateWorldPosition() [2/2]

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.

◆ GetPropPicker()

virtual vtkPropPicker* vtkTerrainDataPointPlacer::GetPropPicker ( )
virtual

Get the Prop picker.

Member Data Documentation

◆ TerrainProps

vtkPropCollection* vtkTerrainDataPointPlacer::TerrainProps
protected

Definition at line 124 of file vtkTerrainDataPointPlacer.h.

◆ PropPicker

vtkPropPicker* vtkTerrainDataPointPlacer::PropPicker
protected

Definition at line 125 of file vtkTerrainDataPointPlacer.h.

◆ HeightOffset

double vtkTerrainDataPointPlacer::HeightOffset
protected

Definition at line 126 of file vtkTerrainDataPointPlacer.h.


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