ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTrxStreamlineIOBase.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 *=========================================================================*/
18#ifndef itkTrxStreamlineIOBase_h
19#define itkTrxStreamlineIOBase_h
20
21#include "TractographyTRXExport.h"
22
25
26#include <string>
27
28namespace itk
29{
36class TractographyTRX_EXPORT TrxStreamlineIOBase : public LightProcessObject
37{
38public:
39 ITK_DISALLOW_COPY_AND_MOVE(TrxStreamlineIOBase);
40
45
46 itkOverrideGetNameOfClassMacro(TrxStreamlineIOBase);
47
51
52 itkSetStringMacro(FileName);
53 itkGetStringMacro(FileName);
54
55 itkSetMacro(UseCompression, bool);
56 itkGetConstMacro(UseCompression, bool);
57 itkBooleanMacro(UseCompression);
58
59 void
61
62 const StreamlineDataType *
63 GetInput() const;
64
67
68 const StreamlineDataType *
69 GetOutput() const;
70
71 virtual bool
72 CanReadFile(const char * filename) = 0;
73
74 virtual bool
75 CanWriteFile(const char * filename) = 0;
76
77 virtual void
78 Read() = 0;
79
80 virtual void
81 Write() = 0;
82
83protected:
85 ~TrxStreamlineIOBase() override = default;
86
87 void
89
90 std::string m_FileName{};
91 bool m_UseCompression{ false };
92
93private:
96};
97} // end namespace itk
98
99#endif
Implements transparent reference counting.
Central data container for TRX tractography files.
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
void SetOutput(const StreamlineDataType *output)
virtual void Write()=0
const StreamlineDataType * GetOutput() const
const StreamlineDataType * GetInput() const
StreamlineDataType::Pointer StreamlineDataPointer
StreamlineDataPointer m_Output
virtual bool CanReadFile(const char *filename)=0
StreamlineDataType * GetOutput()
ConstStreamlineDataPointer m_Input
virtual bool CanWriteFile(const char *filename)=0
~TrxStreamlineIOBase() override=default
virtual void Read()=0
void SetInput(const StreamlineDataType *input)
StreamlineDataType::ConstPointer ConstStreamlineDataPointer
SmartPointer< const Self > ConstPointer
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)