]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.hxx
9163971ad774f73f8810b3bd8bdbdcc505b4549a
[cpPlugins.git] / lib / cpPlugins / Interface / Mesh.hxx
1 #ifndef __CPPLUGINS__INTERFACE__MESH__HXX__
2 #define __CPPLUGINS__INTERFACE__MESH__HXX__
3
4 #include <cpPlugins/Interface/Macros.h>
5
6 #include <itkMesh.h>
7 #include <itkQuadEdgeMesh.h>
8
9 // -------------------------------------------------------------------------
10 #define cpPlugins_Mesh_Import( N, T, D )                                \
11   cpPlugins_TEMPLATE_IMPORT(                                            \
12     2(class cpPlugins_Interface_EXPORT itk::N< T, D >)                  \
13     )
14
15 // -------------------------------------------------------------------------
16 cpPlugins_Mesh_Import( Mesh, float, 2 );
17 cpPlugins_Mesh_Import( Mesh, double, 2 );
18 cpPlugins_Mesh_Import( Mesh, float, 3 );
19 cpPlugins_Mesh_Import( Mesh, double, 3 );
20 cpPlugins_Mesh_Import( QuadEdgeMesh, float, 2 );
21 cpPlugins_Mesh_Import( QuadEdgeMesh, double, 2 );
22 cpPlugins_Mesh_Import( QuadEdgeMesh, float, 3 );
23 cpPlugins_Mesh_Import( QuadEdgeMesh, double, 3 );
24
25 // -------------------------------------------------------------------------
26 template< class M >
27 void cpPlugins::Interface::Mesh::
28 SetITKMesh( itk::DataObject* object )
29 {
30   std::cerr << "SetITKMesh: TODO" << std::endl;
31   std::exit( 1 );
32 }
33
34 // -------------------------------------------------------------------------
35 template< class M >
36 M* cpPlugins::Interface::Mesh::
37 GetITKMesh( )
38 {
39   std::cerr << "GetITKMesh: TODO" << std::endl;
40   std::exit( 1 );
41   return( NULL );
42 }
43
44 // -------------------------------------------------------------------------
45 template< class M >
46 const M* cpPlugins::Interface::Mesh::
47 GetITKMesh( ) const
48 {
49   std::cerr << "GetITKMesh (const): TODO" << std::endl;
50   std::exit( 1 );
51   return( NULL );
52 }
53
54 #endif // __CPPLUGINS__INTERFACE__MESH__HXX__
55
56 // eof - $RCSfile$