]> Creatis software - cpPlugins.git/blob - lib/cpPlugins/Interface/Mesh.hxx
Widget integration (step 3/6). WARNING: IT DOES NOT COMPILE YET
[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 SetITK( itk::Object* object )
34 {
35   std::cerr << "SetITKMesh: TODO" << std::endl;
36   std::exit( 1 );
37 }
38
39 #endif // __CPPLUGINS__INTERFACE__MESH__HXX__
40
41 // eof - $RCSfile$