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: 2007/01/22 19:07:09 $
00007   Version:   $Revision: 1.3 $
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 
00035 template <class TOutputMesh>
00036 class VTKPolyDataReader : public MeshSource<TOutputMesh>
00037 {
00038 public:
00040   typedef VTKPolyDataReader         Self;
00041   typedef MeshSource<TOutputMesh>   Superclass;
00042   typedef SmartPointer<Self>        Pointer;
00043   typedef SmartPointer<const Self>  ConstPointer;
00044 
00046   itkNewMacro(Self);
00047 
00049   itkTypeMacro(VTKPolyDataReader, MeshSource);
00050 
00052   typedef TOutputMesh                          OutputMeshType;
00053   typedef typename OutputMeshType::MeshTraits  MeshTraits;
00054   typedef typename OutputMeshType::PointType   PointType;
00055   typedef typename MeshTraits::PixelType       PixelType;
00056 
00058   typedef typename OutputMeshType::Pointer     OutputMeshPointer;
00059   typedef typename OutputMeshType::CellTraits  CellTraits;
00060 
00061   typedef typename OutputMeshType::PointsContainerPointer
00062     PointsContainerPointer;
00063   typedef typename OutputMeshType::PointsContainer
00064     PointsContainer;
00065 
00067   typedef CellInterface<PixelType, CellTraits> CellInterfaceType;
00068   typedef TriangleCell<CellInterfaceType>      TriangleCellType;
00069 
00070   typedef typename TriangleCellType::SelfAutoPointer
00071     TriangleCellAutoPointer;
00072   typedef typename TriangleCellType::CellAutoPointer
00073     CellAutoPointer;
00074 
00075   typedef std::pair<unsigned long,unsigned long>     IndexPairType;
00076   typedef MapContainer<IndexPairType, unsigned long> PointMapType;
00077   typedef typename PointType::VectorType             VectorType;
00078 
00084   itkSetStringMacro(FileName);
00085   itkGetStringMacro(FileName);
00087 
00088 protected:
00089   VTKPolyDataReader();
00090   ~VTKPolyDataReader() {}
00091   void PrintSelf(std::ostream& os, Indent indent) const;
00092 
00094   void GenerateData();
00095 
00097   std::string m_FileName;
00098 
00099 private:
00100   VTKPolyDataReader(const Self&); // purposely not implemented
00101   void operator=(const Self&); // purposely not implemented
00102 };
00103 
00104 } // end namespace itk
00105 
00106 #ifndef ITK_MANUAL_INSTANTIATION
00107 #include "itkVTKPolyDataReader.txx"
00108 #endif
00109 
00110 #endif //_itkVTKPolyDataReader_h
00111 

Generated at Mon Mar 12 03:28:19 2007 for ITK by doxygen 1.5.1 written by Dimitri van Heesch, © 1997-2000