]> Creatis software - bbtk.git/commitdiff
#3121 BBTK Bug New Normal - branch changestoITK3and4
authorEduardo DAVILA <davila@localhost.localdomain>
Tue, 29 Aug 2017 20:07:21 +0000 (22:07 +0200)
committerEduardo DAVILA <davila@localhost.localdomain>
Tue, 29 Aug 2017 20:07:21 +0000 (22:07 +0200)
kernel/src/bbtkAtomicBlackBoxMacros.h
packages/itk/src/bbitkBinaryThresholdImageFilter.h

index 731ceed4518f5dc01b720e1cbc84d37a13de0628..a57dc65536774b764d214221164e7a2b90744f1b 100644 (file)
   
 //============================================================================
 
+
+
 //============================================================================
 /// 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:                                                             \
@@ -91,7 +99,7 @@
        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)                   \
index dcc7ecd627aed8e44e350455c230c35d2e15242f..ed7167bcb021322876ad745579d8f817b175e0df 100644 (file)
@@ -209,20 +209,21 @@ namespace bbitk
                        <<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);
   }