-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCreateMRMLSceneHelper.h
70 lines (66 loc) · 2.41 KB
/
CreateMRMLSceneHelper.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
#ifndef _CreateMRMLSceneHelper_h
#define _CreateMRMLSceneHelper_h
#include <vtkNew.h>
#include <vtkMRMLScene.h>
#include <vtkMRMLLinearTransformNode.h>
#include <vtkMRMLTransformStorageNode.h>
#include <vtkMRMLScalarVolumeNode.h>
#include <vtkMRMLVolumeArchetypeStorageNode.h>
#include <vtkMRMLLabelMapVolumeDisplayNode.h>
#include <vtkMRMLScalarVolumeDisplayNode.h>
#include <vtkMRMLDiffusionWeightedVolumeDisplayNode.h>
#include <vtkMRMLVectorVolumeNode.h>
#include <vtkMRMLVectorVolumeDisplayNode.h>
#include <vtkMRMLDiffusionTensorVolumeNode.h>
#include <vtkMRMLDiffusionTensorVolumeDisplayNode.h>
#include <vtkMRMLDiffusionWeightedVolumeNode.h>
#include <vtkMRMLNRRDStorageNode.h>
#include <vtkMRMLModelStorageNode.h>
#include "vtkMRMLModelDisplayNode.h"
#include <vtkMRMLModelNode.h>
#include <vtkMRMLDisplayNode.h>
#include <vtkMRMLColorTableNode.h>
#include <vtkMRMLColorTableStorageNode.h>
#include <vtkMRMLFiducialListStorageNode.h>
#include <vtkMRMLFiducialListNode.h>
#include <itksys/SystemTools.hxx>
#include <itkTransformFileWriter.h>
#include <itkAffineTransform.h>
#include "MRMLModelHelper.h"
#include "MRMLTransformHelper.h"
#include "MRMLVolumeHelper.h"
#include "MRMLFiducialHelper.h"
#include <vector>
#include <string>
class CreateMRMLSceneHelper
{
public:
CreateMRMLSceneHelper() ;
~CreateMRMLSceneHelper() ;
void SetOutputSceneName( std::string name ) ;
void SetInputSceneName( std::string name ) ;
int Write() ;
void SetInputs( std::vector< MRMLNodeHelper* > arg ) ;
// void AddInput( InputClass* arg ) ;
private:
std::string m_SceneName ;
std::string m_InputSceneName ;
std::vector< MRMLNodeHelper* > m_Arguments ;
vtkMRMLScene* m_Scene ;
std::string RemoveExtension( std::string input ) ;
int CheckDoublons( ) ;
int CheckDoublonsWithScene( ) ;
void PrintArguments() ;
void PrintSceneNodes() ;
int AddVolume( MRMLVolumeHelper *volume ) ;
int SetParentNode( vtkMRMLTransformableNode *child , const char* parentName ) ;
int AddTransform( MRMLTransformHelper *input ) ;
int AddColorable( MRMLColorableHelper* colorable ,
vtkMRMLDisplayNode* dnode ,
vtkMRMLStorageNode* snode ,
vtkMRMLDisplayableNode* inode
) ;
int AddModel( MRMLModelHelper *model ) ;
int AddFiducial( MRMLFiducialHelper *fiducial ) ;
};
#endif