X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2Fcpm%2FVTK%2FOpenGLMeshMapper.h;fp=lib%2Fcpm%2FVTK%2FOpenGLMeshMapper.h;h=0000000000000000000000000000000000000000;hb=6d6bf5d5e3b9318a507216f2f231c32299d1a941;hp=e8b5aecc57803404bab43080dd9a7caf5b6e8e3f;hpb=de28025e5f1835fba69cb0a6666d02f0b7daec0d;p=cpMesh.git diff --git a/lib/cpm/VTK/OpenGLMeshMapper.h b/lib/cpm/VTK/OpenGLMeshMapper.h deleted file mode 100644 index e8b5aec..0000000 --- a/lib/cpm/VTK/OpenGLMeshMapper.h +++ /dev/null @@ -1,84 +0,0 @@ -#ifndef __CPM__VTK__OPENGLMESHMAPPER__H__ -#define __CPM__VTK__OPENGLMESHMAPPER__H__ - -#include - -/* - #include - #include -*/ - -#include -#include - -#include - -namespace cpm -{ - namespace VTK - { - /** - */ - template< class M > - class OpenGLMeshMapper - : public MeshMapper< M > - { - public: - typedef OpenGLMeshMapper Self; - vtkTypeMacro( OpenGLMeshMapper, MeshMapper< M > ); - - typedef typename Superclass::TMesh TMesh; - typedef typename Superclass::TPoint TPoint; - typedef typename Superclass::TVector TVector; - typedef typename Superclass::TScalar TScalar; - - protected: - typedef unsigned int TIndex; - typedef typename M::CellType TCell; - typedef typename M::CellsContainer TCellsContainer; - typedef typename TCellsContainer::ConstIterator TCellIt; - - public: - virtual const char* GetNameOfClass( ) const - { return( "cpm::VTK::OpenGLMeshMapper" ); } - static Self* New( ); - - virtual void RenderPiece( vtkRenderer* aren, vtkActor* act ); - virtual void ReleaseGraphicsResources( vtkWindow* win ); - virtual int Draw( vtkRenderer* aren, vtkActor* act ); - - protected: - OpenGLMeshMapper( ); - virtual ~OpenGLMeshMapper( ); - - bool _ConfigureOpenGL( ); - - private: - // Purposely not implemented - OpenGLMeshMapper( const Self& other ); - Self& operator=( const Self& other ); - - protected: - vtkIdType TotalCells; - // TODO: vtkSmartPointer< vtkOpenGLTexture > InternalColorTexture; - - bool FirstRendering; - - bool VBOSupported; - unsigned int VBOID1, VBOID2; - - std::vector< unsigned int > Sizes; - std::vector< TIndex > Indices; - long IndexElementType; - long ElementValueType; - }; - - } // ecapseman - -} // ecapseman - -//#include - -#endif // __CPM__VTK__OPENGLMESHMAPPER__H__ - -// eof - $RCSfile$