15 #ifndef __vtkMRMLSceneViewNode_h 16 #define __vtkMRMLSceneViewNode_h 21 #include <vtkStdString.h> 31 void PrintSelf(ostream& os, vtkIndent indent)
override;
41 void WriteXML(ostream& of,
int indent)
override;
61 virtual void UpdateStoredScene();
78 void AddMissingNodes();
89 bool RestoreScene(
bool removeNodes =
true);
91 void SetAbsentStorageFileNames();
94 void SetSceneViewDescription(
const vtkStdString& newDescription);
95 vtkGetMacro(SceneViewDescription, vtkStdString);
98 virtual void SetScreenShot(vtkImageData* newScreenShot);
99 vtkGetObjectMacro(ScreenShot, vtkImageData);
108 virtual void SetScreenShotType(
int type);
109 vtkGetMacro(ScreenShotType,
int);
119 int GetNodesByClass(
const char *className, std::vector<vtkMRMLNode *> &
nodes);
124 vtkCollection* GetNodesByClass(
const char *className);
131 void SetSceneViewRootDir(
const char* name);
virtual void WriteNodeBodyXML(ostream &of, int indent)
Write this node's body to a MRML file in XML format.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
virtual vtkMRMLStorageNode * CreateDefaultStorageNode()
void ReadXMLAttributes(const char **atts) override
Read node attributes from XML file
vtkMRMLNode * CreateNodeInstance() override=0
MRMLNode methods.
friend class vtkMRMLSceneViewNode
void Copy(vtkMRMLNode *node) override
Copy node contents from another node of the same type. Reimplemented to copy default sequence storage...
MRML node to represent a 3D surface model.
A set of MRML Nodes that supports serialization and undo/redo.
int ScreenShotType
The type of the screenshot.
vtkStdString SceneViewDescription
The associated Description.
virtual void ProcessChildNode(vtkMRMLNode *)
Set dependencies between this node and a child node when parsing XML file.
A superclass for other storage nodes.
void UpdateScene(vtkMRMLScene *scene) override
Finds the storage node and read the data
Abstract Superclass for all specific types of MRML nodes.
vtkImageData * ScreenShot
The vtkImageData of the screenshot.
void operator=(const vtkMRMLStorableNode &)
vtkMRMLScene * SnapshotScene
void WriteXML(ostream &of, int indent) override
Write this node's information to a MRML file in XML format.
void PrintSelf(ostream &os, vtkIndent indent) override