VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkOrientedGlyphFocalPlaneContourRepresentation Class Reference

Contours constrained to a focal plane. More...

#include <vtkOrientedGlyphFocalPlaneContourRepresentation.h>

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

Public Member Functions

virtual vtkPolyDataGetContourRepresentationAsPolyData ()
 
vtkMatrix4x4GetContourPlaneDirectionCosines (const double origin[3])
 
void SetCursorShape (vtkPolyData *cursorShape)
 
vtkPolyDataGetCursorShape ()
 
void SetActiveCursorShape (vtkPolyData *activeShape)
 
vtkPolyDataGetActiveCursorShape ()
 
virtual vtkProperty2D * GetProperty ()
 
virtual vtkProperty2D * GetActiveProperty ()
 
virtual vtkProperty2D * GetLinesProperty ()
 
virtual void SetRenderer (vtkRenderer *ren)
 
virtual void BuildRepresentation ()
 
virtual void StartWidgetInteraction (double eventPos[2])
 
virtual void WidgetInteraction (double eventPos[2])
 
virtual int ComputeInteractionState (int X, int Y, int modified=0)
 
virtual void GetActors2D (vtkPropCollection *)
 
virtual void ReleaseGraphicsResources (vtkWindow *)
 
virtual int RenderOverlay (vtkViewport *viewport)
 
virtual int RenderOpaqueGeometry (vtkViewport *viewport)
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *viewport)
 
virtual int HasTranslucentPolygonalGeometry ()
 
- Public Member Functions inherited from vtkFocalPlaneContourRepresentation
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])
 
vtkFocalPlaneContourRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- 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
vtkContourRepresentationNode
GetNthNode (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
vtkContourLineInterpolator
GetLineInterpolator ()
 
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 ()
 
vtkContourRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkWidgetRepresentation
virtual void PickingManagedOn ()
 
virtual void PickingManagedOff ()
 
virtual void SetPickingManaged (bool)
 
virtual bool GetPickingManaged ()
 
virtual vtkRenderer * GetRenderer ()
 
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 double * GetBounds ()
 
virtual void ShallowCopy (vtkProp *prop)
 
virtual void GetActors (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)
 

Static Public Member Functions

static
vtkOrientedGlyphFocalPlaneContourRepresentation
New ()
 
- Static Public Member Functions inherited from vtkFocalPlaneContourRepresentation
static int IsTypeOf (const char *type)
 
static
vtkFocalPlaneContourRepresentation
SafeDownCast (vtkObjectBase *o)
 
- 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)
 

Protected Member Functions

 vtkOrientedGlyphFocalPlaneContourRepresentation ()
 
 ~vtkOrientedGlyphFocalPlaneContourRepresentation ()
 
void Translate (double eventPos[2])
 
void Scale (double eventPos[2])
 
void ShiftContour (double eventPos[2])
 
void ScaleContour (double eventPos[2])
 
void ComputeCentroid (double *ioCentroid)
 
void CreateDefaultProperties ()
 
void BuildLines ()
 
- Protected Member Functions inherited from vtkFocalPlaneContourRepresentation
 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)
 
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 ()
 
vtkPickingManager * GetPickingManager ()
 
double SizeHandlesRelativeToViewport (double factor, double pos[3])
 
double SizeHandlesInPixels (double factor, double pos[3])
 
vtkAssemblyPath * GetAssemblyPath (double X, double Y, double Z, vtkAbstractPropPicker *picker)
 

Protected Attributes

vtkActor2D * Actor
 
vtkPolyDataMapper2D * Mapper
 
vtkGlyph2DGlypher
 
vtkActor2D * ActiveActor
 
vtkPolyDataMapper2D * ActiveMapper
 
vtkGlyph2DActiveGlypher
 
vtkPolyDataCursorShape
 
vtkPolyDataActiveCursorShape
 
vtkPolyDataFocalData
 
vtkPoints * FocalPoint
 
vtkPolyDataActiveFocalData
 
vtkPoints * ActiveFocalPoint
 
vtkPolyDataLines
 
vtkPolyDataMapper2D * LinesMapper
 
vtkActor2D * LinesActor
 
vtkPolyDataLinesWorldCoordinates
 
double LastPickPosition [3]
 
double LastEventPosition [2]
 
vtkProperty2D * Property
 
vtkProperty2D * ActiveProperty
 
vtkProperty2D * LinesProperty
 
vtkMatrix4x4ContourPlaneDirectionCosines
 
double InteractionOffset [2]
 
- Protected Attributes inherited from vtkContourRepresentation
int PixelTolerance
 
double WorldTolerance
 
vtkPointPlacerPointPlacer
 
vtkContourLineInterpolatorLineInterpolator
 
int ActiveNode
 
int CurrentOperation
 
int ClosedLoop
 
int ShowSelectedNodes
 
vtkContourRepresentationInternalsInternal
 
vtkTimeStamp ContourBuildTime
 
vtkIncrementalOctreePointLocator * Locator
 
bool RebuildLocator
 
- Protected Attributes inherited from vtkWidgetRepresentation
vtkWeakPointer< vtkRenderer > Renderer
 
int InteractionState
 
double StartEventPosition [3]
 
double PlaceFactor
 
int Placed
 
double InitialBounds [6]
 
double InitialLength
 
int ValidPick
 
bool PickingManaged
 
double HandleSize
 
int NeedToRender
 
vtkTimeStamp BuildTime
 
typedef
vtkFocalPlaneContourRepresentation 
Superclass
 
static int IsTypeOf (const char *type)
 
static
vtkOrientedGlyphFocalPlaneContourRepresentation
SafeDownCast (vtkObjectBase *o)
 
virtual int IsA (const char *type)
 
vtkOrientedGlyphFocalPlaneContourRepresentationNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkObjectBase * NewInstanceInternal () const
 

Additional Inherited Members

- Public Types inherited from vtkFocalPlaneContourRepresentation
typedef vtkContourRepresentation Superclass
 
- 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
 

Detailed Description

Contours constrained to a focal plane.

This class is used to represent a contour drawn on the focal plane (usually overlayed on top of an image or volume widget). 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.

See Also
vtkOrientedGlyphContourRepresentation

Definition at line 44 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.

Member Typedef Documentation

Standard methods for instances of this class.

Definition at line 54 of file vtkOrientedGlyphFocalPlaneContourRepresentation.h.

Constructor & Destructor Documentation

vtkOrientedGlyphFocalPlaneContourRepresentation::vtkOrientedGlyphFocalPlaneContourRepresentation ( )
protected
vtkOrientedGlyphFocalPlaneContourRepresentation::~vtkOrientedGlyphFocalPlaneContourRepresentation ( )
protected

Member Function Documentation

static vtkOrientedGlyphFocalPlaneContourRepresentation* vtkOrientedGlyphFocalPlaneContourRepresentation::New ( )
static

Instantiate this class.

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

Standard methods for instances of this class.

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

Standard methods for instances of this class.

Reimplemented from vtkFocalPlaneContourRepresentation.

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

Standard methods for instances of this class.

virtual vtkObjectBase* vtkOrientedGlyphFocalPlaneContourRepresentation::NewInstanceInternal ( ) const
protectedvirtual

Standard methods for instances of this class.

Reimplemented from vtkFocalPlaneContourRepresentation.

vtkOrientedGlyphFocalPlaneContourRepresentation* vtkOrientedGlyphFocalPlaneContourRepresentation::NewInstance ( ) const

Standard methods for instances of this class.

void vtkOrientedGlyphFocalPlaneContourRepresentation::PrintSelf ( ostream &  os,
vtkIndent  indent 
)

Standard methods for instances of this class.

void vtkOrientedGlyphFocalPlaneContourRepresentation::SetCursorShape ( vtkPolyData cursorShape)

Specify the cursor shape. Keep in mind that the shape will be aligned with the constraining plane by orienting it such that the x axis of the geometry lies along the normal of the plane.

vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::GetCursorShape ( )

Specify the cursor shape. Keep in mind that the shape will be aligned with the constraining plane by orienting it such that the x axis of the geometry lies along the normal of the plane.

void vtkOrientedGlyphFocalPlaneContourRepresentation::SetActiveCursorShape ( vtkPolyData activeShape)

Specify the shape of the cursor (handle) when it is active. This is the geometry that will be used when the mouse is close to the handle or if the user is manipulating the handle.

vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::GetActiveCursorShape ( )

Specify the shape of the cursor (handle) when it is active. This is the geometry that will be used when the mouse is close to the handle or if the user is manipulating the handle.

virtual vtkProperty2D* vtkOrientedGlyphFocalPlaneContourRepresentation::GetProperty ( )
virtual

This is the property used when the handle is not active (the mouse is not near the handle)

virtual vtkProperty2D* vtkOrientedGlyphFocalPlaneContourRepresentation::GetActiveProperty ( )
virtual

This is the property used when the user is interacting with the handle.

virtual vtkProperty2D* vtkOrientedGlyphFocalPlaneContourRepresentation::GetLinesProperty ( )
virtual

This is the property used by the lines.

virtual void vtkOrientedGlyphFocalPlaneContourRepresentation::SetRenderer ( vtkRenderer *  ren)
virtual

Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkOrientedGlyphFocalPlaneContourRepresentation::BuildRepresentation ( )
virtual

Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Implements vtkContourRepresentation.

virtual void vtkOrientedGlyphFocalPlaneContourRepresentation::StartWidgetInteraction ( double  eventPos[2])
virtual

Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Implements vtkContourRepresentation.

virtual void vtkOrientedGlyphFocalPlaneContourRepresentation::WidgetInteraction ( double  eventPos[2])
virtual

Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Implements vtkContourRepresentation.

virtual int vtkOrientedGlyphFocalPlaneContourRepresentation::ComputeInteractionState ( int  X,
int  Y,
int  modified = 0 
)
virtual

Subclasses of vtkOrientedGlyphFocalPlaneContourRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.

Implements vtkContourRepresentation.

virtual void vtkOrientedGlyphFocalPlaneContourRepresentation::GetActors2D ( vtkPropCollection *  )
virtual

Methods to make this class behave as a vtkProp.

Reimplemented from vtkWidgetRepresentation.

virtual void vtkOrientedGlyphFocalPlaneContourRepresentation::ReleaseGraphicsResources ( vtkWindow *  )
virtual

Methods to make this class behave as a vtkProp.

Implements vtkContourRepresentation.

virtual int vtkOrientedGlyphFocalPlaneContourRepresentation::RenderOverlay ( vtkViewport *  viewport)
virtual

Methods to make this class behave as a vtkProp.

Implements vtkContourRepresentation.

virtual int vtkOrientedGlyphFocalPlaneContourRepresentation::RenderOpaqueGeometry ( vtkViewport *  viewport)
virtual

Methods to make this class behave as a vtkProp.

Implements vtkContourRepresentation.

virtual int vtkOrientedGlyphFocalPlaneContourRepresentation::RenderTranslucentPolygonalGeometry ( vtkViewport *  viewport)
virtual

Methods to make this class behave as a vtkProp.

Implements vtkContourRepresentation.

virtual int vtkOrientedGlyphFocalPlaneContourRepresentation::HasTranslucentPolygonalGeometry ( )
virtual

Methods to make this class behave as a vtkProp.

Implements vtkContourRepresentation.

virtual vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::GetContourRepresentationAsPolyData ( )
virtual

Get the points in this contour as a vtkPolyData.

Implements vtkContourRepresentation.

vtkMatrix4x4* vtkOrientedGlyphFocalPlaneContourRepresentation::GetContourPlaneDirectionCosines ( const double  origin[3])

Direction cosines of the plane on which the contour lies on in world co-ordinates. This would be the same matrix that would be set in vtkImageReslice or vtkImagePlaneWidget if there were a plane passing through the contour points. The origin must be the origin of the data under the contour.

void vtkOrientedGlyphFocalPlaneContourRepresentation::Translate ( double  eventPos[2])
protected
void vtkOrientedGlyphFocalPlaneContourRepresentation::Scale ( double  eventPos[2])
protected
void vtkOrientedGlyphFocalPlaneContourRepresentation::ShiftContour ( double  eventPos[2])
protected
void vtkOrientedGlyphFocalPlaneContourRepresentation::ScaleContour ( double  eventPos[2])
protected
void vtkOrientedGlyphFocalPlaneContourRepresentation::ComputeCentroid ( double *  ioCentroid)
protected
void vtkOrientedGlyphFocalPlaneContourRepresentation::CreateDefaultProperties ( )
protected
void vtkOrientedGlyphFocalPlaneContourRepresentation::BuildLines ( )
protectedvirtual

Member Data Documentation

vtkActor2D* vtkOrientedGlyphFocalPlaneContourRepresentation::Actor
protected
vtkPolyDataMapper2D* vtkOrientedGlyphFocalPlaneContourRepresentation::Mapper
protected
vtkGlyph2D* vtkOrientedGlyphFocalPlaneContourRepresentation::Glypher
protected
vtkActor2D* vtkOrientedGlyphFocalPlaneContourRepresentation::ActiveActor
protected
vtkPolyDataMapper2D* vtkOrientedGlyphFocalPlaneContourRepresentation::ActiveMapper
protected
vtkGlyph2D* vtkOrientedGlyphFocalPlaneContourRepresentation::ActiveGlypher
protected
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::CursorShape
protected
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::ActiveCursorShape
protected
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::FocalData
protected
vtkPoints* vtkOrientedGlyphFocalPlaneContourRepresentation::FocalPoint
protected
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::ActiveFocalData
protected
vtkPoints* vtkOrientedGlyphFocalPlaneContourRepresentation::ActiveFocalPoint
protected
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::Lines
protected
vtkPolyDataMapper2D* vtkOrientedGlyphFocalPlaneContourRepresentation::LinesMapper
protected
vtkActor2D* vtkOrientedGlyphFocalPlaneContourRepresentation::LinesActor
protected
vtkPolyData* vtkOrientedGlyphFocalPlaneContourRepresentation::LinesWorldCoordinates
protected
double vtkOrientedGlyphFocalPlaneContourRepresentation::LastPickPosition[3]
protected
double vtkOrientedGlyphFocalPlaneContourRepresentation::LastEventPosition[2]
protected
vtkProperty2D* vtkOrientedGlyphFocalPlaneContourRepresentation::Property
protected
vtkProperty2D* vtkOrientedGlyphFocalPlaneContourRepresentation::ActiveProperty
protected
vtkProperty2D* vtkOrientedGlyphFocalPlaneContourRepresentation::LinesProperty
protected
vtkMatrix4x4* vtkOrientedGlyphFocalPlaneContourRepresentation::ContourPlaneDirectionCosines
protected
double vtkOrientedGlyphFocalPlaneContourRepresentation::InteractionOffset[2]
protected

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