]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Mesh.hxx
XML IO added. Workspace singleton added to simplify pipeline definition and execution.
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.hxx
index 980321dd76521581cc510cb5199e5f353853fb67..6de611e2faa1fab2b533972521e16a9bc4344ff8 100644 (file)
@@ -1,33 +1,37 @@
 #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__