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

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

#include <vtkCellCentersPointPlacer.h>

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

Public Types

enum  { ParametricCenter = 0, CellPointsMean, None }
 
- Public Types inherited from vtkPointPlacer
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

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 ()
 
- Public Member Functions inherited from vtkPointPlacer
virtual int UpdateInternalState ()
 
virtual int UpdateWorldPosition (vtkRenderer *ren, double worldPos[3], double worldOrient[9])
 
virtual int UpdateNodeWorldPosition (double worldPos[3], vtkIdType nodePointId)
 
virtual void SetPixelTolerance (int)
 
virtual int GetPixelTolerance ()
 
virtual void SetWorldTolerance (double)
 
virtual double GetWorldTolerance ()
 
vtkPointPlacerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- 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 Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkCellCentersPointPlacerNew ()
 
- 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

 vtkCellCentersPointPlacer ()
 
 ~vtkCellCentersPointPlacer ()
 
- 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

vtkPropCollectionPickProps
 
vtkCellPickerCellPicker
 
int Mode
 
- 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
 
typedef vtkPointPlacer Superclass
 
static int IsTypeOf (const char *type)
 
static vtkCellCentersPointPlacerSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkCellCentersPointPlacerNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBaseNewInstanceInternal () const
 

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 51 of file vtkCellCentersPointPlacer.h.

Member Typedef Documentation

Standard methods for instances of this class.

Definition at line 59 of file vtkCellCentersPointPlacer.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ParametricCenter 
CellPointsMean 
None 

Definition at line 123 of file vtkCellCentersPointPlacer.h.

Constructor & Destructor Documentation

vtkCellCentersPointPlacer::vtkCellCentersPointPlacer ( )
protected
vtkCellCentersPointPlacer::~vtkCellCentersPointPlacer ( )
protected

Member Function Documentation

static vtkCellCentersPointPlacer* vtkCellCentersPointPlacer::New ( )
static

Instantiate this class.

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

Standard methods for instances of this class.

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.

virtual vtkObjectBase* vtkCellCentersPointPlacer::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instances of this class.

Reimplemented from vtkPointPlacer.

vtkCellCentersPointPlacer* vtkCellCentersPointPlacer::NewInstance ( ) const

Standard methods for instances of this class.

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

Standard methods for instances of this class.

Reimplemented from vtkObject.

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

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.


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