Slicer  5.0
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
vtkMRMLSnapshotClipNode.h
Go to the documentation of this file.
1 /*=auto=========================================================================
2 
3  Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
4 
5  See COPYRIGHT.txt
6  or http://www.slicer.org/copyright/copyright.txt for details.
7 
8  Program: 3D Slicer
9  Module: $RCSfile: vtkMRMLSnapshotClipNode.h,v $
10  Date: $Date: 2006/03/19 17:12:29 $
11  Version: $Revision: 1.13 $
12 
13 =========================================================================auto=*/
14 
15 #ifndef __vtkMRMLSnapshotClipNode_h
16 #define __vtkMRMLSnapshotClipNode_h
17 
18 // MRML includes
19 #include "vtkMRMLNode.h"
21 
22 // VTK includes
23 class vtkCollection;
24 
25 // STD includes
26 #include <vector>
27 
29 class VTK_MRML_EXPORT vtkMRMLSnapshotClipNode : public vtkMRMLNode
30 {
31  public:
32  static vtkMRMLSnapshotClipNode *New();
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
36  vtkMRMLNode* CreateNodeInstance() override;
37 
40  void ReadXMLAttributes( const char** atts) override;
41 
44  void WriteXML(ostream& of, int indent) override;
45 
48  void Copy(vtkMRMLNode *node) override;
49 
52  const char* GetNodeTagName() override {return "SnapshotClip";}
53 
57  void UpdateScene(vtkMRMLScene *scene) override;
58 
61  void AddSceneSnapshotNode(vtkMRMLSceneViewNode * node);
62 
65  int GetNumberOfSceneSnapshotNodes();
68  vtkMRMLSceneViewNode* GetSceneSnapshotNode(int index);
69 
70 protected:
72  ~vtkMRMLSnapshotClipNode() override;
75 
76  std::vector< std::string > SceneSnapshotNodeIDs;
77  vtkCollection* SceneSnapshotNodes;
78 
79 };
80 
81 #endif
std::vector< std::string > SceneSnapshotNodeIDs
virtual void ReadXMLAttributes(const char **atts)
void operator=(const vtkMRMLNode &)
virtual vtkMRMLNode * CreateNodeInstance()=0
Create instance of the default node. Like New only virtual.
const char * GetNodeTagName() override
Get node XML tag name (like Volume, Model)
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.
A set of MRML Nodes that supports serialization and undo/redo.
Definition: vtkMRMLScene.h:57
virtual void WriteXML(ostream &of, int indent)
void PrintSelf(ostream &os, vtkIndent indent) override
Abstract class representing a hierarchy member.
Abstract Superclass for all specific types of MRML nodes.
Definition: vtkMRMLNode.h:167
virtual void UpdateScene(vtkMRMLScene *)
Definition: vtkMRMLNode.h:206