-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvtkMRML4DVolumeNode.h
100 lines (72 loc) · 2.9 KB
/
vtkMRML4DVolumeNode.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*=auto=========================================================================
Portions (c) Copyright 2009 Brigham and Women's Hospital (BWH) All Rights Reserved.
See Doc/copyright/copyright.txt
or http://www.slicer.org/copyright/copyright.txt for details.
Program: 3D Slicer
Module: $RCSfile: vtkMRML4DVolumeNode.h,v $
Date: $Date: 2009/10/15 17:12:29 $
Version: $Revision: 1.3 $
=========================================================================auto=*/
#ifndef __vtkUltrasound4DVolumeNode_h
#define __vtkUltrasound4DVolumeNode_h
#include "vtkUltrasound4DWin32Header.h"
#include "vtkMRML.h"
#include "vtkMRMLModelNode.h"
#include "vtkMRMLStorageNode.h"
#include "vtkMRMLScalarVolumeNode.h"
#include "vtkObject.h"
#include "vtkMatrix4x4.h"
#include "vtkCollection.h"
#include <string>
class VTK_Ultrasound4D_EXPORT vtkMRML4DVolumeNode : public vtkMRMLScalarVolumeNode
{
public:
//----------------------------------------------------------------
// Standard methods for MRML nodes
//----------------------------------------------------------------
static vtkMRML4DVolumeNode *New();
vtkTypeMacro(vtkMRML4DVolumeNode, vtkMRMLNode);
void PrintSelf(ostream& os, vtkIndent indent);
// Create instance of a HybridNavTool node.
virtual vtkMRMLNode* CreateNodeInstance();
// Set node attributes from name/value pairs
virtual void ReadXMLAttributes( const char** atts);
// Write this node's information to a MRML file in XML format.
virtual void WriteXML(ostream& of, int indent);
// Copy the node's attributes to this object
virtual void Copy(vtkMRMLNode *node);
// Get unique node XML tag name (like Volume, Model)
virtual const char* GetNodeTagName() {return "TimeSerieContainer";};
// Disactivate the possibility to apply non-linear transforms
virtual bool CanApplyNonLinearTransforms() {return 0;};
//BTX
vtkSetMacro(SerieID, std::string);
vtkGetMacro(SerieID, std::string);
//ETX
// Manage Volume Collection
void AddVolume(vtkMRMLScalarVolumeNode* NodeToAdd);
void InsertVolume(int position, vtkMRMLScalarVolumeNode* NodeToInsert);
void RemoveVolume(vtkMRMLScalarVolumeNode* NodeToRemove);
void RemoveVolume(int position);
int GetNumberOfVolumes();
vtkMRMLScalarVolumeNode* GetItemAsVolume(int position);
protected:
//----------------------------------------------------------------
// Constructor and destructor
//----------------------------------------------------------------
vtkMRML4DVolumeNode();
~vtkMRML4DVolumeNode();
vtkMRML4DVolumeNode(const vtkMRML4DVolumeNode&);
void operator=(const vtkMRML4DVolumeNode&);
public:
//----------------------------------------------------------------
// Variables
//----------------------------------------------------------------
vtkGetObjectMacro(VolumeCollection, vtkCollection);
vtkCollection *VolumeCollection;
//BTX
std::string SerieID;
//ETX
private:
};
#endif