#ifndef __CPPLUGINS__INTERFACE__MESH__H__
#define __CPPLUGINS__INTERFACE__MESH__H__
-#include <map>
-#include <string>
-#include <itkProcessObject.h>
#include <cpPlugins/Interface/cpPlugins_Interface_Export.h>
#include <cpPlugins/Interface/DataObject.h>
-class vtkMapper;
+#include <vtkSmartPointer.h>
+#include <vtkActor.h>
+#include <vtkPolyDataMapper.h>
namespace cpPlugins
{
: public DataObject
{
public:
- typedef Mesh Self;
- typedef DataObject Superclass;
+ typedef Mesh Self;
+ typedef DataObject Superclass;
+ typedef itk::SmartPointer< Self > Pointer;
+ typedef itk::SmartPointer< const Self > ConstPointer;
public:
- Mesh( );
- virtual ~Mesh( );
+ itkNewMacro( Self );
+ itkTypeMacro( Mesh, DataObject );
+
+ public:
+ template< class M >
+ inline void SetITK( itk::Object* object );
- virtual std::string GetClassName( ) const;
- virtual void SetDataObject( itk::DataObject* dobj );
+ virtual void SetVTK( vtkObject* mesh );
- vtkMapper* GetVTKMapper( ) const;
+ virtual void CreateVTKActor( );
+ virtual vtkActor* GetVTKActor( );
+ virtual const vtkActor* GetVTKActor( ) const;
protected:
- template< class M >
- void _Map( );
+ Mesh( );
+ virtual ~Mesh( );
+
+ private:
+ // Purposely not implemented
+ Mesh( const Self& );
+ Self& operator=( const Self& );
protected:
- /*
- itk::ProcessObject::Pointer m_Mesh2VTKMeshData;
- vtkMeshData* m_VTKMeshData;
- */
- vtkMapper* m_Mapper;
+ vtkSmartPointer< vtkActor > m_Actor;
+ vtkSmartPointer< vtkPolyDataMapper > m_Mapper;
};
} // ecapseman
} // ecapseman
+#include <cpPlugins/Interface/Mesh.hxx>
+
#endif // __CPPLUGINS__INTERFACE__MESH__H__
// eof - $RCSfile$