#ifndef __CPPLUGINS__INTERFACE__MESH__HXX__
#define __CPPLUGINS__INTERFACE__MESH__HXX__
+#include <itkMesh.h>
+#include <itkQuadEdgeMesh.h>
+
// -------------------------------------------------------------------------
-template< class M >
-void cpPlugins::Interface::Mesh::
-SetITKMesh( itk::DataObject* object )
-{
- std::cerr << "SetITKMesh: TODO" << std::endl;
- std::exit( 1 );
-}
+#define cpPlugins_Mesh_Import( N, T, D ) \
+ cpPlugins_TEMPLATE_IMPORT( \
+ 2(class cpPlugins_Interface_EXPORT itk::N< T, D >) \
+ )
// -------------------------------------------------------------------------
-template< class M >
-M* cpPlugins::Interface::Mesh::
-GetITKMesh( )
-{
- std::cerr << "GetITKMesh: TODO" << std::endl;
- std::exit( 1 );
- return( NULL );
-}
+
+#ifndef cpPlugins_Interface_EXPORTS
+
+cpPlugins_Mesh_Import( Mesh, float, 2 );
+cpPlugins_Mesh_Import( Mesh, double, 2 );
+cpPlugins_Mesh_Import( Mesh, float, 3 );
+cpPlugins_Mesh_Import( Mesh, double, 3 );
+cpPlugins_Mesh_Import( QuadEdgeMesh, float, 2 );
+cpPlugins_Mesh_Import( QuadEdgeMesh, double, 2 );
+cpPlugins_Mesh_Import( QuadEdgeMesh, float, 3 );
+cpPlugins_Mesh_Import( QuadEdgeMesh, double, 3 );
+
+#endif // cpPlugins_Interface_EXPORTS
// -------------------------------------------------------------------------
template< class M >
-const M* cpPlugins::Interface::Mesh::
-GetITKMesh( ) const
+void cpPlugins::Interface::Mesh::
+SetITK( itk::Object* object )
{
- std::cerr << "GetITKMesh (const): TODO" << std::endl;
+ std::cerr << "SetITKMesh: TODO" << std::endl;
std::exit( 1 );
- return( NULL );
}
#endif // __CPPLUGINS__INTERFACE__MESH__HXX__