]> Creatis software - bbtk.git/blobdiff - packages/vtk/src/bbvtkGetVectorElement.h
#3120 BBTK Bug New Normal - merge branch changestoITK3and4 FROM master
[bbtk.git] / packages / vtk / src / bbvtkGetVectorElement.h
index e73c571bdf3521c57d9b0d1ab5fa811b71e2745e..94903be9d375be680da86cf6c8a063ea333e6844 100644 (file)
@@ -39,6 +39,9 @@
 #include "bbtkAtomicBlackBox.h"
 #include "bbvtk_EXPORT.h"
 
+#include "vtkImageData.h"
+#include "vtkPolyData.h"
+
 namespace bbvtk
 {
   //=================================================================
@@ -56,11 +59,30 @@ namespace bbvtk
   };
   //=================================================================
 
+
+  typedef vtkImageData* ptrvtkImageData;
+  typedef vtkPolyData* ptrvtkPolyData;
+
+//  BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME( ptrvtkImageData ,"PtrvtkImageData");
+//  BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME( ptrvtkPolyData ,"PtrvtkPolyData");
+//  BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(ptrvtkImageData);
+//  BBTK_DEFINE_HUMAN_READABLE_VECTOR_TYPE_NAME(ptrvtkPolyData);
+
   //=================================================================
   // BlackBox description
   BBTK_BEGIN_DESCRIBE_TEMPLATE_BLACK_BOX(GetVectorElement,bbtk::AtomicBlackBox);
+
+  std::string humantypename;
+  if (bbtk::HumanTypeName<T>()==bbtk::HumanTypeName<vtkPolyData*>()) { humantypename="VtkPolyData"; }
+  if (bbtk::HumanTypeName<T>()==bbtk::HumanTypeName<vtkImageData*>()) { humantypename="VtkImageData"; }
+  
+  BBTK_NAME("GetVector"+humantypename+"Element");
+
+//  BBTK_NAME("GetVector"+bbtk::HumanTypeName<T>()+"Element");
+
 //  BBTK_NAME("Get"+bbtk::HumanTypeName<std::vector<T> >()+"Element");
-   BBTK_NAME("GetVectorVtkImageDataElement");
+//  BBTK_NAME("GetVector"+"T"+"Element");
+//   BBTK_NAME("GetVectorVtkImageDataElement");
   BBTK_AUTHOR("info-dev@creatis.insa-lyon.fr");
  // BBTK_DEFAULT_ADAPTOR();
   BBTK_DESCRIPTION("Gets the i-th element from the input vector ("+bbtk::TypeName<std::vector<T> >());