Slicer  4.8
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkAnnotationROIRepresentation2D Class Reference

#include <Modules/Loadable/Annotations/VTKWidgets/vtkAnnotationROIRepresentation2D.h>

Inheritance diagram for vtkAnnotationROIRepresentation2D:
Inheritance graph
[legend]
Collaboration diagram for vtkAnnotationROIRepresentation2D:
Collaboration graph
[legend]

Public Types

typedef vtkAnnotationROIRepresentation Superclass
 Standard methods for the class. More...
 
- Public Types inherited from vtkAnnotationROIRepresentation
enum  {
  Outside =0, MoveF0, MoveF1, MoveF2,
  MoveF3, MoveF4, MoveF5, Translating,
  Rotating, Scaling
}
 
typedef vtkWidgetRepresentation Superclass
 Standard methods for the class. More...
 

Public Member Functions

virtual int ComputeInteractionState (int X, int Y, int modify=0) VTK_OVERRIDE
 
virtual void GetActors2D (vtkPropCollection *actors) VTK_OVERRIDE
 
virtual const char * GetClassName ()
 
virtual int GetHandleSizeInPixels ()
 
virtual int GetHandlesVisibility ()
 
void GetIntersectionActors (vtkPropCollection *actors)
 
virtual vtkPlane * GetIntersectionPlane ()
 Get the intersecting plane;. More...
 
virtual vtkTransform * GetIntersectionPlaneTransform ()
 Get Intersection transform to 2D coordinate system. More...
 
virtual int GetSliceIntersectionVisibility ()
 
virtual int HasTranslucentPolygonalGeometry () VTK_OVERRIDE
 
virtual void HighlightFace (int cellId) VTK_OVERRIDE
 
virtual int HighlightHandle (vtkProp *prop) VTK_OVERRIDE
 
virtual int IsA (const char *type)
 
void PrintIntersections (ostream &os)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void ReleaseGraphicsResources (vtkWindow *) VTK_OVERRIDE
 Methods supporting, and required by, the rendering process. More...
 
virtual int RenderOpaqueGeometry (vtkViewport *) VTK_OVERRIDE
 
virtual int RenderOverlay (vtkViewport *viewport) VTK_OVERRIDE
 
virtual int RenderTranslucentPolygonalGeometry (vtkViewport *) VTK_OVERRIDE
 
virtual void SetHandleSizeInPixels (int)
 
virtual void SetHandlesVisibility (int)
 
virtual void SetInteractionState (int state) VTK_OVERRIDE
 
virtual void SetSliceIntersectionVisibility (int)
 
virtual void SizeHandles () VTK_OVERRIDE
 
virtual void StartWidgetInteraction (double e[2]) VTK_OVERRIDE
 
virtual void WidgetInteraction (double e[2]) VTK_OVERRIDE
 
- Public Member Functions inherited from vtkAnnotationROIRepresentation
virtual void BuildRepresentation () VTK_OVERRIDE
 
virtual void GetActors (vtkPropCollection *actors) VTK_OVERRIDE
 
virtual double * GetBounds () VTK_OVERRIDE
 
void GetCenter (double center[])
 get the center of the box More...
 
void GetExtents (double bounds[])
 get 3 extents along sides of the box More...
 
virtual vtkProperty * GetFaceProperty ()
 
virtual int GetInsideOut ()
 
virtual int GetOutlineCursorWires ()
 
virtual int GetOutlineFaceWires ()
 
virtual vtkProperty * GetOutlineProperty ()
 
void GetPlanes (vtkPlanes *planes)
 
void GetPolyData (vtkPolyData *pd)
 
virtual vtkProperty * GetSelectedFaceProperty ()
 
virtual vtkProperty * GetSelectedHandleProperty ()
 
virtual vtkProperty * GetSelectedOutlineProperty ()
 
virtual void GetTransform (vtkTransform *t)
 
virtual vtkMatrix4x4 * GetWorldToLocalMatrix ()
 
void HandlesOff ()
 
void HandlesOn ()
 
virtual void InsideOutOff ()
 
virtual void InsideOutOn ()
 
void OutlineCursorWiresOff ()
 
void OutlineCursorWiresOn ()
 
void OutlineFaceWiresOff ()
 
void OutlineFaceWiresOn ()
 
virtual void PlaceWidget (double bounds[6]) VTK_OVERRIDE
 These are methods that satisfy vtkWidgetRepresentation's API. More...
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void SetInsideOut (int)
 
void SetOutlineCursorWires (int)
 
void SetOutlineFaceWires (int)
 
virtual void SetTransform (vtkTransform *t)
 
void SetWorldToLocalMatrix (vtkMatrix4x4 *worldToLocalMatrix)
 Get/Set optional world to local coordiante system transformation. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkAnnotationROIRepresentation2DNew ()
 Instantiate the class. More...
 
static vtkAnnotationROIRepresentation2DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkAnnotationROIRepresentation
static int IsTypeOf (const char *type)
 
static vtkAnnotationROIRepresentationNew ()
 Instantiate the class. More...
 
static vtkAnnotationROIRepresentationSafeDownCast (vtkObject *o)
 

Protected Member Functions

double ComputeHandleRadiusInWorldCoordinates (double radInPixels)
 
virtual void ComputeIntersectionLine (vtkPolyData *inputIntersectionFace, vtkPlane *inputPlane, vtkPolyData *outputIntersectionFacesIntersection)
 
virtual void CreateDefaultProperties () VTK_OVERRIDE
 
void CreateFaceIntersections ()
 
virtual void PositionHandles () VTK_OVERRIDE
 
 vtkAnnotationROIRepresentation2D ()
 
 ~vtkAnnotationROIRepresentation2D ()
 
- Protected Member Functions inherited from vtkAnnotationROIRepresentation
void ComputeNormals ()
 
void GenerateOutline ()
 
void GetDirection (const double Nx[3], const double Ny[3], const double Nz[3], double dir[3])
 
void HighlightOutline (int highlight)
 
void MoveFace (double *p1, double *p2, double *dir, double *x1, double *x2, double *x3, double *x4, double *x5)
 
void MoveMinusXFace (double *p1, double *p2)
 
void MoveMinusYFace (double *p1, double *p2)
 
void MoveMinusZFace (double *p1, double *p2)
 
void MovePlusXFace (double *p1, double *p2)
 
void MovePlusYFace (double *p1, double *p2)
 
void MovePlusZFace (double *p1, double *p2)
 
virtual void Rotate (int X, int Y, double *p1, double *p2, double *vpn)
 
virtual void Scale (double *p1, double *p2, int X, int Y)
 
virtual void Translate (double *p1, double *p2)
 Helper methods. More...
 
 vtkAnnotationROIRepresentation ()
 
 ~vtkAnnotationROIRepresentation ()
 

Protected Attributes

vtkActor2D * CurrentHandle2D
 
vtkProperty2D * DefaultFaceProperty2D
 
vtkActor2D ** Handle2D
 glyphs representing hot spots (e.g., handles) More...
 
vtkPolyDataMapper2D ** HandleMapper2D
 
vtkPropPicker * HandlePicker2D
 
vtkProperty2D * HandleProperties2D [NUMBER_HANDLES]
 
double HandleSizeInPixels
 
int HandlesVisibility
 
vtkTransformPolyDataFilter ** HandleToPlaneTransformFilters
 
vtkActor2D * IntersectionActors [6]
 
vtkPolyData * IntersectionFaces [6]
 
vtkPolyData * IntersectionLines [6]
 
vtkPolyDataMapper2D * IntersectionMappers [6]
 
vtkPlane * IntersectionPlane
 Plane/Face intersection pipelines. More...
 
vtkTransform * IntersectionPlaneTransform
 
vtkTransformPolyDataFilter * IntersectionPlaneTransformFilters [6]
 
double LastEventPosition2D [4]
 
vtkPropPicker * LastPicker2D
 
vtkProperty2D * SelectedFaceProperty2D
 
vtkProperty2D * SelectedHandleProperty2D
 
int SliceIntersectionVisibility
 
- Protected Attributes inherited from vtkAnnotationROIRepresentation
vtkBox * BoundingBox
 Support GetBounds() method. More...
 
vtkActor * CurrentHandle
 
int CurrentHexFace
 
vtkProperty * FaceProperty
 
vtkActor ** Handle
 glyphs representing hot spots (e.g., handles) More...
 
vtkSphereSource ** HandleGeometry
 
vtkPolyDataMapper ** HandleMapper
 
vtkCellPicker * HandlePicker
 Do the picking. More...
 
vtkProperty * HandleProperties [NUMBER_HANDLES]
 
vtkActor * HexActor
 the hexahedron (6 faces) More...
 
vtkActor * HexFace
 A face of the hexahedron. More...
 
vtkPolyDataMapper * HexFaceMapper
 
vtkPolyData * HexFacePolyData
 
vtkPolyDataMapper * HexMapper
 
vtkActor * HexOutline
 wireframe outline More...
 
vtkPolyData * HexPolyData
 
int InsideOut
 Control the orientation of the normals. More...
 
double LastEventPosition [4]
 Manage how the representation appears. More...
 
vtkCellPicker * LastPicker
 
vtkMatrix4x4 * Matrix
 
double N [6][3]
 
int OutlineCursorWires
 
int OutlineFaceWires
 
vtkPolyDataMapper * OutlineMapper
 
vtkPolyData * OutlinePolyData
 
vtkProperty * OutlineProperty
 
vtkDoubleArray * PlaneNormals
 
vtkPoints * PlanePoints
 Internal ivars for performance. More...
 
vtkPoints * Points
 
vtkProperty * SelectedFaceProperty
 
vtkProperty * SelectedHandleProperty
 
vtkProperty * SelectedOutlineProperty
 
vtkTransform * Transform
 Transform the hexahedral points (used for rotations) More...
 
vtkMatrix4x4 * WorldToLocalMatrix
 

Additional Inherited Members

- Static Public Attributes inherited from vtkAnnotationROIRepresentation
static const int NUMBER_HANDLES = 7
 

Detailed Description

Definition at line 61 of file vtkAnnotationROIRepresentation2D.h.

Member Typedef Documentation

◆ Superclass

Standard methods for the class.

Definition at line 72 of file vtkAnnotationROIRepresentation2D.h.

Constructor & Destructor Documentation

◆ vtkAnnotationROIRepresentation2D()

vtkAnnotationROIRepresentation2D::vtkAnnotationROIRepresentation2D ( )
protected

◆ ~vtkAnnotationROIRepresentation2D()

vtkAnnotationROIRepresentation2D::~vtkAnnotationROIRepresentation2D ( )
protected

Member Function Documentation

◆ ComputeHandleRadiusInWorldCoordinates()

double vtkAnnotationROIRepresentation2D::ComputeHandleRadiusInWorldCoordinates ( double  radInPixels)
protected

◆ ComputeInteractionState()

virtual int vtkAnnotationROIRepresentation2D::ComputeInteractionState ( int  X,
int  Y,
int  modify = 0 
)
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ ComputeIntersectionLine()

virtual void vtkAnnotationROIRepresentation2D::ComputeIntersectionLine ( vtkPolyData *  inputIntersectionFace,
vtkPlane *  inputPlane,
vtkPolyData *  outputIntersectionFacesIntersection 
)
protectedvirtual

◆ CreateDefaultProperties()

virtual void vtkAnnotationROIRepresentation2D::CreateDefaultProperties ( )
protectedvirtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ CreateFaceIntersections()

void vtkAnnotationROIRepresentation2D::CreateFaceIntersections ( )
protected

◆ GetActors2D()

virtual void vtkAnnotationROIRepresentation2D::GetActors2D ( vtkPropCollection *  actors)
virtual

◆ GetClassName()

virtual const char* vtkAnnotationROIRepresentation2D::GetClassName ( )
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ GetHandleSizeInPixels()

virtual int vtkAnnotationROIRepresentation2D::GetHandleSizeInPixels ( )
virtual

◆ GetHandlesVisibility()

virtual int vtkAnnotationROIRepresentation2D::GetHandlesVisibility ( )
virtual

◆ GetIntersectionActors()

void vtkAnnotationROIRepresentation2D::GetIntersectionActors ( vtkPropCollection *  actors)

◆ GetIntersectionPlane()

virtual vtkPlane* vtkAnnotationROIRepresentation2D::GetIntersectionPlane ( )
virtual

Get the intersecting plane;.

◆ GetIntersectionPlaneTransform()

virtual vtkTransform* vtkAnnotationROIRepresentation2D::GetIntersectionPlaneTransform ( )
virtual

Get Intersection transform to 2D coordinate system.

◆ GetSliceIntersectionVisibility()

virtual int vtkAnnotationROIRepresentation2D::GetSliceIntersectionVisibility ( )
virtual

◆ HasTranslucentPolygonalGeometry()

virtual int vtkAnnotationROIRepresentation2D::HasTranslucentPolygonalGeometry ( )
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ HighlightFace()

virtual void vtkAnnotationROIRepresentation2D::HighlightFace ( int  cellId)
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ HighlightHandle()

virtual int vtkAnnotationROIRepresentation2D::HighlightHandle ( vtkProp *  prop)
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ IsA()

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

Reimplemented from vtkAnnotationROIRepresentation.

◆ IsTypeOf()

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

◆ New()

static vtkAnnotationROIRepresentation2D* vtkAnnotationROIRepresentation2D::New ( )
static

Instantiate the class.

◆ PositionHandles()

virtual void vtkAnnotationROIRepresentation2D::PositionHandles ( )
protectedvirtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ PrintIntersections()

void vtkAnnotationROIRepresentation2D::PrintIntersections ( ostream &  os)

◆ PrintSelf()

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

◆ ReleaseGraphicsResources()

virtual void vtkAnnotationROIRepresentation2D::ReleaseGraphicsResources ( vtkWindow *  )
virtual

Methods supporting, and required by, the rendering process.

Reimplemented from vtkAnnotationROIRepresentation.

◆ RenderOpaqueGeometry()

virtual int vtkAnnotationROIRepresentation2D::RenderOpaqueGeometry ( vtkViewport *  )
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ RenderOverlay()

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

◆ RenderTranslucentPolygonalGeometry()

virtual int vtkAnnotationROIRepresentation2D::RenderTranslucentPolygonalGeometry ( vtkViewport *  )
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ SafeDownCast()

static vtkAnnotationROIRepresentation2D* vtkAnnotationROIRepresentation2D::SafeDownCast ( vtkObject *  o)
static

◆ SetHandleSizeInPixels()

virtual void vtkAnnotationROIRepresentation2D::SetHandleSizeInPixels ( int  )
virtual

◆ SetHandlesVisibility()

virtual void vtkAnnotationROIRepresentation2D::SetHandlesVisibility ( int  )
virtual

◆ SetInteractionState()

virtual void vtkAnnotationROIRepresentation2D::SetInteractionState ( int  state)
virtual

The interaction state may be set from a widget (e.g., vtkSlicerBoxWidget2) or other object. This controls how the interaction with the widget proceeds. Normally this method is used as part of a handshaking process with the widget: First ComputeInteractionState() is invoked that returns a state based on geometric considerations (i.e., cursor near a widget feature), then based on events, the widget may modify this further.

Reimplemented from vtkAnnotationROIRepresentation.

◆ SetSliceIntersectionVisibility()

virtual void vtkAnnotationROIRepresentation2D::SetSliceIntersectionVisibility ( int  )
virtual

◆ SizeHandles()

virtual void vtkAnnotationROIRepresentation2D::SizeHandles ( )
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ StartWidgetInteraction()

virtual void vtkAnnotationROIRepresentation2D::StartWidgetInteraction ( double  e[2])
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ WidgetInteraction()

virtual void vtkAnnotationROIRepresentation2D::WidgetInteraction ( double  e[2])
virtual

Reimplemented from vtkAnnotationROIRepresentation.

Member Data Documentation

◆ CurrentHandle2D

vtkActor2D* vtkAnnotationROIRepresentation2D::CurrentHandle2D
protected

Definition at line 146 of file vtkAnnotationROIRepresentation2D.h.

◆ DefaultFaceProperty2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::DefaultFaceProperty2D
protected

Definition at line 142 of file vtkAnnotationROIRepresentation2D.h.

◆ Handle2D

vtkActor2D** vtkAnnotationROIRepresentation2D::Handle2D
protected

glyphs representing hot spots (e.g., handles)

Definition at line 126 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleMapper2D

vtkPolyDataMapper2D** vtkAnnotationROIRepresentation2D::HandleMapper2D
protected

Definition at line 127 of file vtkAnnotationROIRepresentation2D.h.

◆ HandlePicker2D

vtkPropPicker* vtkAnnotationROIRepresentation2D::HandlePicker2D
protected

Definition at line 144 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleProperties2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::HandleProperties2D[NUMBER_HANDLES]
protected

Definition at line 139 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleSizeInPixels

double vtkAnnotationROIRepresentation2D::HandleSizeInPixels
protected

Definition at line 159 of file vtkAnnotationROIRepresentation2D.h.

◆ HandlesVisibility

int vtkAnnotationROIRepresentation2D::HandlesVisibility
protected

Definition at line 160 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleToPlaneTransformFilters

vtkTransformPolyDataFilter** vtkAnnotationROIRepresentation2D::HandleToPlaneTransformFilters
protected

Definition at line 128 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionActors

vtkActor2D* vtkAnnotationROIRepresentation2D::IntersectionActors[6]
protected

Definition at line 136 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionFaces

vtkPolyData* vtkAnnotationROIRepresentation2D::IntersectionFaces[6]
protected

Definition at line 134 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionLines

vtkPolyData* vtkAnnotationROIRepresentation2D::IntersectionLines[6]
protected

Definition at line 133 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionMappers

vtkPolyDataMapper2D* vtkAnnotationROIRepresentation2D::IntersectionMappers[6]
protected

Definition at line 137 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionPlane

vtkPlane* vtkAnnotationROIRepresentation2D::IntersectionPlane
protected

Plane/Face intersection pipelines.

Definition at line 131 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionPlaneTransform

vtkTransform* vtkAnnotationROIRepresentation2D::IntersectionPlaneTransform
protected

Definition at line 132 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionPlaneTransformFilters

vtkTransformPolyDataFilter* vtkAnnotationROIRepresentation2D::IntersectionPlaneTransformFilters[6]
protected

Definition at line 135 of file vtkAnnotationROIRepresentation2D.h.

◆ LastEventPosition2D

double vtkAnnotationROIRepresentation2D::LastEventPosition2D[4]
protected

Definition at line 148 of file vtkAnnotationROIRepresentation2D.h.

◆ LastPicker2D

vtkPropPicker* vtkAnnotationROIRepresentation2D::LastPicker2D
protected

Definition at line 145 of file vtkAnnotationROIRepresentation2D.h.

◆ SelectedFaceProperty2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::SelectedFaceProperty2D
protected

Definition at line 141 of file vtkAnnotationROIRepresentation2D.h.

◆ SelectedHandleProperty2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::SelectedHandleProperty2D
protected

Definition at line 140 of file vtkAnnotationROIRepresentation2D.h.

◆ SliceIntersectionVisibility

int vtkAnnotationROIRepresentation2D::SliceIntersectionVisibility
protected

Definition at line 157 of file vtkAnnotationROIRepresentation2D.h.


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