forked from Slicer/SlicerGitSVNArchive
-
Notifications
You must be signed in to change notification settings - Fork 2
/
vtkMRMLSnapshotClipNode.h
81 lines (60 loc) · 2.15 KB
/
vtkMRMLSnapshotClipNode.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*=auto=========================================================================
Portions (c) Copyright 2005 Brigham and Women's Hospital (BWH) All Rights Reserved.
See COPYRIGHT.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkMRMLSnapshotClipNode.h,v $
Date: $Date: 2006/03/19 17:12:29 $
Version: $Revision: 1.13 $
=========================================================================auto=*/
#ifndef __vtkMRMLSnapshotClipNode_h
#define __vtkMRMLSnapshotClipNode_h
// MRML includes
#include "vtkMRMLNode.h"
class vtkMRMLSceneViewNode;
// VTK includes
class vtkCollection;
// STD includes
#include <vector>
/// \brief Abstract class representing a hierarchy member.
class VTK_MRML_EXPORT vtkMRMLSnapshotClipNode : public vtkMRMLNode
{
public:
static vtkMRMLSnapshotClipNode *New();
vtkTypeMacro(vtkMRMLSnapshotClipNode,vtkMRMLNode);
void PrintSelf(ostream& os, vtkIndent indent) override;
vtkMRMLNode* CreateNodeInstance() override;
///
/// Read node attributes from XML file
void ReadXMLAttributes( const char** atts) override;
///
/// Write this node's information to a MRML file in XML format.
void WriteXML(ostream& of, int indent) override;
///
/// Copy the node's attributes to this object
void Copy(vtkMRMLNode *node) override;
///
/// Get node XML tag name (like Volume, Model)
const char* GetNodeTagName() override {return "SnapshotClip";}
///
/// Updates this node if it depends on other nodes
/// when the node is deleted in the scene
void UpdateScene(vtkMRMLScene *scene) override;
///
/// Add SceneSnapshot node
void AddSceneSnapshotNode(vtkMRMLSceneViewNode * node);
///
/// Get Numbre of SceneSnapshot nodes
int GetNumberOfSceneSnapshotNodes();
///
/// Get SceneSnapshot node
vtkMRMLSceneViewNode* GetSceneSnapshotNode(int index);
protected:
vtkMRMLSnapshotClipNode();
~vtkMRMLSnapshotClipNode() override;
vtkMRMLSnapshotClipNode(const vtkMRMLSnapshotClipNode&);
void operator=(const vtkMRMLSnapshotClipNode&);
std::vector< std::string > SceneSnapshotNodeIDs;
vtkCollection* SceneSnapshotNodes;
};
#endif