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

itkVTKPolyDataReader.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkVTKPolyDataReader.h,v $
00005   Language:  C++
00006   Date:      $Date: 2009-09-16 19:25:13 $
00007   Version:   $Revision: 1.9 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 #ifndef __itkVTKPolyDataReader_h
00018 #define __itkVTKPolyDataReader_h
00019 
00020 #include "itkMesh.h"
00021 #include "itkMeshSource.h"
00022 #include "itkTriangleCell.h"
00023 #include "itkMapContainer.h"
00024 
00025 namespace itk
00026 {
00027 
00037 template <class TOutputMesh>
00038 class VTKPolyDataReader : public MeshSource<TOutputMesh>
00039 {
00040 public:
00042   typedef VTKPolyDataReader         Self;
00043   typedef MeshSource<TOutputMesh>   Superclass;
00044   typedef SmartPointer<Self>        Pointer;
00045   typedef SmartPointer<const Self>  ConstPointer;
00046 
00048   itkNewMacro(Self);
00049 
00051   itkTypeMacro(VTKPolyDataReader, MeshSource);
00052 
00054   typedef TOutputMesh                          OutputMeshType;
00055   typedef typename OutputMeshType::MeshTraits  MeshTraits;
00056   typedef typename OutputMeshType::PointType   PointType;
00057   typedef typename MeshTraits::PixelType       PixelType;
00058 
00060   typedef typename OutputMeshType::Pointer         OutputMeshPointer;
00061   typedef typename OutputMeshType::CellTraits      CellTraits;
00062   typedef typename OutputMeshType::CellIdentifier  CellIdentifier;
00063   typedef typename OutputMeshType::CellType        CellType;
00064   typedef typename OutputMeshType::CellAutoPointer CellAutoPointer;
00065   typedef typename OutputMeshType::PointIdentifier PointIdentifier;
00066   typedef typename CellTraits::PointIdIterator     PointIdIterator;
00067 
00068   typedef typename OutputMeshType::PointsContainerPointer
00069     PointsContainerPointer;
00070   
00071   typedef typename OutputMeshType::PointsContainer
00072     PointsContainer;
00073 
00075   typedef TriangleCell<CellType>      TriangleCellType;
00076 
00077   typedef typename TriangleCellType::SelfAutoPointer
00078     TriangleCellAutoPointer;
00079 
00080   typedef std::pair<unsigned long,unsigned long>     IndexPairType;
00081   typedef MapContainer<IndexPairType, unsigned long> PointMapType;
00082   typedef typename PointType::VectorType             VectorType;
00083 
00089   itkSetStringMacro(FileName);
00090   itkGetStringMacro(FileName);
00092 
00094   itkGetStringMacro(Version);
00095 
00097   itkGetStringMacro(Header);
00098 
00099 protected:
00100   VTKPolyDataReader();
00101   ~VTKPolyDataReader() {}
00102   void PrintSelf(std::ostream& os, Indent indent) const;
00103 
00105   void GenerateData();
00106 
00109 private:
00110   VTKPolyDataReader(const Self&); // purposely not implemented
00111   void operator=(const Self&); // purposely not implemented
00112 
00113   std::string m_FileName;
00114   std::string m_Header;
00115   std::string m_Version;
00116 
00117 };
00118 
00119 } // end namespace itk
00120 
00121 #ifndef ITK_MANUAL_INSTANTIATION
00122 #include "itkVTKPolyDataReader.txx"
00123 #endif
00124 
00125 #endif //_itkVTKPolyDataReader_h
00126 

Generated at Fri Apr 16 20:01:40 2010 for ITK by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2000