Slicer
5.1
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/SceneViews/Logic/vtkSlicerSceneViewsModuleLogic.h>
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... | |
void | PrintSelf (ostream &os, vtkIndent indent) override |
void | RegisterNodes () 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... | |
bool | RestoreSceneView (const char *id, bool removeNodes=true) |
void | SetMRMLSceneInternal (vtkMRMLScene *newScene) override |
Initialize listening to MRML events. More... | |
Public Member Functions inherited from vtkSlicerModuleLogic | |
virtual vtkSlicerApplicationLogic * | GetApplicationLogic () |
Get access to overall application state. More... | |
virtual vtkMRMLAbstractLogic * | GetModuleLogic (const char *moduleName) |
Convenience method for getting another module's logic from the application logic. 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 vtkMRMLApplicationLogic * | GetMRMLApplicationLogic () const |
Get access to overall application state. More... | |
vtkMRMLScene * | GetMRMLScene () 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 vtkSlicerSceneViewsModuleLogic * | New () |
static vtkSlicerSceneViewsModuleLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkSlicerModuleLogic | |
static int | IsTypeOf (const char *type) |
static vtkSlicerModuleLogic * | New () |
The Usual vtk class functions. More... | |
static vtkSlicerModuleLogic * | SafeDownCast (vtkObject *o) |
Static Public Member Functions inherited from vtkMRMLAbstractLogic | |
static int | IsTypeOf (const char *type) |
static vtkMRMLAbstractLogic * | New () |
static vtkMRMLAbstractLogic * | SafeDownCast (vtkObject *o) |
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) |
Definition at line 45 of file vtkSlicerSceneViewsModuleLogic.h.
Definition at line 51 of file vtkSlicerSceneViewsModuleLogic.h.
|
protected |
|
overrideprotected |
void vtkSlicerSceneViewsModuleLogic::CreateSceneView | ( | const char * | name, |
const char * | description, | ||
int | screenshotType, | ||
vtkImageData * | screenshot | ||
) |
Create a sceneView..
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
vtkStdString vtkSlicerSceneViewsModuleLogic::GetSceneViewDescription | ( | const char * | id | ) |
Return the description of an existing sceneView.
vtkStdString vtkSlicerSceneViewsModuleLogic::GetSceneViewName | ( | const char * | id | ) |
Return the name of an existing sceneView.
vtkImageData* vtkSlicerSceneViewsModuleLogic::GetSceneViewScreenshot | ( | const char * | id | ) |
Return the screenshot of an existing sceneView.
int vtkSlicerSceneViewsModuleLogic::GetSceneViewScreenshotType | ( | const char * | id | ) |
Return the screenshotType of an existing sceneView.
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
|
static |
void vtkSlicerSceneViewsModuleLogic::ModifySceneView | ( | vtkStdString | id, |
const char * | name, | ||
const char * | description, | ||
int | screenshotType, | ||
vtkImageData * | screenshot | ||
) |
Modify an existing sceneView.
const char* vtkSlicerSceneViewsModuleLogic::MoveSceneViewDown | ( | const char * | id | ) |
Move sceneView up.
const char* vtkSlicerSceneViewsModuleLogic::MoveSceneViewUp | ( | const char * | id | ) |
Move sceneView up.
|
static |
|
overrideprotectedvirtual |
Called after the corresponding MRML event is triggered.
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::EndCloseEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::EndImportEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::EndRestoreEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
overrideprotectedvirtual |
If vtkMRMLScene::NodeAddedEvent has been set to be observed in SetMRMLSceneInternal, it is called when the scene fires the event
Reimplemented from vtkMRMLAbstractLogic.
|
override |
|
overridevirtual |
Register MRML Node classes to Scene. Gets called automatically when the MRMLScene is attached to this logic class.
Reimplemented from vtkMRMLAbstractLogic.
void vtkSlicerSceneViewsModuleLogic::RemoveSceneViewNode | ( | vtkMRMLSceneViewNode * | sceneViewNode | ) |
Remove a scene view node.
bool 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. The method will return with false if restore failed because nodes were not allowed to be removed. RemoveNodes defaults to true for backward compatibility.
|
static |
|
overridevirtual |
Initialize listening to MRML events.
Reimplemented from vtkMRMLAbstractLogic.