Class vtkMRMLLayerDMPipelineManager
Defined in File vtkMRMLLayerDMPipelineManager.h
Inheritance Relationships
Base Type
public vtkObject
Class Documentation
-
class vtkMRMLLayerDMPipelineManager : public vtkObject
Inheritance diagram for vtkMRMLLayerDMPipelineManager:
Collaboration diagram for vtkMRMLLayerDMPipelineManager:
Class responsible for handling adding / updating / removing pipelines depending on nodes added / removed / updated in the 3D Slicer Scene.
The display manager handles connections to the scene’s events.
Unnamed Group
-
void LoseFocus() const
Makes the latest pipeline lose focus
-
void LoseFocus(vtkMRMLInteractionEventData *eventData) const
Unnamed Group
-
bool RemoveNode(vtkMRMLNode *node)
Remove node from the pipeline manager if any pipeline is associated to the input node.
-
bool RemovePipeline(vtkMRMLNode *displayNode)
Public Functions
-
vtkTypeMacro(vtkMRMLLayerDMPipelineManager, vtkObject)
-
bool AddNode(vtkMRMLNode *node)
Add a new node to the pipeline manager. If no pipeline exist for the input display node and the
See also
vtkMRMLLayerDMPipelineFactory can create a pipeline, creates and stores the pipeline in the manager.
-
bool CanProcessInteractionEvent(vtkMRMLInteractionEventData *eventData, double &distance2) const
Delegates can process interaction event to.
See also
-
bool CreatePipelineForNode(vtkMRMLNode *displayNode)
Create a new pipeline associated with the input display node. Delegates to
-
vtkCamera *GetDefaultCamera() const
Returns the default camera for the pipeline. The camera synchronization is handled by
See also
-
void ClearDisplayableNodes()
Clear all pipelines from the pipeline manager. Should be called at delete.
-
int GetMouseCursor() const
Returns the mouse cursor from the latest pipeline having handled the latest interaction.
-
vtkSmartPointer<vtkMRMLLayerDMPipelineI> GetNodePipeline(vtkMRMLNode *node) const
Returns the pipeline associated with the input display node if any.
-
int GetNumberOfPipelines() const
Returns the number of pipelines currently managed by the pipeline manager.
-
vtkMRMLLayerDMPipelineI *GetNthPipeline(int iPipeline) const
Returns the list of currently managed display nodes of the pipeline manager.
See also
-
bool ProcessInteractionEvent(vtkMRMLInteractionEventData *eventData) const
Delegates process interaction event to.
See also
-
void RequestRender()
Reset camera clipping range and call display manager request render.
-
void ResetCameraClippingRange() const
Resets the clipping range for all cameras managed by the LayerDM and renderer 0’s camera
-
void SetFactory(const vtkSmartPointer<vtkMRMLLayerDMPipelineFactory> &factory)
Set the Pipeline factory to use by the pipeline manager (initialization). On factory-modified event, will trigger a
See also
-
void SetRenderWindow(vtkRenderWindow *renderWindow)
Set the render window on which the pipeline manager is attached (initialization).
-
void SetRenderer(vtkRenderer *renderer) const
Set the default renderer used by the display manager (initialization).
-
void SetRequestRender(const std::function<void()> &requestRender)
Set the request render callback used during.
See also
-
void SetScene(vtkMRMLScene *scene)
Set the scene (initialization).
-
void SetViewNode(vtkMRMLAbstractViewNode *viewNode)
Set the view node (initialization).
-
void UpdateAllPipelines()
Update all pipelines managed by the pipeline manager. Requests render at the end of the update
-
void UpdateFromScene()
Update the pipeline manager from the current MRML scene state. Will automatically remove or create pipelines depending on the scene state. Requests render at the end of the update
-
bool BlockRequestRender(bool isBlocked)
Block the request render Returns the previous blocked value.
Allows to avoid requesting a render while a render is already being processed or when updating multiple pipelines at a time (for instance updating from scene or synchronizing with the default camera)
Public Static Functions
-
static vtkMRMLLayerDMPipelineManager *New()
-
void LoseFocus() const