X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FIO%2FWaveFrontOBJReader.h;fp=lib%2FcpExtensions%2FIO%2FWaveFrontOBJReader.h;h=0000000000000000000000000000000000000000;hb=98390bcac544f7f3a6762ce812dda491213d6f13;hp=4cd744695439bcf1d6b26e3c1c8f408850221ed6;hpb=b6c7e73ebcce23619daced67f85d9e1364b33f30;p=cpPlugins.git diff --git a/lib/cpExtensions/IO/WaveFrontOBJReader.h b/lib/cpExtensions/IO/WaveFrontOBJReader.h deleted file mode 100644 index 4cd7446..0000000 --- a/lib/cpExtensions/IO/WaveFrontOBJReader.h +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__H__ -#define __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__H__ - -#include -#include -#include -#include -#include - -namespace cpExtensions -{ - 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 - -#ifndef ITK_MANUAL_INSTANTIATION -#include -#endif // ITK_MANUAL_INSTANTIATION - -#endif // __CPEXTENSIONS__IO__WAVEFRONTOBJREADER__H__ - -// eof - $RCSfile$