]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.hxx
...
[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
17 #ifndef cpPlugins_Interface_EXPORTS
18
19 cpPlugins_Mesh_Import( Mesh, float, 2 );
20 cpPlugins_Mesh_Import( Mesh, double, 2 );
21 cpPlugins_Mesh_Import( Mesh, float, 3 );
22 cpPlugins_Mesh_Import( Mesh, double, 3 );
23 cpPlugins_Mesh_Import( QuadEdgeMesh, float, 2 );
24 cpPlugins_Mesh_Import( QuadEdgeMesh, double, 2 );
25 cpPlugins_Mesh_Import( QuadEdgeMesh, float, 3 );
26 cpPlugins_Mesh_Import( QuadEdgeMesh, double, 3 );
27
28 #endif // cpPlugins_Interface_EXPORTS
29
30 // -------------------------------------------------------------------------
31 template< class M >
32 void cpPlugins::Interface::Mesh::
33 SetITKMesh( itk::DataObject* object )
34 {
35   std::cerr << "SetITKMesh: TODO" << std::endl;
36   std::exit( 1 );
37 }
38
39 // -------------------------------------------------------------------------
40 template< class M >
41 M* cpPlugins::Interface::Mesh::
42 GetITKMesh( )
43 {
44   std::cerr << "GetITKMesh: TODO" << std::endl;
45   std::exit( 1 );
46   return( NULL );
47 }
48
49 // -------------------------------------------------------------------------
50 template< class M >
51 const M* cpPlugins::Interface::Mesh::
52 GetITKMesh( ) const
53 {
54   std::cerr << "GetITKMesh (const): TODO" << std::endl;
55   std::exit( 1 );
56   return( NULL );
57 }
58
59 #endif // __CPPLUGINS__INTERFACE__MESH__HXX__
60
61 // eof - $RCSfile$