DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
itkSamplingSchemeQSpaceWriter.h
Go to the documentation of this file.
1 
18 #ifndef __itkSamplingSchemeQSpaceWriter_h
19 #define __itkSamplingSchemeQSpaceWriter_h
20 
21 #include "itkLightProcessObject.h"
22 
23 
24 namespace itk
25 {
33 template <class TSamplingType>
34 class ITK_EXPORT SamplingSchemeQSpaceWriter : public LightProcessObject
35 {
36 public:
39  typedef LightProcessObject Superclass;
40  typedef SmartPointer<Self> Pointer;
41  typedef SmartPointer< const Self > ConstPointer;
42 
43  typedef TSamplingType SamplingType;
44  typedef typename SamplingType::Pointer SamplingPointer;
45 
47  itkNewMacro(Self);
48 
50  itkTypeMacro(SamplingSchemeQSpaceWriter, LightProcessObject);
51 
52  itkSetObjectMacro(Sampling, SamplingType);
53  itkGetObjectMacro(Sampling, SamplingType);
54 
55  itkSetMacro(BFile, std::string);
56  itkGetMacro(BFile, std::string);
57 
58  itkSetMacro(OrientationFile, std::string);
59  itkGetMacro(OrientationFile, std::string);
60 
61  itkSetMacro(SaveSingleShell, bool);
62  itkGetMacro(SaveSingleShell, bool);
63  itkBooleanMacro(SaveSingleShell);
64 
65  itkSetMacro(SaveAllShellsInOneFile, bool);
66  itkGetMacro(SaveAllShellsInOneFile, bool);
67  itkBooleanMacro(SaveAllShellsInOneFile);
68 
69 
70  void Update();
71 
72 private:
73  SamplingSchemeQSpaceWriter(const Self&); //purposely not implemented
74  void operator=(const Self&); //purposely not implemented
75 
76 protected:
77 
79 
81 
82  void PrintSelf(std::ostream& os, Indent indent) const ITK_OVERRIDE;
83 
85  std::string m_BFile;
86 
88  std::string m_OrientationFile;
89 
90  // [>* If it is set, save the index for single shell data. <]
91  // std::string m_IndexFile;
92 
94  SamplingPointer m_Sampling;
95 
98 
101 
102 };
103 
104 }
105 
106 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkSamplingSchemeQSpaceWriter_hxx)
108 #endif
109 
110 #endif
111 
#define ITK_OVERRIDE
Definition: utlITKMacro.h:46
write orientations and b values (single/multiple shells) into text files