Slicer  4.10
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
vtkSlicerSceneViewsModuleLogic Class Reference

#include <Modules/Loadable/SceneViews/Logic/vtkSlicerSceneViewsModuleLogic.h>

Inheritance diagram for vtkSlicerSceneViewsModuleLogic:
Inheritance graph
[legend]
Collaboration diagram for vtkSlicerSceneViewsModuleLogic:
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

void CreateSceneView (const char *name, const char *description, int screenshotType, vtkImageData *screenshot)
 Create a sceneView.. More...
 
virtual const char * GetClassName ()
 
vtkStdString GetSceneViewDescription (const char *id)
 Return the description of an existing sceneView. More...
 
vtkStdString GetSceneViewName (const char *id)
 Return the name of an existing sceneView. More...
 
vtkImageData * GetSceneViewScreenshot (const char *id)
 Return the screenshot of an existing sceneView. More...
 
int GetSceneViewScreenshotType (const char *id)
 Return the screenshotType of an existing sceneView. More...
 
virtual int IsA (const char *type)
 
void ModifySceneView (vtkStdString id, const char *name, const char *description, int screenshotType, vtkImageData *screenshot)
 Modify an existing sceneView. More...
 
const char * MoveSceneViewDown (const char *id)
 Move sceneView up. More...
 
const char * MoveSceneViewUp (const char *id)
 Move sceneView up. More...
 
virtual void PrintSelf (ostream &os, vtkIndent indent) VTK_OVERRIDE
 
virtual void RegisterNodes () VTK_OVERRIDE
 Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class. More...
 
void RemoveSceneViewNode (vtkMRMLSceneViewNode *sceneViewNode)
 Remove a scene view node. More...
 
void RestoreSceneView (const char *id, bool removeNodes=true)
 
virtual void SetMRMLSceneInternal (vtkMRMLScene *newScene) VTK_OVERRIDE
 Initialize listening to MRML events. More...
 
- 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) VTK_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) VTK_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 vtkSlicerSceneViewsModuleLogicNew ()
 
static vtkSlicerSceneViewsModuleLogicSafeDownCast (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

virtual void OnMRMLNodeModified (vtkMRMLNode *node) VTK_OVERRIDE
 
virtual void OnMRMLSceneEndClose () VTK_OVERRIDE
 
virtual void OnMRMLSceneEndImport () VTK_OVERRIDE
 
virtual void OnMRMLSceneEndRestore () VTK_OVERRIDE
 
virtual void OnMRMLSceneNodeAdded (vtkMRMLNode *node) VTK_OVERRIDE
 
 vtkSlicerSceneViewsModuleLogic ()
 
virtual ~vtkSlicerSceneViewsModuleLogic ()
 
- Protected Member Functions inherited from vtkSlicerModuleLogic
 vtkSlicerModuleLogic ()
 
virtual ~vtkSlicerModuleLogic ()
 
- 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 OnMRMLSceneEndBatchProcess ()
 
virtual void OnMRMLSceneNew ()
 
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 ProcessMRMLSceneEvents (vtkObject *caller, unsigned long event, void *callData)
 
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 ()
 
virtual void UnobserveMRMLScene ()
 
virtual void UpdateFromMRMLScene ()
 
 vtkMRMLAbstractLogic ()
 
virtual ~vtkMRMLAbstractLogic ()
 

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 44 of file vtkSlicerSceneViewsModuleLogic.h.

Member Typedef Documentation

◆ Superclass

Definition at line 50 of file vtkSlicerSceneViewsModuleLogic.h.

Constructor & Destructor Documentation

◆ vtkSlicerSceneViewsModuleLogic()

vtkSlicerSceneViewsModuleLogic::vtkSlicerSceneViewsModuleLogic ( )
protected

◆ ~vtkSlicerSceneViewsModuleLogic()

virtual vtkSlicerSceneViewsModuleLogic::~vtkSlicerSceneViewsModuleLogic ( )
protectedvirtual

Member Function Documentation

◆ CreateSceneView()

void vtkSlicerSceneViewsModuleLogic::CreateSceneView ( const char *  name,
const char *  description,
int  screenshotType,
vtkImageData *  screenshot 
)

Create a sceneView..

◆ GetClassName()

virtual const char* vtkSlicerSceneViewsModuleLogic::GetClassName ( )
virtual

Reimplemented from vtkSlicerModuleLogic.

◆ GetSceneViewDescription()

vtkStdString vtkSlicerSceneViewsModuleLogic::GetSceneViewDescription ( const char *  id)

Return the description of an existing sceneView.

◆ GetSceneViewName()

vtkStdString vtkSlicerSceneViewsModuleLogic::GetSceneViewName ( const char *  id)

Return the name of an existing sceneView.

◆ GetSceneViewScreenshot()

vtkImageData* vtkSlicerSceneViewsModuleLogic::GetSceneViewScreenshot ( const char *  id)

Return the screenshot of an existing sceneView.

◆ GetSceneViewScreenshotType()

int vtkSlicerSceneViewsModuleLogic::GetSceneViewScreenshotType ( const char *  id)

Return the screenshotType of an existing sceneView.

◆ IsA()

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

Reimplemented from vtkSlicerModuleLogic.

◆ IsTypeOf()

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

◆ ModifySceneView()

void vtkSlicerSceneViewsModuleLogic::ModifySceneView ( vtkStdString  id,
const char *  name,
const char *  description,
int  screenshotType,
vtkImageData *  screenshot 
)

Modify an existing sceneView.

◆ MoveSceneViewDown()

const char* vtkSlicerSceneViewsModuleLogic::MoveSceneViewDown ( const char *  id)

Move sceneView up.

◆ MoveSceneViewUp()

const char* vtkSlicerSceneViewsModuleLogic::MoveSceneViewUp ( const char *  id)

Move sceneView up.

◆ New()

static vtkSlicerSceneViewsModuleLogic* vtkSlicerSceneViewsModuleLogic::New ( )
static

◆ OnMRMLNodeModified()

virtual void vtkSlicerSceneViewsModuleLogic::OnMRMLNodeModified ( vtkMRMLNode )
protectedvirtual

Called after the corresponding MRML event is triggered.

See also
ProcessMRMLNodesEvents

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneEndClose()

virtual void vtkSlicerSceneViewsModuleLogic::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.

◆ OnMRMLSceneEndImport()

virtual void vtkSlicerSceneViewsModuleLogic::OnMRMLSceneEndImport ( )
protectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneStartImport, OnMRMLSceneNew

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneEndRestore()

virtual void vtkSlicerSceneViewsModuleLogic::OnMRMLSceneEndRestore ( )
protectedvirtual

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

See also
ProcessMRMLSceneEvents, SetMRMLSceneInternal
OnMRMLSceneStartRestore

Reimplemented from vtkMRMLAbstractLogic.

◆ OnMRMLSceneNodeAdded()

virtual void vtkSlicerSceneViewsModuleLogic::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.

◆ PrintSelf()

virtual void vtkSlicerSceneViewsModuleLogic::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

◆ RegisterNodes()

virtual void vtkSlicerSceneViewsModuleLogic::RegisterNodes ( )
virtual

Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.

Reimplemented from vtkMRMLAbstractLogic.

◆ RemoveSceneViewNode()

void vtkSlicerSceneViewsModuleLogic::RemoveSceneViewNode ( vtkMRMLSceneViewNode sceneViewNode)

Remove a scene view node.

◆ RestoreSceneView()

void vtkSlicerSceneViewsModuleLogic::RestoreSceneView ( const char *  id,
bool  removeNodes = true 
)

Restore a sceneView. If removeNodes flag is false, don't restore the scene if it will remove data. removeNodes defaults to true for backward compatibility.

◆ SafeDownCast()

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

◆ SetMRMLSceneInternal()

virtual void vtkSlicerSceneViewsModuleLogic::SetMRMLSceneInternal ( vtkMRMLScene newScene)
virtual

Initialize listening to MRML events.

Reimplemented from vtkMRMLAbstractLogic.


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