//============================================================================
+
+
//============================================================================
/// Declares the standard interface of a AtomicBlackBox
/// (ctor, New, descriptor related methods)
+
+//EED 2017-08-29 itk3to4
+/*
+ std::string GetObjectName() const \
+*/
+
#define BBTK_BLACK_BOX_INTERFACE_INTERNAL(CLASS,PARENT) \
BBTK_OBJECT_MINIMAL_INTERFACE; \
private: \
bool allocate_connectors = true); \
~CLASS(); \
public: \
- std::string GetObjectName() const \
+ std::string GetObjectName() \
{ return std::string(#CLASS)+std::string(" '") \
+bbGetNameWithParent()+std::string("'"); } \
inline static Pointer New(const std::string& name) \
<<bbtk::TypeName<T>()<<">()"<<std::endl);
typedef BinaryThresholdImageFilter<T> FilterType;
- typename FilterType::Pointer f = FilterType::New("Temp");
- typedef T* TPointer;
- f->bbSetInputIn( this->bbGetInputIn().get < TPointer > () );
- f->bbSetInputLowerThreshold ( (typename T::PixelType)
- this->bbGetInputLowerThreshold() );
- f->bbSetInputUpperThreshold ( (typename T::PixelType)
- this->bbGetInputUpperThreshold() );
- f->bbSetInputInsideValue ( (typename T::PixelType)
- this->bbGetInputInsideValue() );
- f->bbSetInputOutsideValue ( (typename T::PixelType)
- this->bbGetInputOutsideValue() );
+ typename FilterType::Pointer f
+
+ = FilterType::New("Temp");
+
+/*
+ typedef T* TPointer;
+ f->bbSetInputIn( this->bbGetInputIn().get < TPointer > () );
+ f->bbSetInputLowerThreshold ( (typename T::PixelType)this->bbGetInputLowerThreshold() );
+ f->bbSetInputUpperThreshold ( (typename T::PixelType)this->bbGetInputUpperThreshold() );
+ f->bbSetInputInsideValue ( (typename T::PixelType)this->bbGetInputInsideValue() );
+ f->bbSetInputOutsideValue ( (typename T::PixelType)this->bbGetInputOutsideValue() );
f->bbExecute();
f->bbGetOutputOut()->Register();
this->bbSetOutputOut( f->bbGetOutputOut() );
+*/
bbtkDebugDecTab("Core",9);
}