ITK  4.13.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  /* Standard class typedefs. */
86 
88  itkNewMacro(Self);
89 
91  itkTypeMacro(Bruker2dseqImageIO, ImageIOBase);
92 
95  virtual bool CanReadFile(const char *FileNameToRead) ITK_OVERRIDE;
96 
98  virtual void ReadImageInformation() ITK_OVERRIDE;
99 
101  virtual void Read(void *buffer) ITK_OVERRIDE;
102 
105  virtual bool CanWriteFile( const char *itkNotUsed(FileNameToWrite) ) ITK_OVERRIDE
106  {
107  return false;
108  }
109 
111  virtual void WriteImageInformation() ITK_OVERRIDE
112  {
113  return;
114  }
115 
117  virtual void Write( const void *itkNotUsed(buffer) ) ITK_OVERRIDE
118  {
119  return;
120  }
121 
122 protected:
124  ~Bruker2dseqImageIO() ITK_OVERRIDE;
125 
126  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
127 
128 private:
129  ITK_DISALLOW_COPY_AND_ASSIGN(Bruker2dseqImageIO);
130 
131  void SwapBytesIfNecessary(void *buffer, SizeValueType numberOfPixels);
132 
133  ImageIOBase::IOComponentType m_OnDiskComponentType;
134  ImageIOBase::ByteOrder m_MachineByteOrder;
135 };
136 
137 } // end namespace itk
138 
139 #endif // itkBruker2dseqImageIO_h
Light weight base class for most itk classes.
Abstract superclass defines image IO interface.
Class that defines how to read Bruker file format.
unsigned long SizeValueType
Definition: itkIntTypes.h:143
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
virtual void Write(const void *) override
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void WriteImageInformation() override