Slicer
5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
represent intersections of other slice views in the current slice view More...
#include <Libs/MRML/DisplayableManager/vtkMRMLSliceIntersectionInteractionRepresentation.h>
Classes | |
class | HandleInfo |
Public Types | |
typedef std::vector< HandleInfo > | HandleInfoList |
Get the list of info for all interaction handles. More... | |
Public Types inherited from vtkMRMLAbstractWidgetRepresentation | |
typedef vtkProp | Superclass |
Standard methods for instances of this class. More... | |
Public Member Functions | |
void | AddIntersectingSliceLogic (vtkMRMLSliceLogic *sliceLogic) |
virtual std::string | CanInteract (vtkMRMLInteractionEventData *interactionEventData, int &foundComponentType, int &foundComponentIndex, double &closestDistance2, double &handleOpacity) |
void | ComputeSliceIntersectionPoint () |
Compute slice intersection point between red, green and yellow slice nodes. More... | |
virtual HandleInfoList | GetHandleInfoList (SliceIntersectionInteractionDisplayPipeline *pipeline) |
virtual double | GetMaximumHandlePickingDistance2 () |
virtual vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () |
vtkMRMLSliceDisplayNode * | GetSliceDisplayNode () |
double * | GetSliceIntersectionPoint () |
Get slice intersection point between red, green and yellow slice nodes. More... | |
vtkMRMLSliceNode * | GetSliceNode () |
virtual int | GetTranslateArrowCursor (const std::string &intersectingSliceNodeID) |
bool | IsDisplayable () |
bool | IsMouseCursorInSliceView (double cursorPosition[2]) |
Check whether the mouse cursor is within the slice view or not. More... | |
void | RemoveAllIntersectingSliceNodes () |
void | RemoveIntersectingSliceNode (vtkMRMLSliceNode *sliceNode) |
void | SetMRMLApplicationLogic (vtkMRMLApplicationLogic *) |
void | SetPipelinesHandlesOpacity (double opacity) |
void | SetPipelinesHandlesVisibility (bool visible) |
void | SetSliceNode (vtkMRMLSliceNode *sliceNode) |
void | TransformIntersectingSlices (vtkMatrix4x4 *rotatedSliceToSliceTransformMatrix) |
void | UpdateFromMRML (vtkMRMLNode *caller, unsigned long event, void *callData=nullptr) override |
void | UpdateIntersectingSliceNodes () |
void | GetActors2D (vtkPropCollection *) override |
void | ReleaseGraphicsResources (vtkWindow *) override |
int | RenderOverlay (vtkViewport *viewport) override |
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 void | SetRenderer (vtkRenderer *ren) |
virtual vtkRenderer * | GetRenderer () |
virtual void | SetViewNode (vtkMRMLAbstractViewNode *viewNode) |
virtual vtkMRMLAbstractViewNode * | GetViewNode () |
virtual bool | GetNeedToRender () |
virtual void | SetNeedToRender (bool) |
virtual void | NeedToRenderOn () |
virtual void | NeedToRenderOff () |
Static Public Member Functions | |
static vtkMRMLSliceIntersectionInteractionRepresentation * | New () |
Static Public Member Functions inherited from vtkMRMLAbstractWidgetRepresentation | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractWidgetRepresentation * | SafeDownCast (vtkObject *o) |
Static Protected Member Functions | |
static void | SliceNodeModifiedCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData) |
Protected Attributes | |
vtkMRMLSliceIntersectionInteractionRepresentationHelper * | Helper |
double | InteractionSize { 3.0 } |
vtkInternal * | Internal |
double | LastEventPosition [2] |
Support picking. More... | |
vtkMRMLApplicationLogic * | MRMLApplicationLogic |
double | SliceIntersectionPoint [4] |
Slice intersection point in XY. More... | |
bool | SliceIntersectionPointFound |
Indicate whether a valid slice intersection point was found or not. More... | |
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< vtkMRMLAbstractViewNode > | ViewNode |
typedef vtkMRMLAbstractWidgetRepresentation | Superclass |
static int | IsTypeOf (const char *type) |
static vtkMRMLSliceIntersectionInteractionRepresentation * | SafeDownCast (vtkObject *o) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
represent intersections of other slice views in the current slice view
Definition at line 55 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
typedef std::vector<HandleInfo> vtkMRMLSliceIntersectionInteractionRepresentation::HandleInfoList |
Get the list of info for all interaction handles.
Definition at line 145 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
typedef vtkMRMLAbstractWidgetRepresentation vtkMRMLSliceIntersectionInteractionRepresentation::Superclass |
Standard methods for instances of this class.
Definition at line 67 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
|
protected |
|
overrideprotected |
void vtkMRMLSliceIntersectionInteractionRepresentation::AddIntersectingSliceLogic | ( | vtkMRMLSliceLogic * | sliceLogic | ) |
|
virtual |
Return found component type (as vtkMRMLInteractionDisplayNode::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).
void vtkMRMLSliceIntersectionInteractionRepresentation::ComputeSliceIntersectionPoint | ( | ) |
Compute slice intersection point between red, green and yellow slice nodes.
|
override |
Methods to make this class behave as a vtkProp.
|
virtual |
Reimplemented from vtkMRMLAbstractWidgetRepresentation.
|
protected |
|
virtual |
|
protected |
|
virtual |
|
virtual |
vtkMRMLSliceDisplayNode* vtkMRMLSliceIntersectionInteractionRepresentation::GetSliceDisplayNode | ( | ) |
|
protected |
double* vtkMRMLSliceIntersectionInteractionRepresentation::GetSliceIntersectionPoint | ( | ) |
Get slice intersection point between red, green and yellow slice nodes.
vtkMRMLSliceNode* vtkMRMLSliceIntersectionInteractionRepresentation::GetSliceNode | ( | ) |
|
protected |
|
virtual |
|
protected |
|
virtual |
Reimplemented from vtkMRMLAbstractWidgetRepresentation.
bool vtkMRMLSliceIntersectionInteractionRepresentation::IsDisplayable | ( | ) |
bool vtkMRMLSliceIntersectionInteractionRepresentation::IsMouseCursorInSliceView | ( | double | cursorPosition[2] | ) |
Check whether the mouse cursor is within the slice view or not.
|
static |
|
static |
Instantiate this class.
|
override |
|
override |
void vtkMRMLSliceIntersectionInteractionRepresentation::RemoveAllIntersectingSliceNodes | ( | ) |
void vtkMRMLSliceIntersectionInteractionRepresentation::RemoveIntersectingSliceNode | ( | vtkMRMLSliceNode * | sliceNode | ) |
|
override |
|
static |
void vtkMRMLSliceIntersectionInteractionRepresentation::SetMRMLApplicationLogic | ( | vtkMRMLApplicationLogic * | ) |
void vtkMRMLSliceIntersectionInteractionRepresentation::SetPipelinesHandlesOpacity | ( | double | opacity | ) |
void vtkMRMLSliceIntersectionInteractionRepresentation::SetPipelinesHandlesVisibility | ( | bool | visible | ) |
|
protected |
void vtkMRMLSliceIntersectionInteractionRepresentation::SetSliceNode | ( | vtkMRMLSliceNode * | sliceNode | ) |
|
protected |
|
protected |
|
staticprotected |
void vtkMRMLSliceIntersectionInteractionRepresentation::TransformIntersectingSlices | ( | vtkMatrix4x4 * | rotatedSliceToSliceTransformMatrix | ) |
|
overridevirtual |
UpdateFromMRML() - update the widget from its state stored in MRML. if event is non-zero then a specific update (faster, smaller scope) is performed instead of a full update.
Reimplemented from vtkMRMLAbstractWidgetRepresentation.
void vtkMRMLSliceIntersectionInteractionRepresentation::UpdateIntersectingSliceNodes | ( | ) |
|
protected |
|
protected |
Definition at line 192 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
|
protected |
Handle size, specified in renderer world coordinate system. For slice views, renderer world coordinate system is the display coordinate system, so it is measured in pixels. For 3D views, renderer world coordinate system is the Slicer world coordinate system, so it is measured in the scene length unit (typically millimeters).
Definition at line 183 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
|
protected |
Definition at line 189 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
|
protected |
Support picking.
Definition at line 171 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
|
protected |
Definition at line 187 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
|
protected |
Slice intersection point in XY.
Definition at line 174 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.
|
protected |
Indicate whether a valid slice intersection point was found or not.
Definition at line 177 of file vtkMRMLSliceIntersectionInteractionRepresentation.h.