if (bbGetInputActive()==false)
{
-printf("EED MagicBox::bbComputePostProcessStatus 1\n");
// Update the output statuses
IOStatus new_output_status = UPTODATE;
OutputConnectorMapType::iterator o;
{
if (bbGetInputActive()==true)
{
-printf("EED MagicBox::DoProcess Start %p\n", this);
bbSetOutputOut( bbGetInputIn() );
-printf("EED MagicBox::DoProcess End\n");
} // Active
- else
- {
- printf("EED MagicBox::DoProcess FALSE\n");
- }
}
BBTK_ADD_BLACK_BOX_TO_PACKAGE(std,MagicBox);
#include "bbvtkGetVectorElement.h"
#include "bbvtkPackage.h"
-#include "vtkImageData.h"
+
namespace bbvtk
{
//====================================================================
// Add the specialized boxes to the package
-typedef vtkImageData * ptrvtkImageData;
BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(vtk,GetVectorElement,ptrvtkImageData);
+BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(vtk,GetVectorElement,ptrvtkPolyData);
//====================================================================
#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> >());