Slicer  4.11
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 | Protected Attributes
vtkSlicerCamerasModuleLogic Class Reference

#include <Modules/Loadable/Cameras/Logic/vtkSlicerCamerasModuleLogic.h>

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

Public Types

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

Public Member Functions

virtual const char * GetClassName ()
 
virtual bool GetCopyImportedCameras ()
 
vtkMRMLCameraNodeGetViewActiveCameraNode (vtkMRMLViewNode *view)
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetCopyImportedCameras (bool)
 
- Public Member Functions inherited from vtkSlicerModuleLogic
virtual vtkSlicerApplicationLogicGetApplicationLogic ()
 Get access to overall application state. More...
 
std::string GetModuleShareDirectory () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
void SetModuleShareDirectory (const std::string &shareDirectory)
 
- 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) override
 
virtual void SetMRMLApplicationLogic (vtkMRMLApplicationLogic *logic)
 
void SetMRMLScene (vtkMRMLScene *newScene)
 Set and observe the MRMLScene. More...
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkSlicerCamerasModuleLogicNew ()
 
static vtkSlicerCamerasModuleLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSlicerModuleLogic
static int IsTypeOf (const char *type)
 
static vtkSlicerModuleLogicNew ()
 The Usual vtk class functions. More...
 
static vtkSlicerModuleLogicSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkMRMLAbstractLogic
static int IsTypeOf (const char *type)
 
static vtkMRMLAbstractLogicNew ()
 
static vtkMRMLAbstractLogicSafeDownCast (vtkObject *o)
 

Protected Member Functions

void ProcessMRMLSceneEvents (vtkObject *, unsigned long, void *) override
 
void SetMRMLSceneInternal (vtkMRMLScene *newScene) override
 
 vtkSlicerCamerasModuleLogic ()
 
 ~vtkSlicerCamerasModuleLogic () override
 
- Protected Member Functions inherited from vtkSlicerModuleLogic
 vtkSlicerModuleLogic ()
 
 ~vtkSlicerModuleLogic () override
 
- 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 ()
 
void Modified () override
 
virtual void ObserveMRMLScene ()
 
virtual void OnMRMLNodeModified (vtkMRMLNode *)
 
virtual void OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneEndClose ()
 
virtual void OnMRMLSceneEndImport ()
 
virtual void OnMRMLSceneEndRestore ()
 
virtual void OnMRMLSceneNew ()
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *)
 
virtual void OnMRMLSceneNodeRemoved (vtkMRMLNode *)
 
virtual void OnMRMLSceneStartBatchProcess ()
 
virtual void OnMRMLSceneStartClose ()
 
virtual void OnMRMLSceneStartImport ()
 
virtual void OnMRMLSceneStartRestore ()
 
virtual void ProcessMRMLLogicsEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void ProcessMRMLNodesEvents (vtkObject *caller, unsigned long event, void *callData)
 
virtual void RegisterNodes ()
 
void SetAndObserveMRMLSceneEventsInternal (vtkMRMLScene *newScene, vtkIntArray *events, vtkFloatArray *priorities=nullptr)
 
void SetDisableModifiedEvent (bool onOff)
 
void SetInMRMLLogicsCallbackFlag (int flag)
 
void SetInMRMLNodesCallbackFlag (int flag)
 
void SetInMRMLSceneCallbackFlag (int flag)
 
void SetProcessingMRMLSceneEvent (int event)
 
bool StartModify ()
 
virtual void UnobserveMRMLScene ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
 ~vtkMRMLAbstractLogic () override
 

Protected Attributes

bool CopyImportedCameras
 

Additional Inherited Members

- 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

Definition at line 35 of file vtkSlicerCamerasModuleLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 40 of file vtkSlicerCamerasModuleLogic.h.

Constructor & Destructor Documentation

◆ vtkSlicerCamerasModuleLogic()

vtkSlicerCamerasModuleLogic::vtkSlicerCamerasModuleLogic ( )
protected

◆ ~vtkSlicerCamerasModuleLogic()

vtkSlicerCamerasModuleLogic::~vtkSlicerCamerasModuleLogic ( )
overrideprotected

Member Function Documentation

◆ GetClassName()

virtual const char* vtkSlicerCamerasModuleLogic::GetClassName ( )
virtual

Reimplemented from vtkSlicerModuleLogic.

◆ GetCopyImportedCameras()

virtual bool vtkSlicerCamerasModuleLogic::GetCopyImportedCameras ( )
virtual

◆ GetViewActiveCameraNode()

vtkMRMLCameraNode* vtkSlicerCamerasModuleLogic::GetViewActiveCameraNode ( vtkMRMLViewNode view)

Scan the scene and search for the active camera that is used in the view.

◆ IsA()

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

Reimplemented from vtkSlicerModuleLogic.

◆ IsTypeOf()

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

◆ New()

static vtkSlicerCamerasModuleLogic* vtkSlicerCamerasModuleLogic::New ( )
static

◆ PrintSelf()

void vtkSlicerCamerasModuleLogic::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
override

◆ ProcessMRMLSceneEvents()

void vtkSlicerCamerasModuleLogic::ProcessMRMLSceneEvents ( vtkObject *  caller,
unsigned  event,
void *  callData 
)
overrideprotectedvirtual

Receives all the events fired by the scene. By default, it calls OnMRMLScene*Event based on the event passed.

Reimplemented from vtkMRMLAbstractLogic.

◆ SafeDownCast()

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

◆ SetCopyImportedCameras()

virtual void vtkSlicerCamerasModuleLogic::SetCopyImportedCameras ( bool  )
virtual

CopyImportedCameras controls whether the logic copies the properties of the scene-to-import camera nodes into the existing nodes having the same name. If true, this is done when a camera node is about to be added to the scene. True by default.

See also
vtkMRMLScene::Import, vtkMRMLScene::Connect

◆ SetMRMLSceneInternal()

void vtkSlicerCamerasModuleLogic::SetMRMLSceneInternal ( vtkMRMLScene newScene)
overrideprotectedvirtual

Called each time a new scene is set. Can be reimplemented in derivated classes. Doesn't observe the scene by default, that means that UpdateFromMRMLScene() won't be called by default when a scene is imported, closed or restored, only when a new scene is set.

See also
SetAndObserveMRMLSceneInternal() SetAndObserveMRMLSceneEventsInternal()
UpdateFromMRMLScene()

Reimplemented from vtkMRMLAbstractLogic.

Member Data Documentation

◆ CopyImportedCameras

bool vtkSlicerCamerasModuleLogic::CopyImportedCameras
protected

Definition at line 63 of file vtkSlicerCamerasModuleLogic.h.


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