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 | Friends
vtkMRMLModelDisplayableManager Class Reference

Manage display nodes with polydata in 3D views. More...

#include <Libs/MRML/DisplayableManager/vtkMRMLModelDisplayableManager.h>

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

Public Types

typedef vtkMRMLAbstractThreeDViewDisplayableManager Superclass
 
- Public Types inherited from vtkMRMLAbstractThreeDViewDisplayableManager
typedef vtkMRMLAbstractDisplayableManager Superclass
 
- Public Types inherited from vtkMRMLAbstractDisplayableManager
typedef vtkMRMLAbstractLogic Superclass
 
- Public Types inherited from vtkMRMLAbstractLogic
typedef vtkObject Superclass
 
typedef void(vtkMRMLAbstractLogic::* TaskFunctionPointer) (void *clientdata)
 

Public Member Functions

vtkProp3D * GetActorByID (const char *id)
 Return the current model actor corresponding to a give MRML ID. More...
 
vtkCellPicker * GetCellPicker ()
 Get cell picker. More...
 
virtual const char * GetClassName ()
 
vtkMRMLClipModelsNodeGetClipModelsNode ()
 Get/Set the ClipModels Node. More...
 
const char * GetIDByActor (vtkProp3D *actor)
 Return the current node ID corresponding to a given vtkProp3D. More...
 
vtkMRMLModelHierarchyLogicGetModelHierarchyLogic ()
 Get/Set vtkMRMLModelHierarchyLogic. More...
 
vtkIdType GetPickedCellID ()
 Get/Set the picked cell id, returns -1 if no pick. More...
 
const char * GetPickedNodeID ()
 Get the MRML ID of the picked node, returns empty string if no pick. More...
 
vtkIdType GetPickedPointID ()
 Get/Set the picked point id, returns -1 if no pick. More...
 
double * GetPickedRAS ()
 Get/Set the picked RAS point, returns 0,0,0 if no pick. More...
 
double GetPickTolerance ()
 
vtkPointPicker * GetPointPicker ()
 Get point picker. More...
 
vtkPropPicker * GetPropPicker ()
 Get property picker. More...
 
vtkWorldPointPicker * GetWorldPointPicker ()
 Get world point picker. More...
 
virtual int IsA (const char *type)
 
bool IsModelDisplayable (vtkMRMLDisplayableNode *node) const
 Return true if the node can be represented as a model. More...
 
bool IsModelDisplayable (vtkMRMLDisplayNode *node) const
 Return true if the display node is a model. More...
 
int Pick (int x, int y)
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
void SetClipModelsNode (vtkMRMLClipModelsNode *snode)
 
void SetClipPlaneFromMatrix (vtkMatrix4x4 *sliceMatrix, int planeDirection, vtkPlane *plane)
 
void SetPickedCellID (vtkIdType newCellID)
 
void SetPickedPointID (vtkIdType newPointID)
 
void SetPickedRAS (double *newPickedRAS)
 
void SetPickTolerance (double tolerance)
 
- Public Member Functions inherited from vtkMRMLAbstractThreeDViewDisplayableManager
vtkMRMLViewNodeGetMRMLViewNode ()
 Get MRML ViewNode. More...
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
- Public Member Functions inherited from vtkMRMLAbstractDisplayableManager
virtual std::string GetDataProbeInfoStringForPosition (double vtkNotUsed(xyz)[3])
 
vtkMRMLInteractionNodeGetInteractionNode ()
 Convenient method to get the current InteractionNode. More...
 
vtkRenderWindowInteractor * GetInteractor ()
 Convenient method to get the WindowInteractor associated with the Renderer. More...
 
virtual vtkMRMLLightBoxRendererManagerProxyGetLightBoxRendererManagerProxy ()
 
vtkRenderer * GetRenderer ()
 Get the default renderer for this displayable manager. More...
 
vtkRenderer * GetRenderer (int idx)
 
vtkMRMLSelectionNodeGetSelectionNode ()
 Convenient method to get the current SelectionNode. More...
 
bool IsCreated ()
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void SetLightBoxRendererManagerProxy (vtkMRMLLightBoxRendererManagerProxy *)
 
- Public Member Functions inherited from vtkMRMLAbstractLogic
virtual vtkMRMLApplicationLogicGetMRMLApplicationLogic () const
 Get access to overall application state. More...
 
vtkMRMLSceneGetMRMLScene () const
 Return a reference to the current MRML scene. More...
 
void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic)
 
void SetMRMLScene (vtkMRMLScene *newScene)
 Set and observe the MRMLScene. More...
 

Static Public Member Functions

static vtkLookupTable * CreateLookupTableCopy (vtkLookupTable *source)
 
static bool IsCellScalarsActive (vtkMRMLDisplayNode *displayNode, vtkMRMLModelNode *model=0)
 Helper function for determining what type of scalar is active. More...
 
static int IsTypeOf (const char *type)
 
static vtkMRMLModelDisplayableManagerNew ()
 
static vtkMRMLModelDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractThreeDViewDisplayableManager
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractThreeDViewDisplayableManagerNew ()
 
static vtkMRMLAbstractThreeDViewDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractDisplayableManager
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractDisplayableManagerNew ()
 
static vtkMRMLAbstractDisplayableManagerSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

virtual int ActiveInteractionModes () VTK_OVERRIDE
 
void AddHierarchyObservers ()
 
virtual void AdditionalInitializeStep () VTK_OVERRIDE
 
void CheckModelHierarchies ()
 
vtkAlgorithm * CreateTransformedClipper (vtkMRMLTransformNode *tnode, vtkMRMLModelNode::MeshTypeHint type)
 
const char * GetActiveScalarName (vtkMRMLDisplayNode *displayNode, vtkMRMLModelNode *model=0)
 
int GetDisplayedModelsVisibility (vtkMRMLDisplayNode *model)
 
vtkMRMLDisplayNodeGetHierarchyDisplayNode (vtkMRMLDisplayableNode *model)
 
vtkMRMLSelectionNodeGetSelectionNode ()
 
virtual void OnInteractorStyleEvent (int eventId) VTK_OVERRIDE
 
bool OnMRMLDisplayableModelNodeModifiedEvent (vtkMRMLDisplayableNode *modelNode)
 
virtual void OnMRMLSceneEndClose () VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneStartClose () VTK_OVERRIDE
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData) VTK_OVERRIDE
 
void RemoveDispalyedID (std::string &id)
 
void RemoveDisplayable (vtkMRMLDisplayableNode *model)
 
void RemoveDisplayableNodeObservers (vtkMRMLDisplayableNode *model)
 
void RemoveHierarchyObservers (int clearCache)
 
void RemoveModelObservers (int clearCache)
 
void RemoveModelProps ()
 
virtual void RemoveMRMLObservers () VTK_OVERRIDE
 Remove MRML observers. More...
 
void SetModelDisplayProperty (vtkMRMLDisplayableNode *model)
 
virtual void UnobserveMRMLScene () VTK_OVERRIDE
 
int UpdateClipSlicesFromMRML ()
 Returns not null if modified. More...
 
virtual void UpdateFromMRML () VTK_OVERRIDE
 Updates Actors based on models in the scene. More...
 
virtual void UpdateFromMRMLScene () VTK_OVERRIDE
 
void UpdateModel (vtkMRMLDisplayableNode *model)
 
void UpdateModelHierarchies ()
 
void UpdateModelHierarchyDisplay (vtkMRMLDisplayableNode *model)
 
void UpdateModelHierarchyVisibility (vtkMRMLModelHierarchyNode *mhnode, int visibility)
 
void UpdateModelMesh (vtkMRMLDisplayableNode *model)
 
void UpdateModelsFromMRML ()
 
void UpdateModifiedModel (vtkMRMLDisplayableNode *model)
 
 vtkMRMLModelDisplayableManager ()
 
virtual ~vtkMRMLModelDisplayableManager ()
 
- Protected Member Functions inherited from vtkMRMLAbstractThreeDViewDisplayableManager
virtual void OnMRMLDisplayableNodeModifiedEvent (vtkObject *caller) VTK_OVERRIDE
 
virtual void OnMRMLViewNodeModifiedEvent ()
 Could be overloaded in DisplayableManager subclass. More...
 
virtual void PassThroughInteractorStyleEvent (int eventid)
 
 vtkMRMLAbstractThreeDViewDisplayableManager ()
 
virtual ~vtkMRMLAbstractThreeDViewDisplayableManager ()
 
- Protected Member Functions inherited from vtkMRMLAbstractDisplayableManager
void AddInteractorObservableEvent (int eventid, float priority=0.0)
 
void AddInteractorStyleObservableEvent (int eventid, float priority=0.0)
 
void AddMRMLDisplayableManagerEvent (int eventId)
 Allow to specify additional events that the DisplayableNode will observe. More...
 
virtual void Create ()
 
void CreateIfPossible ()
 
int GetInteractorAbortFlag ()
 
int GetInteractorStyleAbortFlag ()
 
vtkMRMLDisplayableManagerGroupGetMRMLDisplayableManagerGroup ()
 Get associated DisplayableManager group. More...
 
vtkMRMLNodeGetMRMLDisplayableNode ()
 Get MRML Displayable Node. More...
 
vtkCallbackCommand * GetWidgetsCallbackCommand ()
 Get vtkWidget callbackCommand. More...
 
vtkObserverManagerGetWidgetsObserverManager () const
 Get widget observerManager. More...
 
void InteractorAbortFlagOff ()
 
void InteractorAbortFlagOn ()
 
void InteractorStyleAbortFlagOff ()
 
void InteractorStyleAbortFlagOn ()
 
virtual void OnInteractorEvent (int eventid)
 
virtual void ProcessWidgetsEvents (vtkObject *caller, unsigned long event, void *callData)
 
void RemoveInteractorObservableEvent (int eventid)
 
void RemoveInteractorStyleObservableEvent (int eventid)
 
void RequestRender ()
 
void SetAndObserveMRMLDisplayableNode (vtkMRMLNode *newMRMLDisplayableNode)
 
void SetInteractorAbortFlag (int f)
 Set the Abort flag on the Interactor event callback. More...
 
void SetInteractorStyleAbortFlag (int f)
 Set the Abort flag on the InteractorStyle event callback. More...
 
virtual void SetMRMLDisplayableManagerGroup (vtkMRMLDisplayableManagerGroup *group)
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 
virtual void SetRenderer (vtkRenderer *newRenderer)
 
void SetUpdateFromMRMLRequested (bool requested)
 
 vtkMRMLAbstractDisplayableManager ()
 
virtual ~vtkMRMLAbstractDisplayableManager ()
 
- Protected Member Functions inherited from vtkMRMLAbstractLogic
int EndModify (bool wasModifying)
 
virtual bool EnterMRMLLogicsCallback () const
 
virtual bool EnterMRMLNodesCallback () const
 
virtual bool EnterMRMLSceneCallback () const
 
bool GetDisableModifiedEvent () const
 
int GetInMRMLLogicsCallbackFlag () const
 
int GetInMRMLNodesCallbackFlag () const
 
int GetInMRMLSceneCallbackFlag () const
 
vtkCallbackCommand * GetMRMLLogicsCallbackCommand ()
 
vtkObserverManagerGetMRMLLogicsObserverManager () const
 
vtkCallbackCommand * GetMRMLNodesCallbackCommand ()
 
vtkObserverManagerGetMRMLNodesObserverManager () const
 
vtkCallbackCommand * GetMRMLSceneCallbackCommand ()
 
vtkObserverManagerGetMRMLSceneObserverManager () const
 
int GetPendingModifiedEventCount () const
 
int GetProcessingMRMLSceneEvent () const
 Return the event id currently processed or 0 if any. More...
 
int InvokePendingModifiedEvent ()
 
virtual void Modified () VTK_OVERRIDE
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=0)
 
void SetDisableModifiedEvent (bool onOff)
 
void SetInMRMLLogicsCallbackFlag (int flag)
 
void SetInMRMLNodesCallbackFlag (int flag)
 
void SetInMRMLSceneCallbackFlag (int flag)
 
void SetProcessingMRMLSceneEvent (int event)
 
bool StartModify ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

Friends

class vtkThreeDViewInteractorStyle
 

Additional Inherited Members

- Static Protected Member Functions inherited from vtkMRMLAbstractDisplayableManager
static void WidgetsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 WidgetsCallback is a static function to relay modified events from the vtk widgets. More...
 
- Static Protected Member Functions inherited from vtkMRMLAbstractLogic
static void MRMLLogicsCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 MRMLLogicCallback is a static function to relay modified events from the logics. More...
 
static void MRMLNodesCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 MRMLNodesCallback is a static function to relay modified events from the nodes. More...
 
static void MRMLSceneCallback (vtkObject *caller, unsigned long eid, void *clientData, void *callData)
 

Detailed Description

Manage display nodes with polydata in 3D views.

Any display node in the scene that contains a valid output polydata is represented into the view renderer using configured synchronized vtkActors and vtkMappers. Note that the display nodes must be of type vtkMRMLModelDisplayNode (to have an output polydata) but the displayable nodes don't necessarily have to be of type vtkMRMLModelNode.

Definition at line 65 of file vtkMRMLModelDisplayableManager.h.

Member Typedef Documentation

◆ Superclass

Definition at line 70 of file vtkMRMLModelDisplayableManager.h.

Constructor & Destructor Documentation

◆ vtkMRMLModelDisplayableManager()

vtkMRMLModelDisplayableManager::vtkMRMLModelDisplayableManager ( )
protected

◆ ~vtkMRMLModelDisplayableManager()

virtual vtkMRMLModelDisplayableManager::~vtkMRMLModelDisplayableManager ( )
protectedvirtual

Member Function Documentation

◆ ActiveInteractionModes()

virtual int vtkMRMLModelDisplayableManager::ActiveInteractionModes ( )
protectedvirtual

Subclass can overload this method to specify under which InteractionNode modes this Displayable Manger InteractorStyle events. By default events only arrive when in Place mode (good for annotations) but if you want a continuous read out of, for example, slice positions while the mouse moves set this to include Place and ViewTransform

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ AddHierarchyObservers()

void vtkMRMLModelDisplayableManager::AddHierarchyObservers ( )
protected

◆ AdditionalInitializeStep()

virtual void vtkMRMLModelDisplayableManager::AdditionalInitializeStep ( )
protectedvirtual

Sub-class could overload that function and perform additional initialization steps

Note
Called by SetRenderer()
Initialization occurs before the MRMLDisplayableNode is set and observed
Warning
That function should NOT be used directly !
See also
SetRenderer

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ CheckModelHierarchies()

void vtkMRMLModelDisplayableManager::CheckModelHierarchies ( )
protected

◆ CreateLookupTableCopy()

static vtkLookupTable* vtkMRMLModelDisplayableManager::CreateLookupTableCopy ( vtkLookupTable *  source)
static

Helper function for copying lookup tables It handles special types of lookup tables and fixes error in vtkLoookupTable copy.

◆ CreateTransformedClipper()

vtkAlgorithm* vtkMRMLModelDisplayableManager::CreateTransformedClipper ( vtkMRMLTransformNode tnode,
vtkMRMLModelNode::MeshTypeHint  type 
)
protected

◆ GetActiveScalarName()

const char* vtkMRMLModelDisplayableManager::GetActiveScalarName ( vtkMRMLDisplayNode displayNode,
vtkMRMLModelNode model = 0 
)
protected

◆ GetActorByID()

vtkProp3D* vtkMRMLModelDisplayableManager::GetActorByID ( const char *  id)

Return the current model actor corresponding to a give MRML ID.

◆ GetCellPicker()

vtkCellPicker* vtkMRMLModelDisplayableManager::GetCellPicker ( )

Get cell picker.

◆ GetClassName()

virtual const char* vtkMRMLModelDisplayableManager::GetClassName ( )
virtual

◆ GetClipModelsNode()

vtkMRMLClipModelsNode* vtkMRMLModelDisplayableManager::GetClipModelsNode ( )

Get/Set the ClipModels Node.

◆ GetDisplayedModelsVisibility()

int vtkMRMLModelDisplayableManager::GetDisplayedModelsVisibility ( vtkMRMLDisplayNode model)
protected

◆ GetHierarchyDisplayNode()

vtkMRMLDisplayNode* vtkMRMLModelDisplayableManager::GetHierarchyDisplayNode ( vtkMRMLDisplayableNode model)
protected

◆ GetIDByActor()

const char* vtkMRMLModelDisplayableManager::GetIDByActor ( vtkProp3D *  actor)

Return the current node ID corresponding to a given vtkProp3D.

◆ GetModelHierarchyLogic()

vtkMRMLModelHierarchyLogic* vtkMRMLModelDisplayableManager::GetModelHierarchyLogic ( )

◆ GetPickedCellID()

vtkIdType vtkMRMLModelDisplayableManager::GetPickedCellID ( )

Get/Set the picked cell id, returns -1 if no pick.

◆ GetPickedNodeID()

const char* vtkMRMLModelDisplayableManager::GetPickedNodeID ( )

Get the MRML ID of the picked node, returns empty string if no pick.

◆ GetPickedPointID()

vtkIdType vtkMRMLModelDisplayableManager::GetPickedPointID ( )

Get/Set the picked point id, returns -1 if no pick.

◆ GetPickedRAS()

double* vtkMRMLModelDisplayableManager::GetPickedRAS ( )

Get/Set the picked RAS point, returns 0,0,0 if no pick.

◆ GetPickTolerance()

double vtkMRMLModelDisplayableManager::GetPickTolerance ( )

Get/Set tolerance for Pick() method. it will call vtkCellPicker.Get/SetTolerance()

◆ GetPointPicker()

vtkPointPicker* vtkMRMLModelDisplayableManager::GetPointPicker ( )

Get point picker.

◆ GetPropPicker()

vtkPropPicker* vtkMRMLModelDisplayableManager::GetPropPicker ( )

Get property picker.

◆ GetSelectionNode()

vtkMRMLSelectionNode* vtkMRMLModelDisplayableManager::GetSelectionNode ( )
protected

◆ GetWorldPointPicker()

vtkWorldPointPicker* vtkMRMLModelDisplayableManager::GetWorldPointPicker ( )

Get world point picker.

◆ IsA()

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

◆ IsCellScalarsActive()

static bool vtkMRMLModelDisplayableManager::IsCellScalarsActive ( vtkMRMLDisplayNode displayNode,
vtkMRMLModelNode model = 0 
)
static

Helper function for determining what type of scalar is active.

◆ IsModelDisplayable() [1/2]

bool vtkMRMLModelDisplayableManager::IsModelDisplayable ( vtkMRMLDisplayableNode node) const

Return true if the node can be represented as a model.

◆ IsModelDisplayable() [2/2]

bool vtkMRMLModelDisplayableManager::IsModelDisplayable ( vtkMRMLDisplayNode node) const

Return true if the display node is a model.

◆ IsTypeOf()

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

◆ New()

static vtkMRMLModelDisplayableManager* vtkMRMLModelDisplayableManager::New ( )
static

◆ OnInteractorStyleEvent()

virtual void vtkMRMLModelDisplayableManager::OnInteractorStyleEvent ( int  eventid)
protectedvirtual

Called after interactor style event specified using AddInteractorStyleObservableEvent are invoked.

Note
The following events are observed by default:
  • vtkCommand::LeftButtonPressEvent
  • vtkCommand::LeftButtonReleaseEvent
  • vtkCommand::RightButtonPressEvent
  • vtkCommand::RightButtonReleaseEvent
  • vtkCommand::MiddleButtonPressEvent
  • vtkCommand::MiddleButtonReleaseEvent
  • vtkCommand::MouseWheelBackwardEvent
  • vtkCommand::MouseWheelForwardEvent
  • vtkCommand::EnterEvent
  • vtkCommand::LeaveEvent
See also
AddInteractorStyleObservableEvent RemoveInteractorStyleObservableEvent

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ OnMRMLDisplayableModelNodeModifiedEvent()

bool vtkMRMLModelDisplayableManager::OnMRMLDisplayableModelNodeModifiedEvent ( vtkMRMLDisplayableNode modelNode)
protected

Returns true if something visible in modelNode has changed and would require a refresh.

◆ OnMRMLSceneEndClose()

virtual void vtkMRMLModelDisplayableManager::OnMRMLSceneEndClose ( )
protectedvirtual

If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneStartClose

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneNodeAdded()

virtual void vtkMRMLModelDisplayableManager::OnMRMLSceneNodeAdded ( vtkMRMLNode )
protectedvirtual

If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneNodeRemoved, vtkMRMLScene::NodeAboutToBeAdded

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneNodeRemoved()

virtual void vtkMRMLModelDisplayableManager::OnMRMLSceneNodeRemoved ( vtkMRMLNode )
protectedvirtual

If vtkMRMLScene::NodeRemovedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneNodeAdded, vtkMRMLScene::NodeAboutToBeRemoved

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneStartClose()

virtual void vtkMRMLModelDisplayableManager::OnMRMLSceneStartClose ( )
protectedvirtual

If vtkMRMLScene::StartCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneEndClose

Reimplemented from vtkMRMLAbstractLogic.

◆ Pick()

int vtkMRMLModelDisplayableManager::Pick ( int  x,
int  y 
)

Convert an x/y location to a mrml node, 3d RAS point, point id, cell id, as appropriate depending what's found under the xy.

◆ PrintSelf()

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

◆ ProcessMRMLNodesEvents()

virtual void vtkMRMLModelDisplayableManager::ProcessMRMLNodesEvents ( vtkObject *  caller,
unsigned long  event,
void *  callData 
)
protectedvirtual

Receives all the events fired by the nodes. To listen to a node, you can add an observer using GetMRMLNodesCallbackCommand() or use the utility macros vtk[SetAndObserve|Observe]MRMLNode[Event]Macro ProcessMRMLNodesEvents calls OnMRMLNodeModified when event is vtkCommand::ModifiedEvent.

See also
ProcessMRMLSceneEvents, ProcessMRMLLogicsEvents, OnMRMLNodeModified(), vtkSetAndObserveMRMLNodeMacro, vtkObserveMRMLNodeMacro, vtkSetAndObserveMRMLNodeEventMacro

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ RemoveDispalyedID()

void vtkMRMLModelDisplayableManager::RemoveDispalyedID ( std::string &  id)
protected

◆ RemoveDisplayable()

void vtkMRMLModelDisplayableManager::RemoveDisplayable ( vtkMRMLDisplayableNode model)
protected

◆ RemoveDisplayableNodeObservers()

void vtkMRMLModelDisplayableManager::RemoveDisplayableNodeObservers ( vtkMRMLDisplayableNode model)
protected

◆ RemoveHierarchyObservers()

void vtkMRMLModelDisplayableManager::RemoveHierarchyObservers ( int  clearCache)
protected

◆ RemoveModelObservers()

void vtkMRMLModelDisplayableManager::RemoveModelObservers ( int  clearCache)
protected

◆ RemoveModelProps()

void vtkMRMLModelDisplayableManager::RemoveModelProps ( )
protected

◆ RemoveMRMLObservers()

virtual void vtkMRMLModelDisplayableManager::RemoveMRMLObservers ( )
protectedvirtual

Remove MRML observers.

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ SafeDownCast()

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

◆ SetClipModelsNode()

void vtkMRMLModelDisplayableManager::SetClipModelsNode ( vtkMRMLClipModelsNode snode)

◆ SetClipPlaneFromMatrix()

void vtkMRMLModelDisplayableManager::SetClipPlaneFromMatrix ( vtkMatrix4x4 *  sliceMatrix,
int  planeDirection,
vtkPlane *  plane 
)

◆ SetModelDisplayProperty()

void vtkMRMLModelDisplayableManager::SetModelDisplayProperty ( vtkMRMLDisplayableNode model)
protected

◆ SetPickedCellID()

void vtkMRMLModelDisplayableManager::SetPickedCellID ( vtkIdType  newCellID)

◆ SetPickedPointID()

void vtkMRMLModelDisplayableManager::SetPickedPointID ( vtkIdType  newPointID)

◆ SetPickedRAS()

void vtkMRMLModelDisplayableManager::SetPickedRAS ( double *  newPickedRAS)

◆ SetPickTolerance()

void vtkMRMLModelDisplayableManager::SetPickTolerance ( double  tolerance)

◆ UnobserveMRMLScene()

virtual void vtkMRMLModelDisplayableManager::UnobserveMRMLScene ( )
protectedvirtual

Called anytime a scene is not set to the logic anymore (e.g. a new or no scene is set) Reimplement the method to delete all the scene specific information such as a node IDs, pointers...

See also
SetMRMLSceneInternal, ObserveMRMLScene, UpdateFromMRMLScene

Reimplemented from vtkMRMLAbstractLogic.

◆ UpdateClipSlicesFromMRML()

int vtkMRMLModelDisplayableManager::UpdateClipSlicesFromMRML ( )
protected

Returns not null if modified.

◆ UpdateFromMRML()

virtual void vtkMRMLModelDisplayableManager::UpdateFromMRML ( )
protectedvirtual

Updates Actors based on models in the scene.

Reimplemented from vtkMRMLAbstractDisplayableManager.

◆ UpdateFromMRMLScene()

virtual void vtkMRMLModelDisplayableManager::UpdateFromMRMLScene ( )
protectedvirtual

Called everytime the scene has been significantly changed. If the scene BatchProcessState events are observed (in SetMRMLSceneInternal() ), UpdateFromMRMLScene is called after each batch process (Close, Import, Restore...). It is also being called by default when a new scene is set (SetMRMLScene).

See also
SetMRMLSceneInternal, UnobserveMRMLScene, ObserveMRMLScene

Reimplemented from vtkMRMLAbstractLogic.

◆ UpdateModel()

void vtkMRMLModelDisplayableManager::UpdateModel ( vtkMRMLDisplayableNode model)
protected

◆ UpdateModelHierarchies()

void vtkMRMLModelDisplayableManager::UpdateModelHierarchies ( )
protected

◆ UpdateModelHierarchyDisplay()

void vtkMRMLModelDisplayableManager::UpdateModelHierarchyDisplay ( vtkMRMLDisplayableNode model)
protected

◆ UpdateModelHierarchyVisibility()

void vtkMRMLModelDisplayableManager::UpdateModelHierarchyVisibility ( vtkMRMLModelHierarchyNode mhnode,
int  visibility 
)
protected

◆ UpdateModelMesh()

void vtkMRMLModelDisplayableManager::UpdateModelMesh ( vtkMRMLDisplayableNode model)
protected

◆ UpdateModelsFromMRML()

void vtkMRMLModelDisplayableManager::UpdateModelsFromMRML ( )
protected

◆ UpdateModifiedModel()

void vtkMRMLModelDisplayableManager::UpdateModifiedModel ( vtkMRMLDisplayableNode model)
protected

Friends And Related Function Documentation

◆ vtkThreeDViewInteractorStyle

friend class vtkThreeDViewInteractorStyle
friend

Definition at line 179 of file vtkMRMLModelDisplayableManager.h.


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