]> Creatis software - cpPlugins.git/blobdiff - lib/cpPlugins/Interface/Instances_itkMesh.cxx
...
[cpPlugins.git] / lib / cpPlugins / Interface / Instances_itkMesh.cxx
index 575db644e7a7123f5239947d133cf6514334886e..a7d3df458d6dcf8e62ee046f123e689303b6db5c 100644 (file)
@@ -1,14 +1,22 @@
-#undef ITK_MANUAL_INSTANTIATION
+#include <cpPlugins/Interface/Macros.h>
+
 #include <itkMesh.h>
 #include <itkQuadEdgeMesh.h>
 
-template class itk::Mesh< float, 2 >;
-template class itk::Mesh< float, 3 >;
-template class itk::Mesh< double, 2 >;
-template class itk::Mesh< double, 3 >;
-template class itk::QuadEdgeMesh< float, 2 >;
-template class itk::QuadEdgeMesh< float, 3 >;
-template class itk::QuadEdgeMesh< double, 2 >;
-template class itk::QuadEdgeMesh< double, 3 >;
+// -------------------------------------------------------------------------
+#define cpPlugins_Mesh_Export( N, T, D )                                \
+  cpPlugins_TEMPLATE_EXPORT(                                            \
+    2(class cpPlugins_Interface_EXPORT itk::N< T, D >)                  \
+    )
+
+// -------------------------------------------------------------------------
+cpPlugins_Mesh_Export( Mesh, float, 2 );
+cpPlugins_Mesh_Export( Mesh, double, 2 );
+cpPlugins_Mesh_Export( Mesh, float, 3 );
+cpPlugins_Mesh_Export( Mesh, double, 3 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, float, 2 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, double, 2 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, float, 3 );
+cpPlugins_Mesh_Export( QuadEdgeMesh, double, 3 );
 
 // eof - $RCSfile$