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();
87 void RestoreScene(
bool removeNodes =
true);
89 void SetAbsentStorageFileNames();
92 void SetSceneViewDescription(
const vtkStdString& newDescription);
93 vtkGetMacro(SceneViewDescription, vtkStdString);
96 virtual void SetScreenShot(vtkImageData* newScreenShot);
97 vtkGetObjectMacro(ScreenShot, vtkImageData);
106 virtual void SetScreenShotType(
int type);
107 vtkGetMacro(ScreenShotType,
int);
117 int GetNodesByClass(
const char *className, std::vector<vtkMRMLNode *> &
nodes);
122 vtkCollection* GetNodesByClass(
const char *className);
129 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
virtual void Copy(vtkMRMLNode *node)
Copy node contents from another node of the same type. Does not copy node ID and Scene. Performs deep copy - an independent copy is created from all data, including bulk data.
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