VTK
Public Member Functions | Protected Member Functions | List of all members
vtkFocalPlaneContourRepresentation Class Reference

represent a contour drawn on the focal plane. More...

#include <vtkFocalPlaneContourRepresentation.h>

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

Public Member Functions

virtual int GetNthNodeDisplayPosition (int n, double pos[2])
 
virtual int GetNthNodeWorldPosition (int n, double pos[3])
 
virtual void UpdateContourWorldPositionsBasedOnDisplayPositions ()
 
virtual int UpdateContour ()
 
virtual void UpdateLines (int index)
 
virtual int GetIntermediatePointWorldPosition (int n, int idx, double point[3])
 
virtual int GetIntermediatePointDisplayPosition (int n, int idx, double point[3])
 
- Public Member Functions inherited from vtkContourRepresentation
virtual int SetActiveNodeToWorldPosition (double pos[3])
 
virtual int SetActiveNodeToWorldPosition (double pos[3], double orient[9])
 
virtual int GetActiveNodeWorldPosition (double pos[3])
 
virtual int GetActiveNodeWorldOrientation (double orient[9])
 
virtual int GetActiveNodeDisplayPosition (double pos[2])
 
virtual int GetNumberOfNodes ()
 
virtual int GetNthNodeWorldOrientation (int n, double orient[9])
 
virtual int GetNthNodeSlope (int idx, double slope[3])
 
virtual int GetNumberOfIntermediatePoints (int n)
 
virtual int DeleteLastNode ()
 
virtual int DeleteActiveNode ()
 
virtual int DeleteNthNode (int n)
 
virtual void ClearAllNodes ()
 
virtual int AddNodeOnContour (int X, int Y)
 
void SetPointPlacer (vtkPointPlacer *)
 
virtual vtkPointPlacerGetPointPlacer ()
 
void GetNodePolyData (vtkPolyData *poly)
 
virtual void SetRebuildLocator (bool)
 
virtual int AddNodeAtWorldPosition (double x, double y, double z)
 
virtual int AddNodeAtWorldPosition (double worldPos[3])
 
virtual int AddNodeAtWorldPosition (double worldPos[3], double worldOrient[9])
 
virtual int AddNodeAtDisplayPosition (double displayPos[2])
 
virtual int AddNodeAtDisplayPosition (int displayPos[2])
 
virtual int AddNodeAtDisplayPosition (int X, int Y)
 
virtual int ActivateNode (double displayPos[2])
 
virtual int ActivateNode (int displayPos[2])
 
virtual int ActivateNode (int X, int Y)
 
virtual int SetActiveNodeToDisplayPosition (double pos[2])
 
virtual int SetActiveNodeToDisplayPosition (int pos[2])
 
virtual int SetActiveNodeToDisplayPosition (int X, int Y)
 
virtual int ToggleActiveNodeSelected ()
 
virtual int GetActiveNodeSelected ()
 
virtual int GetNthNodeSelected (int)
 
virtual int SetNthNodeSelected (int)
 
virtual vtkContourRepresentationNodeGetNthNode (int n)
 
virtual int SetNthNodeDisplayPosition (int n, int X, int Y)
 
virtual int SetNthNodeDisplayPosition (int n, int pos[2])
 
virtual int SetNthNodeDisplayPosition (int n, double pos[2])
 
virtual int SetNthNodeWorldPosition (int n, double pos[3])
 
virtual int SetNthNodeWorldPosition (int n, double pos[3], double orient[9])
 
virtual int AddIntermediatePointWorldPosition (int n, double point[3])
 
virtual int AddIntermediatePointWorldPosition (int n, double point[3], vtkIdType ptId)
 
virtual void SetPixelTolerance (int)
 
virtual int GetPixelTolerance ()
 
virtual void SetWorldTolerance (double)
 
virtual double GetWorldTolerance ()
 
virtual int GetCurrentOperation ()
 
virtual void SetCurrentOperation (int)
 
void SetCurrentOperationToInactive ()
 
void SetCurrentOperationToTranslate ()
 
void SetCurrentOperationToShift ()
 
void SetCurrentOperationToScale ()
 
void SetLineInterpolator (vtkContourLineInterpolator *)
 
virtual vtkContourLineInterpolatorGetLineInterpolator ()
 
virtual void BuildRepresentation ()=0
 
virtual int ComputeInteractionState (int X, int Y, int modified=0)=0
 
virtual void StartWidgetInteraction (double e[2])=0
 
virtual void WidgetInteraction (double e[2])=0
 
virtual void ReleaseGraphicsResources (vtkWindow *w)=0
 
virtual int RenderOverlay (vtkViewport *viewport)=0
 
virtual int RenderOpaqueGeometry (vtkViewport *viewport)=0
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *viewport)=0
 
virtual int HasTranslucentPolygonalGeometry ()=0
 
void SetClosedLoop (int val)
 
virtual int GetClosedLoop ()
 
virtual void ClosedLoopOn ()
 
virtual void ClosedLoopOff ()
 
virtual void SetShowSelectedNodes (int)
 
virtual int GetShowSelectedNodes ()
 
virtual void ShowSelectedNodesOn ()
 
virtual void ShowSelectedNodesOff ()
 
virtual vtkPolyDataGetContourRepresentationAsPolyData ()=0
 
vtkContourRepresentationNewInstance () const
 
- Public Member Functions inherited from vtkWidgetRepresentation
virtual void PickingManagedOn ()
 
virtual void PickingManagedOff ()
 
virtual void SetPickingManaged (bool)
 
virtual bool GetPickingManaged ()
 
virtual void SetRenderer (vtkRenderer *ren)
 
virtual vtkRendererGetRenderer ()
 
virtual void PlaceWidget (double *vtkNotUsed(bounds[6]))
 
virtual void EndWidgetInteraction (double newEventPos[2])
 
virtual int GetInteractionState ()
 
virtual void Highlight (int vtkNotUsed(highlightOn))
 
virtual void SetPlaceFactor (double)
 
virtual double GetPlaceFactor ()
 
virtual void SetHandleSize (double)
 
virtual double GetHandleSize ()
 
virtual int GetNeedToRender ()
 
virtual void SetNeedToRender (int)
 
virtual void NeedToRenderOn ()
 
virtual void NeedToRenderOff ()
 
virtual doubleGetBounds ()
 
virtual void ShallowCopy (vtkProp *prop)
 
virtual void GetActors (vtkPropCollection *)
 
virtual void GetActors2D (vtkPropCollection *)
 
virtual void GetVolumes (vtkPropCollection *)
 
virtual int RenderOverlay (vtkViewport *vtkNotUsed(viewport))
 
virtual int RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport))
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport))
 
virtual int RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport))
 
vtkWidgetRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkProp
vtkPropNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void Pick ()
 
virtual bool HasKeys (vtkInformation *requiredKeys)
 
virtual void BuildPaths (vtkAssemblyPaths *paths, vtkAssemblyPath *path)
 
virtual void SetVisibility (int)
 
virtual int GetVisibility ()
 
virtual void VisibilityOn ()
 
virtual void VisibilityOff ()
 
virtual void SetPickable (int)
 
virtual int GetPickable ()
 
virtual void PickableOn ()
 
virtual void PickableOff ()
 
virtual void SetDragable (int)
 
virtual int GetDragable ()
 
virtual void DragableOn ()
 
virtual void DragableOff ()
 
virtual unsigned long GetRedrawMTime ()
 
virtual void SetUseBounds (bool)
 
virtual bool GetUseBounds ()
 
virtual void UseBoundsOn ()
 
virtual void UseBoundsOff ()
 
virtual void InitPathTraversal ()
 
virtual vtkAssemblyPathGetNextPath ()
 
virtual int GetNumberOfPaths ()
 
virtual void PokeMatrix (vtkMatrix4x4 *vtkNotUsed(matrix))
 
virtual vtkMatrix4x4GetMatrix ()
 
virtual vtkInformationGetPropertyKeys ()
 
virtual void SetPropertyKeys (vtkInformation *keys)
 
virtual int RenderVolumetricGeometry (vtkViewport *)
 
virtual bool RenderFilteredOpaqueGeometry (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual bool RenderFilteredTranslucentPolygonalGeometry (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual bool RenderFilteredVolumetricGeometry (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual bool RenderFilteredOverlay (vtkViewport *v, vtkInformation *requiredKeys)
 
virtual double GetEstimatedRenderTime (vtkViewport *)
 
virtual double GetEstimatedRenderTime ()
 
virtual void SetEstimatedRenderTime (double t)
 
virtual void RestoreEstimatedRenderTime ()
 
virtual void AddEstimatedRenderTime (double t, vtkViewport *vtkNotUsed(vp))
 
virtual void SetAllocatedRenderTime (double t, vtkViewport *vtkNotUsed(v))
 
virtual double GetAllocatedRenderTime ()
 
void SetRenderTimeMultiplier (double t)
 
virtual double GetRenderTimeMultiplier ()
 
virtual bool GetSupportsSelection ()
 
virtual int GetNumberOfConsumers ()
 
void AddConsumer (vtkObject *c)
 
void RemoveConsumer (vtkObject *c)
 
vtkObjectGetConsumer (int i)
 
int IsConsumer (vtkObject *c)
 
- 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 ()
 

Protected Member Functions

 vtkFocalPlaneContourRepresentation ()
 
 ~vtkFocalPlaneContourRepresentation ()
 
- Protected Member Functions inherited from vtkContourRepresentation
 vtkContourRepresentation ()
 
 ~vtkContourRepresentation ()
 
void AddNodeAtPositionInternal (double worldPos[3], double worldOrient[9], int displayPos[2])
 
void AddNodeAtPositionInternal (double worldPos[3], double worldOrient[9], double displayPos[2])
 
void SetNthNodeWorldPositionInternal (int n, double worldPos[3], double worldOrient[9])
 
void UpdateLine (int idx1, int idx2)
 
virtual int FindClosestPointOnContour (int X, int Y, double worldPos[3], int *idx)
 
virtual void BuildLines ()=0
 
void ComputeMidpoint (double p1[3], double p2[3], double mid[3])
 
virtual void Initialize (vtkPolyData *, vtkIdList *)
 
virtual void Initialize (vtkPolyData *)
 
virtual void InitializeContour (vtkPolyData *, vtkIdList *)
 
void ResetLocator ()
 
void BuildLocator ()
 
void GetRendererComputedDisplayPositionFromWorldPosition (double worldPos[3], double worldOrient[9], int displayPos[2])
 
void GetRendererComputedDisplayPositionFromWorldPosition (double worldPos[3], double worldOrient[9], double displayPos[2])
 
- Protected Member Functions inherited from vtkWidgetRepresentation
 vtkWidgetRepresentation ()
 
 ~vtkWidgetRepresentation ()
 
void AdjustBounds (double bounds[6], double newBounds[6], double center[3])
 
virtual void RegisterPickers ()
 
virtual void UnRegisterPickers ()
 
virtual void PickersModified ()
 
vtkPickingManagerGetPickingManager ()
 
double SizeHandlesRelativeToViewport (double factor, double pos[3])
 
double SizeHandlesInPixels (double factor, double pos[3])
 
vtkAssemblyPathGetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 
- Protected Member Functions inherited from vtkProp
 vtkProp ()
 
 ~vtkProp ()
 
- 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 &)
 
typedef vtkContourRepresentation Superclass
 
static int IsTypeOf (const char *type)
 
static vtkFocalPlaneContourRepresentationSafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkFocalPlaneContourRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBaseNewInstanceInternal () const
 

Additional Inherited Members

- Public Types inherited from vtkContourRepresentation
enum  { Outside =0, Nearby }
 
enum  { Inactive = 0, Translate, Shift, Scale }
 
typedef vtkWidgetRepresentation Superclass
 
- Public Types inherited from vtkWidgetRepresentation
typedef vtkProp Superclass
 
- Public Types inherited from vtkProp
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 
- Static Public Member Functions inherited from vtkContourRepresentation
static int IsTypeOf (const char *type)
 
static vtkContourRepresentationSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkWidgetRepresentationSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkProp
static int IsTypeOf (const char *type)
 
static vtkPropSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeyGeneralTextureUnit ()
 
static vtkInformationDoubleVectorKeyGeneralTextureTransform ()
 
- 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 Attributes inherited from vtkContourRepresentation
int PixelTolerance
 
double WorldTolerance
 
vtkPointPlacerPointPlacer
 
vtkContourLineInterpolatorLineInterpolator
 
int ActiveNode
 
int CurrentOperation
 
int ClosedLoop
 
int ShowSelectedNodes
 
vtkContourRepresentationInternalsInternal
 
vtkTimeStamp ContourBuildTime
 
vtkIncrementalOctreePointLocatorLocator
 
bool RebuildLocator
 
- Protected Attributes inherited from vtkWidgetRepresentation
vtkWeakPointer< vtkRendererRenderer
 
int InteractionState
 
double StartEventPosition [3]
 
double PlaceFactor
 
int Placed
 
double InitialBounds [6]
 
double InitialLength
 
int ValidPick
 
bool PickingManaged
 
double HandleSize
 
int NeedToRender
 
vtkTimeStamp BuildTime
 
- Protected Attributes inherited from vtkProp
int Visibility
 
int Pickable
 
int Dragable
 
bool UseBounds
 
double AllocatedRenderTime
 
double EstimatedRenderTime
 
double SavedEstimatedRenderTime
 
double RenderTimeMultiplier
 
int NumberOfConsumers
 
vtkObject ** Consumers
 
vtkAssemblyPathsPaths
 
vtkInformationPropertyKeys
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

represent a contour drawn on the focal plane.

The contour will stay on the focal plane irrespective of camera position/orientation changes. The class was written in order to be able to draw contours on a volume widget and have the contours overlayed on the focal plane in order to do contour segmentation. The superclass, vtkContourRepresentation handles contours that are drawn in actual world position co-ordinates, so they would rotate with the camera position/ orientation changes

See also
vtkContourWidget vtkHandleRepresentation vtkContourRepresentation

Definition at line 40 of file vtkFocalPlaneContourRepresentation.h.

Member Typedef Documentation

Standard VTK methods.

Definition at line 45 of file vtkFocalPlaneContourRepresentation.h.

Constructor & Destructor Documentation

vtkFocalPlaneContourRepresentation::vtkFocalPlaneContourRepresentation ( )
protected
vtkFocalPlaneContourRepresentation::~vtkFocalPlaneContourRepresentation ( )
protected

Member Function Documentation

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

Standard VTK methods.

virtual int vtkFocalPlaneContourRepresentation::IsA ( const char *  type)
virtual

Standard VTK methods.

Reimplemented from vtkContourRepresentation.

Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.

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

Standard VTK methods.

virtual vtkObjectBase* vtkFocalPlaneContourRepresentation::NewInstanceInternal ( ) const
protectedvirtual

Standard VTK methods.

Reimplemented from vtkContourRepresentation.

Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.

vtkFocalPlaneContourRepresentation* vtkFocalPlaneContourRepresentation::NewInstance ( ) const

Standard VTK methods.

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

Standard VTK methods.

Reimplemented from vtkContourRepresentation.

Reimplemented in vtkOrientedGlyphFocalPlaneContourRepresentation.

virtual int vtkFocalPlaneContourRepresentation::GetIntermediatePointWorldPosition ( int  n,
int  idx,
double  point[3] 
)
virtual

Get the world position of the intermediate point at index idx between nodes n and (n+1) (or n and 0 if n is the last node and the loop is closed). Returns 1 on success or 0 if n or idx are out of range.

Reimplemented from vtkContourRepresentation.

virtual int vtkFocalPlaneContourRepresentation::GetIntermediatePointDisplayPosition ( int  n,
int  idx,
double  point[3] 
)
virtual

Get the world position of the intermediate point at index idx between nodes n and (n+1) (or n and 0 if n is the last node and the loop is closed). Returns 1 on success or 0 if n or idx are out of range.

virtual int vtkFocalPlaneContourRepresentation::GetNthNodeDisplayPosition ( int  n,
double  pos[2] 
)
virtual

Get the nth node's display position. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting).

Reimplemented from vtkContourRepresentation.

virtual int vtkFocalPlaneContourRepresentation::GetNthNodeWorldPosition ( int  n,
double  pos[3] 
)
virtual

Get the nth node's world position. Will return 1 on success, or 0 if there are not at least (n+1) nodes (0 based counting).

Reimplemented from vtkContourRepresentation.

virtual void vtkFocalPlaneContourRepresentation::UpdateContourWorldPositionsBasedOnDisplayPositions ( )
virtual

The class maintains its true contour locations based on display co-ords This method syncs the world co-ords data structure with the display co-ords.

virtual int vtkFocalPlaneContourRepresentation::UpdateContour ( )
virtual

The method must be called whenever the contour needs to be updated, usually from RenderOpaqueGeometry()

Reimplemented from vtkContourRepresentation.

virtual void vtkFocalPlaneContourRepresentation::UpdateLines ( int  index)
virtual

Reimplemented from vtkContourRepresentation.


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