#include "bbtkAtomicBlackBox.h"
#include "bbvtk_EXPORT.h"
+#include "vtkImageData.h"
+#include "vtkPolyData.h"
+
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> >());