Slicer  4.11
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
vtkSlicerAngleRepresentation3D Class Reference

Default representation for the angle widget. More...

#include <Modules/Loadable/Markups/VTKWidgets/vtkSlicerAngleRepresentation3D.h>

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

Public Types

typedef vtkSlicerMarkupsWidgetRepresentation3D Superclass
 Standard methods for instances of this class. More...
 
- Public Types inherited from vtkSlicerMarkupsWidgetRepresentation3D
typedef vtkSlicerMarkupsWidgetRepresentation Superclass
 Standard methods for instances of this class. More...
 
- Public Types inherited from vtkSlicerMarkupsWidgetRepresentation
typedef vtkMRMLAbstractWidgetRepresentation Superclass
 Standard methods for instances of this class. More...
 
- Public Types inherited from vtkMRMLAbstractWidgetRepresentation
typedef vtkProp Superclass
 Standard methods for instances of this class. More...
 

Public Member Functions

void CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) override
 
void GetActors (vtkPropCollection *) override
 Methods to make this class behave as a vtkProp. More...
 
double * GetBounds () override
 Return the bounds of the representation. More...
 
virtual const char * GetClassName ()
 
bool GetTransformationReferencePoint (double referencePointWorld[3]) override
 Translation, rotation, scaling will happen around this position. More...
 
vtkTypeBool HasTranslucentPolygonalGeometry () override
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void ReleaseGraphicsResources (vtkWindow *) override
 
int RenderOpaqueGeometry (vtkViewport *viewport) override
 
int RenderOverlay (vtkViewport *viewport) override
 
int RenderTranslucentPolygonalGeometry (vtkViewport *viewport) override
 
void UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override
 
- Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation3D
bool AccuratePick (int x, int y, double pickPoint[3])
 
void CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) override
 
void CanInteractWithLine (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2)
 
void GetActors (vtkPropCollection *) override
 Methods to make this class behave as a vtkProp. More...
 
double * GetBounds () override
 Return the bounds of the representation. More...
 
bool GetNthControlPointViewVisibility (int n)
 
vtkTypeBool HasTranslucentPolygonalGeometry () override
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void ReleaseGraphicsResources (vtkWindow *) override
 
int RenderOpaqueGeometry (vtkViewport *viewport) override
 
int RenderOverlay (vtkViewport *viewport) override
 
int RenderTranslucentPolygonalGeometry (vtkViewport *viewport) override
 
void SetRenderer (vtkRenderer *ren) override
 
void UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override
 
- Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation
virtual int FindClosestPointOnWidget (const int displayPos[2], double worldPos[3], int *idx)
 
virtual vtkMRMLMarkupsDisplayNodeGetMarkupsDisplayNode ()
 
virtual vtkMRMLMarkupsNodeGetMarkupsNode ()
 
virtual vtkMRMLMarkupsNode::ControlPointGetNthControlPoint (int n)
 Get the nth node. More...
 
virtual int GetNthControlPointDisplayPosition (int n, double pos[2])
 
vtkPointPlacer * GetPointPlacer ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetMarkupsDisplayNode (vtkMRMLMarkupsDisplayNode *markupsDisplayNode)
 Set/Get the vtkMRMLMarkipsNode connected with this representation. More...
 
virtual void UpdateCenter ()
 
- Public Member Functions inherited from vtkMRMLAbstractWidgetRepresentation
virtual void AlwaysOnTopOff ()
 
virtual void AlwaysOnTopOn ()
 
virtual bool GetAlwaysOnTop ()
 
virtual double GetPickingTolerance ()
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetAlwaysOnTop (bool)
 
virtual void SetPickingTolerance (double)
 
double * GetBounds () VTK_SIZEHINT(6) override
 
void GetActors (vtkPropCollection *) override
 
void GetActors2D (vtkPropCollection *) override
 
void GetVolumes (vtkPropCollection *) override
 
void ReleaseGraphicsResources (vtkWindow *) override
 
int RenderOverlay (vtkViewport *vtkNotUsed(viewport)) override
 
int RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) override
 
int RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) override
 
int RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) override
 
vtkTypeBool HasTranslucentPolygonalGeometry () override
 
virtual vtkRenderer * GetRenderer ()
 
virtual void SetViewNode (vtkMRMLAbstractViewNode *viewNode)
 
virtual vtkMRMLAbstractViewNodeGetViewNode ()
 
virtual bool GetNeedToRender ()
 
virtual void SetNeedToRender (bool)
 
virtual void NeedToRenderOn ()
 
virtual void NeedToRenderOff ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkSlicerAngleRepresentation3DNew ()
 Instantiate this class. More...
 
static vtkSlicerAngleRepresentation3DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation3D
static int IsTypeOf (const char *type)
 
static vtkSlicerMarkupsWidgetRepresentation3DSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkSlicerMarkupsWidgetRepresentationSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractWidgetRepresentation
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractWidgetRepresentationSafeDownCast (vtkObject *o)
 

Protected Member Functions

void BuildArc ()
 
 vtkSlicerAngleRepresentation3D ()
 
 ~vtkSlicerAngleRepresentation3D () override
 
- Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation3D
ControlPointsPipeline3DGetControlPointsPipeline (int controlPointType)
 
double GetViewScaleFactorAtPosition (double positionWorld[3])
 
virtual void UpdateAllPointsAndLabelsFromMRML ()
 
void UpdateControlPointSize () override
 
virtual void UpdateNthPointAndLabelFromMRML (int n)
 
void UpdateViewScaleFactor () override
 
 vtkSlicerMarkupsWidgetRepresentation3D ()
 
 ~vtkSlicerMarkupsWidgetRepresentation3D () override
 
- Protected Member Functions inherited from vtkSlicerMarkupsWidgetRepresentation
void BuildLine (vtkPolyData *linePolyData, bool displayPosition)
 
bool GetAllControlPointsSelected ()
 Convenience method. More...
 
virtual bool GetAllControlPointsVisible ()
 Convenience method. More...
 
double * GetWidgetColor (int controlPointType)
 
virtual void SetMarkupsNode (vtkMRMLMarkupsNode *markupsNode)
 
 vtkSlicerMarkupsWidgetRepresentation ()
 
 ~vtkSlicerMarkupsWidgetRepresentation () override
 
- Protected Member Functions inherited from vtkMRMLAbstractWidgetRepresentation
void AddActorsBounds (vtkBoundingBox &bounds, const std::vector< vtkProp *> &actors, double *additionalBounds=nullptr)
 
void GetRendererComputedDisplayPositionFromWorldPosition (const double worldPos[3], double displayPos[2])
 
void UpdateRelativeCoincidentTopologyOffsets (vtkMapper *mapper)
 
 vtkMRMLAbstractWidgetRepresentation ()
 
 ~vtkMRMLAbstractWidgetRepresentation () override
 

Protected Attributes

vtkSmartPointer< vtkArcSource > Arc
 
vtkSmartPointer< vtkActor > ArcActor
 
vtkSmartPointer< vtkPolyDataMapper > ArcMapper
 
vtkSmartPointer< vtkTubeFilter > ArcTubeFilter
 
std::string LabelFormat
 
vtkSmartPointer< vtkPolyData > Line
 
vtkSmartPointer< vtkActor > LineActor
 
vtkSmartPointer< vtkPolyDataMapper > LineMapper
 
vtkSmartPointer< vtkTextActor > TextActor
 
vtkSmartPointer< vtkTubeFilter > TubeFilter
 
- Protected Attributes inherited from vtkSlicerMarkupsWidgetRepresentation3D
vtkSmartPointer< vtkCellPicker > AccuratePicker
 
- Protected Attributes inherited from vtkSlicerMarkupsWidgetRepresentation
vtkTypeBool ClosedLoop
 
ControlPointsPipelineControlPoints [NumberOfControlPointTypes]
 
double ControlPointSize
 
vtkWeakPointer< vtkMRMLMarkupsDisplayNodeMarkupsDisplayNode
 
vtkWeakPointer< vtkMRMLMarkupsNodeMarkupsNode
 
vtkTimeStamp MarkupsTransformModifiedTime
 
vtkSmartPointer< vtkPointPlacer > PointPlacer
 
double ScreenSizePixel
 
vtkSmartPointer< vtkTextActor > TextActor
 
double ViewScaleFactorMmPerPixel
 
- Protected Attributes inherited from vtkMRMLAbstractWidgetRepresentation
bool AlwaysOnTop
 
double Bounds [6]
 Temporary variable to store GetBounds() result. More...
 
bool NeedToRender
 
double PickingTolerance
 
vtkWeakPointer< vtkRenderer > Renderer
 The renderer in which this widget is placed. More...
 
double ScreenScaleFactor
 Allows global rescaling of all widgets (to compensate for larger or smaller physical screen size) More...
 
vtkWeakPointer< vtkMRMLAbstractViewNodeViewNode
 

Additional Inherited Members

- Protected Types inherited from vtkSlicerMarkupsWidgetRepresentation
enum  {
  Unselected, Selected, Active, Project,
  ProjectBack, NumberOfControlPointTypes
}
 

Detailed Description

Default representation for the angle widget.

This class provides the default concrete representation for the vtkMRMLAbstractWidget. See vtkMRMLAbstractWidget for details.

See also
vtkSlicerMarkupsWidgetRepresentation3D vtkMRMLAbstractWidget

Definition at line 45 of file vtkSlicerAngleRepresentation3D.h.

Member Typedef Documentation

◆ Superclass

Standard methods for instances of this class.

Definition at line 52 of file vtkSlicerAngleRepresentation3D.h.

Constructor & Destructor Documentation

◆ vtkSlicerAngleRepresentation3D()

vtkSlicerAngleRepresentation3D::vtkSlicerAngleRepresentation3D ( )
protected

◆ ~vtkSlicerAngleRepresentation3D()

vtkSlicerAngleRepresentation3D::~vtkSlicerAngleRepresentation3D ( )
overrideprotected

Member Function Documentation

◆ BuildArc()

void vtkSlicerAngleRepresentation3D::BuildArc ( )
protected

◆ CanInteract()

void vtkSlicerAngleRepresentation3D::CanInteract ( vtkMRMLInteractionEventData interactionEventData,
int &  foundComponentType,
int &  foundComponentIndex,
double &  closestDistance2 
)
overridevirtual

Return found component type (as vtkMRMLMarkupsDisplayNode::ComponentType). closestDistance2 is the squared distance in display coordinates from the closest position where interaction is possible. componentIndex returns index of the found component (e.g., if control point is found then control point index is returned).

Reimplemented from vtkSlicerMarkupsWidgetRepresentation.

◆ GetActors()

void vtkSlicerAngleRepresentation3D::GetActors ( vtkPropCollection *  )
override

Methods to make this class behave as a vtkProp.

◆ GetBounds()

double* vtkSlicerAngleRepresentation3D::GetBounds ( )
override

Return the bounds of the representation.

◆ GetClassName()

virtual const char* vtkSlicerAngleRepresentation3D::GetClassName ( )
virtual

◆ GetTransformationReferencePoint()

bool vtkSlicerAngleRepresentation3D::GetTransformationReferencePoint ( double  referencePointWorld[3])
overridevirtual

Translation, rotation, scaling will happen around this position.

Reimplemented from vtkSlicerMarkupsWidgetRepresentation.

◆ HasTranslucentPolygonalGeometry()

vtkTypeBool vtkSlicerAngleRepresentation3D::HasTranslucentPolygonalGeometry ( )
override

◆ IsA()

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

◆ IsTypeOf()

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

◆ New()

static vtkSlicerAngleRepresentation3D* vtkSlicerAngleRepresentation3D::New ( )
static

Instantiate this class.

◆ PrintSelf()

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

◆ ReleaseGraphicsResources()

void vtkSlicerAngleRepresentation3D::ReleaseGraphicsResources ( vtkWindow *  )
override

◆ RenderOpaqueGeometry()

int vtkSlicerAngleRepresentation3D::RenderOpaqueGeometry ( vtkViewport *  viewport)
override

◆ RenderOverlay()

int vtkSlicerAngleRepresentation3D::RenderOverlay ( vtkViewport *  viewport)
override

◆ RenderTranslucentPolygonalGeometry()

int vtkSlicerAngleRepresentation3D::RenderTranslucentPolygonalGeometry ( vtkViewport *  viewport)
override

◆ SafeDownCast()

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

◆ UpdateFromMRML()

void vtkSlicerAngleRepresentation3D::UpdateFromMRML ( vtkMRMLNode caller,
unsigned long  event,
void *  callData = nullptr 
)
overridevirtual

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

Reimplemented from vtkMRMLAbstractWidgetRepresentation.

Member Data Documentation

◆ Arc

vtkSmartPointer<vtkArcSource> vtkSlicerAngleRepresentation3D::Arc
protected

Definition at line 84 of file vtkSlicerAngleRepresentation3D.h.

◆ ArcActor

vtkSmartPointer<vtkActor> vtkSlicerAngleRepresentation3D::ArcActor
protected

Definition at line 86 of file vtkSlicerAngleRepresentation3D.h.

◆ ArcMapper

vtkSmartPointer<vtkPolyDataMapper> vtkSlicerAngleRepresentation3D::ArcMapper
protected

Definition at line 85 of file vtkSlicerAngleRepresentation3D.h.

◆ ArcTubeFilter

vtkSmartPointer<vtkTubeFilter> vtkSlicerAngleRepresentation3D::ArcTubeFilter
protected

Definition at line 91 of file vtkSlicerAngleRepresentation3D.h.

◆ LabelFormat

std::string vtkSlicerAngleRepresentation3D::LabelFormat
protected

Definition at line 93 of file vtkSlicerAngleRepresentation3D.h.

◆ Line

vtkSmartPointer<vtkPolyData> vtkSlicerAngleRepresentation3D::Line
protected

Definition at line 80 of file vtkSlicerAngleRepresentation3D.h.

◆ LineActor

vtkSmartPointer<vtkActor> vtkSlicerAngleRepresentation3D::LineActor
protected

Definition at line 82 of file vtkSlicerAngleRepresentation3D.h.

◆ LineMapper

vtkSmartPointer<vtkPolyDataMapper> vtkSlicerAngleRepresentation3D::LineMapper
protected

Definition at line 81 of file vtkSlicerAngleRepresentation3D.h.

◆ TextActor

vtkSmartPointer<vtkTextActor> vtkSlicerAngleRepresentation3D::TextActor
protected

Definition at line 88 of file vtkSlicerAngleRepresentation3D.h.

◆ TubeFilter

vtkSmartPointer<vtkTubeFilter> vtkSlicerAngleRepresentation3D::TubeFilter
protected

Definition at line 90 of file vtkSlicerAngleRepresentation3D.h.


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