ITK  5.0.0
Insight Segmentation and Registration Toolkit
itkBruker2dseqImageIO.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
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  * http://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 
19 #ifndef itkBruker2dseqImageIO_h
20 #define itkBruker2dseqImageIO_h
21 
22 #include "ITKIOBrukerExport.h"
23 
24 #include "itkImageIOBase.h"
25 #include "itkVectorContainer.h"
26 
27 namespace itk
28 {
78 class ITKIOBruker_EXPORT Bruker2dseqImageIO : public ImageIOBase
79 {
80 public:
81  ITK_DISALLOW_COPY_AND_ASSIGN(Bruker2dseqImageIO);
82 
83  /* Standard class type aliases. */
88 
90  itkNewMacro(Self);
91 
93  itkTypeMacro(Bruker2dseqImageIO, ImageIOBase);
94 
97  bool CanReadFile(const char *FileNameToRead) override;
98 
100  void ReadImageInformation() override;
101 
103  void Read(void *buffer) override;
104 
107  bool CanWriteFile( const char *itkNotUsed(FileNameToWrite) ) override
108  {
109  return false;
110  }
111 
113  void WriteImageInformation() override
114  {
115  return;
116  }
117 
119  void Write( const void *itkNotUsed(buffer) ) override
120  {
121  return;
122  }
123 
124 protected:
126  ~Bruker2dseqImageIO() override;
127 
128  void PrintSelf(std::ostream & os, Indent indent) const override;
129 
130 private:
131  void SwapBytesIfNecessary(void *buffer, SizeValueType numberOfPixels);
132 
133  ImageIOBase::IOComponentType m_OnDiskComponentType{ UCHAR };
135 };
136 
137 } // end namespace itk
138 
139 #endif // itkBruker2dseqImageIO_h
void Write(const void *) override
Light weight base class for most itk classes.
void WriteImageInformation() override
Abstract superclass defines image IO interface.
unsigned long SizeValueType
Definition: itkIntTypes.h:83
Class that defines how to read Bruker file format.
bool CanWriteFile(const char *) override
ImageIOBase::ByteOrder m_MachineByteOrder
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Base class for most ITK classes.
Definition: itkObject.h:60