ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkTrxFileWriter.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 itkTrxFileWriter_h
19#define itkTrxFileWriter_h
20
21#include "TractographyTRXExport.h"
22
23#include "itkProcessObject.h"
25
26namespace itk
27{
37class TractographyTRX_EXPORT TrxFileWriter : public ProcessObject
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(TrxFileWriter);
41
46
47 itkNewMacro(Self);
48 itkOverrideGetNameOfClassMacro(TrxFileWriter);
49
51
53 void
54 SetInput(const InputType * input);
55
56 const InputType *
57 GetInput() const;
58
59 itkSetStringMacro(FileName);
60 itkGetStringMacro(FileName);
61
62 itkSetMacro(UseCompression, bool);
63 itkGetConstMacro(UseCompression, bool);
64 itkBooleanMacro(UseCompression);
65
67 void
68 Update() override;
69
70protected:
71 TrxFileWriter() = default;
72 ~TrxFileWriter() override = default;
73
74 void
75 GenerateData() override;
76
77private:
78 std::string m_FileName{};
79 bool m_UseCompression{ false };
80};
81} // end namespace itk
82
83#endif
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
void SetInput(const InputType *input)
TrxFileWriter()=default
TrxStreamlineData InputType
ProcessObject Superclass
const InputType * GetInput() const
void Update() override
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
void GenerateData() override
~TrxFileWriter() override=default
Central data container for TRX tractography files.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)