X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkGetVectorElement.h;fp=packages%2Fvtk%2Fsrc%2FbbvtkGetVectorElement.h;h=94903be9d375be680da86cf6c8a063ea333e6844;hb=427d8c0ac838ab789a57b28f62a7f9ff243e7b60;hp=e73c571bdf3521c57d9b0d1ab5fa811b71e2745e;hpb=c2d2ccbc4bac635e5d0b802d9830efd94b060dab;p=bbtk.git diff --git a/packages/vtk/src/bbvtkGetVectorElement.h b/packages/vtk/src/bbvtkGetVectorElement.h index e73c571..94903be 100644 --- a/packages/vtk/src/bbvtkGetVectorElement.h +++ b/packages/vtk/src/bbvtkGetVectorElement.h @@ -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()==bbtk::HumanTypeName()) { humantypename="VtkPolyData"; } + if (bbtk::HumanTypeName()==bbtk::HumanTypeName()) { humantypename="VtkImageData"; } + + BBTK_NAME("GetVector"+humantypename+"Element"); + +// BBTK_NAME("GetVector"+bbtk::HumanTypeName()+"Element"); + // BBTK_NAME("Get"+bbtk::HumanTypeName >()+"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 >());