![]() |
Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
Default representation for the line widget. More...
#include <Modules/Loadable/Markups/VTKWidgets/vtkSlicerCurveRepresentation2D.h>
Public Types | |
typedef vtkSlicerMarkupsWidgetRepresentation2D | Superclass |
Standard methods for instances of this class. | |
![]() | |
typedef vtkSlicerMarkupsWidgetRepresentation | Superclass |
Standard methods for instances of this class. | |
![]() | |
enum | { Unselected , Selected , Active , Project , ProjectBack , NumberOfControlPointTypes } |
typedef vtkMRMLAbstractWidgetRepresentation | Superclass |
Standard methods for instances of this class. | |
![]() | |
typedef vtkProp | Superclass |
Standard methods for instances of this class. | |
Public Member Functions | |
void | CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) override |
void | CanInteractWithCurve (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &componentIndex, double &closestDistance2) |
void | GetActors (vtkPropCollection *) override |
Methods to make this class behave as a vtkProp. | |
double * | GetBounds () VTK_SIZEHINT(6) override |
Return the bounds of the representation. | |
virtual const char * | GetClassName () |
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 | UpdateFromMRMLInternal (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override |
![]() | |
void | CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) override |
Position is displayed (slice) position. | |
void | CanInteractWithLine (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2) |
void | GetActors (vtkPropCollection *) override |
Methods to make this class behave as a vtkProp. | |
int | GetNthControlPointDisplayPosition (int n, double pos[2]) override |
virtual bool | GetNthControlPointViewVisibility (int n) |
void | GetSliceToWorldCoordinates (const double[2], double[3]) |
void | GetWorldToSliceCoordinates (const double worldPos[3], double slicePos[2]) |
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 |
virtual void | SetCenterSliceVisibility (bool visibility) |
Set the center slice visibility (i.e. if it is on the slice). | |
virtual void | SetNthControlPointSliceVisibility (int n, bool visibility) |
Set the Nth node slice visibility (i.e. if it is on the slice). | |
void | UpdateFromMRMLInternal (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override |
![]() | |
virtual int | FindClosestPointOnWidget (const int displayPos[2], double worldPos[3], int *idx) |
void | GetActors (vtkPropCollection *) override |
Methods to make this class behave as a vtkProp. | |
virtual vtkPolyData * | GetControlPointsPolyData (int controlPointType) |
virtual vtkPolyData * | GetLabelControlPointsPolyData (int pipeline) |
virtual vtkStringArray * | GetLabels (int pipeline) |
virtual vtkMRMLMarkupsDisplayNode * | GetMarkupsDisplayNode () |
virtual vtkMRMLMarkupsNode * | GetMarkupsNode () |
virtual vtkMRMLMarkupsNode::ControlPoint * | GetNthControlPoint (int n) |
Get the nth control point. | |
virtual int | GetNumberOfControlPoints () |
Get number of control points. | |
virtual vtkPointPlacer * | GetPointPlacer () |
virtual bool | GetTransformationReferencePoint (double referencePointWorld[3]) |
Translation, rotation, scaling will happen around this position. | |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
bool | IsDisplayable () |
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 |
virtual void | SetMarkupsDisplayNode (vtkMRMLMarkupsDisplayNode *markupsDisplayNode) |
Set/Get the vtkMRMLMarkupsNode connected with this representation. | |
virtual void | UpdateCenterOfRotation () |
Compute the center of rotation and update it in the Markups node. | |
void | UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override |
Update the representation from markups node. | |
![]() | |
virtual void | AlwaysOnTopOff () |
virtual void | AlwaysOnTopOn () |
void | GetActors (vtkPropCollection *) override |
void | GetActors2D (vtkPropCollection *) override |
virtual bool | GetAlwaysOnTop () |
virtual double | GetAlwaysOnTopRelativeOffsetFactor () |
virtual double | GetAlwaysOnTopRelativeOffsetUnits () |
virtual vtkMRMLApplicationLogic * | GetApplicationLogic () |
double * | GetBounds () VTK_SIZEHINT(6) override |
virtual bool | GetNeedToRender () |
virtual double | GetPickingTolerance () |
virtual vtkRenderer * | GetRenderer () |
double | GetScreenScaleFactor () |
Convenience method for getting screen scale factor from the associated view node. | |
virtual vtkMRMLAbstractViewNode * | GetViewNode () |
void | GetVolumes (vtkPropCollection *) override |
vtkTypeBool | HasTranslucentPolygonalGeometry () override |
virtual void | NeedToRenderOff () |
virtual void | NeedToRenderOn () |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | ReleaseGraphicsResources (vtkWindow *) override |
int | RenderOpaqueGeometry (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderOverlay (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderTranslucentPolygonalGeometry (vtkViewport *vtkNotUsed(viewport)) override |
int | RenderVolumetricGeometry (vtkViewport *vtkNotUsed(viewport)) override |
virtual void | SetAlwaysOnTop (bool) |
virtual void | SetAlwaysOnTopRelativeOffsetFactor (double) |
virtual void | SetAlwaysOnTopRelativeOffsetUnits (double) |
virtual void | SetApplicationLogic (vtkMRMLApplicationLogic *appLogic) |
virtual void | SetNeedToRender (bool) |
virtual void | SetPickingTolerance (double) |
virtual void | SetRenderer (vtkRenderer *ren) |
virtual void | SetViewNode (vtkMRMLAbstractViewNode *viewNode) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkSlicerCurveRepresentation2D * | New () |
Instantiate this class. | |
static vtkSlicerCurveRepresentation2D * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkSlicerMarkupsWidgetRepresentation2D * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkSlicerMarkupsWidgetRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidgetRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
void | SetMarkupsNode (vtkMRMLMarkupsNode *markupsNode) override |
void | UpdateLineColorMap () |
vtkSlicerCurveRepresentation2D () | |
~vtkSlicerCurveRepresentation2D () override | |
![]() | |
bool | GetAllControlPointsVisible () override |
Convenience method. | |
ControlPointsPipeline2D * | GetControlPointsPipeline (int controlPointType) |
double | GetMaximumControlPointPickingDistance2 () |
vtkMRMLSliceNode * | GetSliceNode () |
Get MRML view node as slice view node. | |
double | GetWidgetOpacity (int controlPointType) |
void | GetWorldToDisplayCoordinates (double *worldCoordinates, double *displayCoordinates) |
void | GetWorldToDisplayCoordinates (double r, double a, double s, double *displayCoordinates) |
Convert display to world coordinates. | |
virtual bool | IsCenterDisplayableOnSlice (vtkMRMLMarkupsNode *node) |
Check, if the point is displayable in the current slice geometry. | |
virtual bool | IsControlPointDisplayableOnSlice (vtkMRMLMarkupsNode *node, int pointIndex=0) |
Check, if the point is displayable in the current slice geometry. | |
virtual bool | IsPointBehindSlice (vtkMRMLMarkupsNode *node, int pointIndex=0) |
Check, if the point is behind in the current slice geometry. | |
virtual bool | IsPointInFrontSlice (vtkMRMLMarkupsNode *node, int pointIndex=0) |
Check, if the point is in front in the current slice geometry. | |
bool | IsRepresentationIntersectingSlice (vtkPolyData *representation, const char *arrayName) |
Check if the representation polydata intersects the slice. | |
virtual void | UpdateAllPointsAndLabelsFromMRML (double labelsOffset) |
void | UpdateControlPointSize () override |
virtual void | UpdateDistanceColorMap (vtkDiscretizableColorTransferFunction *colormap, double color[3]) |
void | UpdatePlaneFromSliceNode () |
void | UpdateViewScaleFactor () override |
vtkSlicerMarkupsWidgetRepresentation2D () | |
~vtkSlicerMarkupsWidgetRepresentation2D () override | |
![]() | |
void | BuildLine (vtkPolyData *linePolyData, bool displayPosition) |
bool | GetAllControlPointsSelected () |
Convenience method. | |
double * | GetWidgetColor (int controlPointType) VTK_SIZEHINT(3) |
vtkSlicerMarkupsWidgetRepresentation () | |
~vtkSlicerMarkupsWidgetRepresentation () override | |
![]() | |
void | AddActorsBounds (vtkBoundingBox &bounds, const std::vector< vtkProp * > &actors, double *additionalBounds=nullptr) |
void | GetRendererComputedDisplayPositionFromWorldPosition (const double worldPos[3], double displayPos[2]) |
virtual void | UpdateRelativeCoincidentTopologyOffsets (vtkMapper *mapper) |
vtkMRMLAbstractWidgetRepresentation () | |
~vtkMRMLAbstractWidgetRepresentation () override | |
Protected Attributes | |
vtkSmartPointer< vtkPolyData > | Line |
vtkSmartPointer< vtkActor2D > | LineActor |
vtkSmartPointer< vtkDiscretizableColorTransferFunction > | LineColorMap |
vtkSmartPointer< vtkPolyDataMapper2D > | LineMapper |
vtkSmartPointer< vtkCellLocator > | SliceCurvePointLocator |
vtkSmartPointer< vtkSampleImplicitFunctionFilter > | SliceDistance |
vtkSmartPointer< vtkTubeFilter > | TubeFilter |
vtkSmartPointer< vtkTransformPolyDataFilter > | WorldToSliceTransformer |
![]() | |
bool | AnyPointVisibilityOnSlice = { false } |
bool | CenterVisibilityOnSlice = { false } |
vtkSmartPointer< vtkIntArray > | PointsVisibilityOnSlice |
vtkSmartPointer< vtkPlane > | SlicePlane |
vtkSmartPointer< vtkTransform > | WorldToSliceTransform |
![]() | |
ControlPointsPipeline * | ControlPoints [NumberOfControlPointTypes] |
double | ControlPointSize |
vtkTypeBool | CurveClosed |
vtkWeakPointer< vtkMRMLMarkupsDisplayNode > | MarkupsDisplayNode |
vtkWeakPointer< vtkMRMLMarkupsNode > | MarkupsNode |
vtkTimeStamp | MarkupsTransformModifiedTime |
vtkSmartPointer< vtkPointPlacer > | PointPlacer |
double | ScreenSizePixel |
vtkSmartPointer< vtkTextActor > | TextActor |
double | ViewScaleFactorMmPerPixel |
![]() | |
bool | AlwaysOnTop |
double | AlwaysOnTopRelativeOffsetFactor { 0.0 } |
Relative offset used for rendering occluded actors. | |
double | AlwaysOnTopRelativeOffsetUnits { -66000.0 } |
vtkWeakPointer< vtkMRMLApplicationLogic > | ApplicationLogic |
double | Bounds [6] |
Temporary variable to store GetBounds() result. | |
bool | NeedToRender |
double | PickingTolerance |
vtkWeakPointer< vtkRenderer > | Renderer |
The renderer in which this widget is placed. | |
vtkWeakPointer< vtkMRMLAbstractViewNode > | ViewNode |
Additional Inherited Members | |
![]() | |
static int | GetGlyphTypeSourceFromDisplay (int glyphTypeDisplay) |
Default representation for the line widget.
This class provides the default concrete representation for the vtkMRMLAbstractWidget. See vtkMRMLAbstractWidget for details.
Definition at line 43 of file vtkSlicerCurveRepresentation2D.h.
Standard methods for instances of this class.
Definition at line 50 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
|
overrideprotected |
|
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.
void vtkSlicerCurveRepresentation2D::CanInteractWithCurve | ( | vtkMRMLInteractionEventData * | interactionEventData, |
int & | foundComponentType, | ||
int & | componentIndex, | ||
double & | closestDistance2 ) |
|
override |
Methods to make this class behave as a vtkProp.
|
override |
Return the bounds of the representation.
|
virtual |
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
|
override |
|
virtual |
Reimplemented from vtkSlicerMarkupsWidgetRepresentation2D.
|
static |
|
static |
Instantiate this class.
|
override |
|
override |
|
override |
|
override |
|
override |
|
static |
|
overrideprotectedvirtual |
Reimplemented from vtkSlicerMarkupsWidgetRepresentation.
|
overridevirtual |
Subclasses of vtkContourCurveRepresentation must implement these methods. These are the methods that the widget and its representation use to communicate with each other.
Reimplemented from vtkSlicerMarkupsWidgetRepresentation.
|
protected |
|
protected |
Definition at line 82 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
Definition at line 84 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
Definition at line 85 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
Definition at line 83 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
Definition at line 90 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
Definition at line 92 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
Definition at line 87 of file vtkSlicerCurveRepresentation2D.h.
|
protected |
Definition at line 89 of file vtkSlicerCurveRepresentation2D.h.