Class vtkMRMLLayerDMCameraSynchronizer

Inheritance Relationships

Base Type

  • public vtkObject

Class Documentation

class vtkMRMLLayerDMCameraSynchronizer : public vtkObject

Inheritance diagram for vtkMRMLLayerDMCameraSynchronizer:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="vtkObject" tooltip="vtkObject"] "1" [label="vtkMRMLLayerDMCameraSynchronizer" tooltip="vtkMRMLLayerDMCameraSynchronizer" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for vtkMRMLLayerDMCameraSynchronizer:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "2" [label="vtkObject" tooltip="vtkObject"] "1" [label="vtkMRMLLayerDMCameraSynchronizer" tooltip="vtkMRMLLayerDMCameraSynchronizer" fillcolor="#BFBFBF"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Class responsible for synchronizing the camera of the different display layers. If a pipeline doesn’t use a specific camera, its layer will be set the default camera. The default camera is synchronized to the renderer 0 by this class and its default implementation is to copy the content of the main camera when the camera has changed.

For SliceViews, the class monitors modified events to set the default camera aligned with the Slice view properties.

Public Functions

vtkTypeMacro(vtkMRMLLayerDMCameraSynchronizer, vtkObject)
void SetViewNode(vtkMRMLAbstractViewNode *viewNode)

Set the view node for which the camera will be synchronized.

void SetDefaultCamera(const vtkSmartPointer<vtkCamera> &camera)

Set the default camera which will be synchronized by this class.

void SetRenderer(vtkRenderer *renderer)

Set the default renderer used by the displayable manager. The renderer active camera will be monitored for change when applicable (for instance 3D views).

bool BlockModified(bool isBlocked)

Blocks modified invocation. Doesn’t block updates on the underlying camera changes.

Returns:

previous blocked state.

Public Static Functions

static vtkMRMLLayerDMCameraSynchronizer *New()

Protected Functions

vtkMRMLLayerDMCameraSynchronizer()
~vtkMRMLLayerDMCameraSynchronizer() override