X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fcpm%2FIO%2FWaveFrontOBJReader.h;fp=lib%2Fcpm%2FIO%2FWaveFrontOBJReader.h;h=0000000000000000000000000000000000000000;hb=6d6bf5d5e3b9318a507216f2f231c32299d1a941;hp=42002d2307e05fe1378887c3691edb72b21d3657;hpb=de28025e5f1835fba69cb0a6666d02f0b7daec0d;p=cpMesh.git diff --git a/lib/cpm/IO/WaveFrontOBJReader.h b/lib/cpm/IO/WaveFrontOBJReader.h deleted file mode 100644 index 42002d2..0000000 --- a/lib/cpm/IO/WaveFrontOBJReader.h +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef __CPM__IO__WAVEFRONTOBJREADER__H__ -#define __CPM__IO__WAVEFRONTOBJREADER__H__ - -#include -#include -#include -#include -#include - -namespace cpm -{ - namespace IO - { - /** - * \class WaveFrontOBJReader - * \brief - * Reads a wavefront OBJ file and create an itkMesh. - * - * Caveat1: itkWaveFrontOBJReader will read only vertices and faces. - * Normal, parameters and textures vectors are ignored. - * - */ - template< typename M > - class WaveFrontOBJReader - : public itk::MeshSource< M > - { - public: - typedef WaveFrontOBJReader Self; - typedef itk::MeshSource< M > Superclass; - typedef itk::SmartPointer< Self > Pointer; - typedef itk::SmartPointer< const Self > ConstPointer; - - typedef M MeshType; - typedef typename M::MeshTraits MeshTraits; - typedef typename M::PointType PointType; - typedef typename MeshTraits::PixelType PixelType; - typedef typename M::Pointer MeshPointer; - typedef typename M::CellTraits CellTraits; - typedef typename M::CellIdentifier CellIdentifier; - typedef typename M::CellType CellType; - typedef typename M::CellAutoPointer CellAutoPointer; - typedef typename M::PointIdentifier PointIdentifier; - typedef typename CellTraits::PointIdIterator PointIdIterator; - typedef typename M::PointsContainerPointer PointsContainerPointer; - typedef typename M::PointsContainer PointsContainer; - - typedef itk::PolygonCell< CellType > TPolygonCell; - - public: - itkNewMacro( Self ); - itkTypeMacro( WaveFrontOBJReader, itkMeshSource ); - - itkSetStringMacro( FileName ); - itkGetStringMacro( FileName ); - - protected: - WaveFrontOBJReader( ); - virtual ~WaveFrontOBJReader( ); - - virtual void GenerateData( ); - - private: - // Purposely not implemented - WaveFrontOBJReader( const Self& ); - Self& operator=( const Self & ); - - protected: - std::string m_FileName; - }; - - } // ecapseman - -} // ecapseman - -#include - -#endif // __CPM__IO__WAVEFRONTOBJREADER__H__ - -// eof - $RCSfile$