Slicer
5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
|
#include <Modules/Loadable/Models/Logic/vtkSlicerModelsLogic.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 | |
vtkMRMLModelNode * | AddModel (vtkPolyData *polyData=nullptr) |
vtkMRMLModelNode * | AddModel (vtkAlgorithmOutput *polyData=nullptr) |
vtkMRMLModelNode * | AddModel (const char *filename, int coordinateSystem=vtkMRMLStorageNode::CoordinateSystemLPS, vtkMRMLMessageCollection *userMessages=nullptr) |
int | AddModels (const char *dirname, const char *suffix, int coordinateSystem=vtkMRMLStorageNode::CoordinateSystemLPS, vtkMRMLMessageCollection *userMessages=nullptr) |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) override |
int | SaveModel (const char *filename, vtkMRMLModelNode *modelNode, int coordinateSystem=vtkMRMLStorageNode::CoordinateSystemLPS, vtkMRMLMessageCollection *userMessages=nullptr) |
void | SetAllModelsVisibility (int flag) |
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 vtkSlicerModelsLogic * | New () |
The Usual vtk class functions. More... | |
static vtkSlicerModelsLogic * | SafeDownCast (vtkObject *o) |
static void | TransformModel (vtkMRMLTransformNode *tnode, vtkMRMLModelNode *modelNode, int transformNormals, vtkMRMLModelNode *modelOut) |
Transform models's polydata. More... | |
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 35 of file vtkSlicerModelsLogic.h.
Definition at line 42 of file vtkSlicerModelsLogic.h.
|
protected |
|
overrideprotected |
|
protected |
vtkMRMLModelNode* vtkSlicerModelsLogic::AddModel | ( | vtkPolyData * | polyData = nullptr | ) |
Add into the scene a new mrml model node with an existing polydata A display node is also added into the scene. param polyData surface mesh in RAS coordinate system.
vtkMRMLModelNode* vtkSlicerModelsLogic::AddModel | ( | vtkAlgorithmOutput * | polyData = nullptr | ) |
Add into the scene a new mrml model node with an existing polydata A display node is also added into the scene. param polyData surface mesh algorithm output in RAS coordinate system.
vtkMRMLModelNode* vtkSlicerModelsLogic::AddModel | ( | const char * | filename, |
int | coordinateSystem = vtkMRMLStorageNode::CoordinateSystemLPS , |
||
vtkMRMLMessageCollection * | userMessages = nullptr |
||
) |
Add into the scene a new mrml model node and read it's polydata from a specified file A display node and a storage node are also added into the scene
coordinateSystem | If coordinate system is not specified in the file then this coordinate system is used. Default is LPS. |
userMessages | User-displayable warning or error messages can be received if userMessages object is specified. |
int vtkSlicerModelsLogic::AddModels | ( | const char * | dirname, |
const char * | suffix, | ||
int | coordinateSystem = vtkMRMLStorageNode::CoordinateSystemLPS , |
||
vtkMRMLMessageCollection * | userMessages = nullptr |
||
) |
Create model nodes and read their polydata from a specified directory
coordinateSystem | If coordinate system is not specified in the file then this coordinate system is used. Default is LPS. |
userMessages | User-displayable warning or error messages can be received if userMessages object is specified. |
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
|
virtual |
Reimplemented from vtkSlicerModuleLogic.
|
static |
|
static |
The Usual vtk class functions.
|
overrideprotectedvirtual |
Reimplemented to make sure the singleton vtkMRMLClipModelsNode is instantiated.
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.
|
protected |
|
override |
|
static |
int vtkSlicerModelsLogic::SaveModel | ( | const char * | filename, |
vtkMRMLModelNode * | modelNode, | ||
int | coordinateSystem = vtkMRMLStorageNode::CoordinateSystemLPS , |
||
vtkMRMLMessageCollection * | userMessages = nullptr |
||
) |
Write model's polydata to a specified file
coordinateSystem | If coordinate system is not specified in the file then this coordinate system is used. Default is -1, which means that the coordinate system specified in the storage node will be used. |
userMessages | User-displayable warning or error messages can be received if userMessages object is specified. |
void vtkSlicerModelsLogic::SetAllModelsVisibility | ( | int | flag | ) |
Iterate through all models in the scene, find all their display nodes and set their visibility flag to flag. Does not touch model hierarchy nodes with display nodes
|
overrideprotectedvirtual |
Reimplemented to observe the NodeRemovedEvent scene event.
Reimplemented from vtkMRMLAbstractLogic.
|
static |
Transform models's polydata.