Class vtkMRMLLayerDMCameraSynchronizer
Defined in File vtkMRMLLayerDMCameraSynchronizer.h
Inheritance Relationships
Base Type
public vtkObject
Class Documentation
-
class vtkMRMLLayerDMCameraSynchronizer : public vtkObject
Inheritance diagram for vtkMRMLLayerDMCameraSynchronizer:
Collaboration diagram for vtkMRMLLayerDMCameraSynchronizer:
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()
-
vtkTypeMacro(vtkMRMLLayerDMCameraSynchronizer, vtkObject)