Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkRawImageWriter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkRawImageWriter.h,v $
00005   Language:  C++
00006   Date:      $Date: 2002/05/15 02:05:07 $
00007   Version:   $Revision: 1.3 $
00008 
00009   Copyright (c) 2002 Insight Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012   Portions of this code are covered under the VTK copyright.
00013   See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm for details.
00014 
00015      This software is distributed WITHOUT ANY WARRANTY; without even 
00016      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00017      PURPOSE.  See the above copyright notices for more information.
00018 
00019 =========================================================================*/
00020 #ifndef __itkRawImageWriter_h
00021 #define __itkRawImageWriter_h
00022 
00023 #include "itkImageWriter.h"
00024 #include <vector>
00025 
00026 namespace itk
00027 {
00028 
00041 template <class TInputImage>
00042 class ITK_EXPORT RawImageWriter : public ImageWriter<TInputImage>
00043 {
00044 public:
00046   typedef RawImageWriter       Self;
00047   typedef ImageWriter<TInputImage>  Superclass;
00048   typedef SmartPointer<Self>  Pointer;
00049   typedef SmartPointer<const Self>  ConstPointer;
00050 
00052   itkTypeMacro(RawImageWriter,ImageWriter);
00053 
00055   itkNewMacro(Self);
00056   
00058   typedef  enum {BigEndian,LittleEndian} ByteOrder;
00059   
00061   itkSetMacro(ByteOrder,ByteOrder);
00062   
00064   itkGetMacro(ByteOrder,ByteOrder);
00065                  
00067   void SetByteOrderToBigEndian() 
00068     {this->SetByteOrder(RawImageWriter::BigEndian);}
00069 
00071   void SetByteOrderToLittleEndian() 
00072     {this->SetByteOrder(RawImageWriter::LittleEndian);}
00073 
00074 protected:
00075   RawImageWriter();
00076   ~RawImageWriter() {}
00077   void PrintSelf(std::ostream& os, Indent indent) const;
00078 
00079   void WriteData();
00080   
00081 private:
00082   RawImageWriter(const Self&); //purposely not implemented
00083   void operator=(const Self&); //purposely not implemented
00084 
00085   ByteOrder m_ByteOrder;
00086 
00087 };
00088 
00089 } // end namespace itk
00090   
00091 #ifndef ITK_MANUAL_INSTANTIATION
00092 #include "itkRawImageWriter.txx"
00093 #endif
00094 
00095 #endif

Generated at Wed Mar 12 01:13:09 2003 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000