Slicer  5.3
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

int ComputeInteractionState (int X, int Y, int modify=0) override
 
void GetActors2D (vtkPropCollection *actors) override
 
virtual const char * GetClassName ()
 
virtual double GetHandleSize ()
 
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 ()
 
int HasTranslucentPolygonalGeometry () override
 
void HighlightFace (int cellId) override
 
int HighlightHandle (vtkProp *prop) override
 
virtual int IsA (const char *type)
 
void PrintIntersections (ostream &os)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void ReleaseGraphicsResources (vtkWindow *) override
 
Methods supporting, and required by, the rendering process. More...
 
int RenderOpaqueGeometry (vtkViewport *) override
 
int RenderOverlay (vtkViewport *viewport) override
 
int RenderTranslucentPolygonalGeometry (vtkViewport *) override
 
virtual void SetHandleSize (double)
 
virtual void SetHandlesVisibility (int)
 
void SetInteractionState (int state) override
 
virtual void SetSliceIntersectionVisibility (int)
 
void SizeHandles () override
 
void StartWidgetInteraction (double e[2]) override
 
void WidgetInteraction (double e[2]) override
 
- Public Member Functions inherited from vtkAnnotationROIRepresentation
void BuildRepresentation () override
 
int ComputeInteractionState (int X, int Y, int modify=0) override
 
void GetActors (vtkPropCollection *actors) override
 
double * GetBounds () 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 ()
 
int HasTranslucentPolygonalGeometry () override
 
virtual void InsideOutOff ()
 
virtual void InsideOutOn ()
 
void OutlineCursorWiresOff ()
 
void OutlineCursorWiresOn ()
 
void OutlineFaceWiresOff ()
 
void OutlineFaceWiresOn ()
 
void PlaceWidget (double bounds[6]) override
 
These are methods that satisfy vtkWidgetRepresentation's API. More...
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void ReleaseGraphicsResources (vtkWindow *) override
 
Methods supporting, and required by, the rendering process. More...
 
int RenderOpaqueGeometry (vtkViewport *) override
 
int RenderTranslucentPolygonalGeometry (vtkViewport *) 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 coordinate system transformation. More...
 
void StartWidgetInteraction (double e[2]) override
 
void WidgetInteraction (double e[2]) override
 

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)
 
void CreateDefaultProperties () override
 
void CreateFaceIntersections ()
 
void PositionHandles () override
 
 vtkAnnotationROIRepresentation2D ()
 
 ~vtkAnnotationROIRepresentation2D () override
 
- 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 () override
 

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 HandleSize
 
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 ( )
overrideprotected

Member Function Documentation

◆ ComputeHandleRadiusInWorldCoordinates()

double vtkAnnotationROIRepresentation2D::ComputeHandleRadiusInWorldCoordinates ( double  radInPixels)
protected

◆ ComputeInteractionState()

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

◆ ComputeIntersectionLine()

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

◆ CreateDefaultProperties()

void vtkAnnotationROIRepresentation2D::CreateDefaultProperties ( )
overrideprotectedvirtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ CreateFaceIntersections()

void vtkAnnotationROIRepresentation2D::CreateFaceIntersections ( )
protected

◆ GetActors2D()

void vtkAnnotationROIRepresentation2D::GetActors2D ( vtkPropCollection *  actors)
override

◆ GetClassName()

virtual const char* vtkAnnotationROIRepresentation2D::GetClassName ( )
virtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ GetHandleSize()

virtual double vtkAnnotationROIRepresentation2D::GetHandleSize ( )
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()

int vtkAnnotationROIRepresentation2D::HasTranslucentPolygonalGeometry ( )
override

◆ HighlightFace()

void vtkAnnotationROIRepresentation2D::HighlightFace ( int  cellId)
overridevirtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ HighlightHandle()

int vtkAnnotationROIRepresentation2D::HighlightHandle ( vtkProp *  prop)
overridevirtual

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

void vtkAnnotationROIRepresentation2D::PositionHandles ( )
overrideprotectedvirtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ PrintIntersections()

void vtkAnnotationROIRepresentation2D::PrintIntersections ( ostream &  os)

◆ PrintSelf()

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

◆ ReleaseGraphicsResources()

void vtkAnnotationROIRepresentation2D::ReleaseGraphicsResources ( vtkWindow *  )
override


Methods supporting, and required by, the rendering process.

◆ RenderOpaqueGeometry()

int vtkAnnotationROIRepresentation2D::RenderOpaqueGeometry ( vtkViewport *  )
override

◆ RenderOverlay()

int vtkAnnotationROIRepresentation2D::RenderOverlay ( vtkViewport *  viewport)
override

◆ RenderTranslucentPolygonalGeometry()

int vtkAnnotationROIRepresentation2D::RenderTranslucentPolygonalGeometry ( vtkViewport *  )
override

◆ SafeDownCast()

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

◆ SetHandleSize()

virtual void vtkAnnotationROIRepresentation2D::SetHandleSize ( double  )
virtual

Set/Get the handle diameter as a fraction of the window diagonal. Valid range is between 0.0001 and 0.5.

◆ SetHandlesVisibility()

virtual void vtkAnnotationROIRepresentation2D::SetHandlesVisibility ( int  )
virtual

◆ SetInteractionState()

void vtkAnnotationROIRepresentation2D::SetInteractionState ( int  state)
overridevirtual

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

void vtkAnnotationROIRepresentation2D::SizeHandles ( )
overridevirtual

Reimplemented from vtkAnnotationROIRepresentation.

◆ StartWidgetInteraction()

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

◆ WidgetInteraction()

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

Member Data Documentation

◆ CurrentHandle2D

vtkActor2D* vtkAnnotationROIRepresentation2D::CurrentHandle2D
protected

Definition at line 148 of file vtkAnnotationROIRepresentation2D.h.

◆ DefaultFaceProperty2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::DefaultFaceProperty2D
protected

Definition at line 144 of file vtkAnnotationROIRepresentation2D.h.

◆ Handle2D

vtkActor2D** vtkAnnotationROIRepresentation2D::Handle2D
protected

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

Definition at line 128 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleMapper2D

vtkPolyDataMapper2D** vtkAnnotationROIRepresentation2D::HandleMapper2D
protected

Definition at line 129 of file vtkAnnotationROIRepresentation2D.h.

◆ HandlePicker2D

vtkPropPicker* vtkAnnotationROIRepresentation2D::HandlePicker2D
protected

Definition at line 146 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleProperties2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::HandleProperties2D[NUMBER_HANDLES]
protected

Definition at line 141 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleSize

double vtkAnnotationROIRepresentation2D::HandleSize
protected

Definition at line 161 of file vtkAnnotationROIRepresentation2D.h.

◆ HandlesVisibility

int vtkAnnotationROIRepresentation2D::HandlesVisibility
protected

Definition at line 162 of file vtkAnnotationROIRepresentation2D.h.

◆ HandleToPlaneTransformFilters

vtkTransformPolyDataFilter** vtkAnnotationROIRepresentation2D::HandleToPlaneTransformFilters
protected

Definition at line 130 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionActors

vtkActor2D* vtkAnnotationROIRepresentation2D::IntersectionActors[6]
protected

Definition at line 138 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionFaces

vtkPolyData* vtkAnnotationROIRepresentation2D::IntersectionFaces[6]
protected

Definition at line 136 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionLines

vtkPolyData* vtkAnnotationROIRepresentation2D::IntersectionLines[6]
protected

Definition at line 135 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionMappers

vtkPolyDataMapper2D* vtkAnnotationROIRepresentation2D::IntersectionMappers[6]
protected

Definition at line 139 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionPlane

vtkPlane* vtkAnnotationROIRepresentation2D::IntersectionPlane
protected

Plane/Face intersection pipelines.

Definition at line 133 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionPlaneTransform

vtkTransform* vtkAnnotationROIRepresentation2D::IntersectionPlaneTransform
protected

Definition at line 134 of file vtkAnnotationROIRepresentation2D.h.

◆ IntersectionPlaneTransformFilters

vtkTransformPolyDataFilter* vtkAnnotationROIRepresentation2D::IntersectionPlaneTransformFilters[6]
protected

Definition at line 137 of file vtkAnnotationROIRepresentation2D.h.

◆ LastEventPosition2D

double vtkAnnotationROIRepresentation2D::LastEventPosition2D[4]
protected

Definition at line 150 of file vtkAnnotationROIRepresentation2D.h.

◆ LastPicker2D

vtkPropPicker* vtkAnnotationROIRepresentation2D::LastPicker2D
protected

Definition at line 147 of file vtkAnnotationROIRepresentation2D.h.

◆ SelectedFaceProperty2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::SelectedFaceProperty2D
protected

Definition at line 143 of file vtkAnnotationROIRepresentation2D.h.

◆ SelectedHandleProperty2D

vtkProperty2D* vtkAnnotationROIRepresentation2D::SelectedHandleProperty2D
protected

Definition at line 142 of file vtkAnnotationROIRepresentation2D.h.

◆ SliceIntersectionVisibility

int vtkAnnotationROIRepresentation2D::SliceIntersectionVisibility
protected

Definition at line 159 of file vtkAnnotationROIRepresentation2D.h.


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