X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkVtkBlackBoxMacros.h;h=6453a7070f63f4b6fa45eaada4f0c437f8614aee;hb=db2adec4da5413691b7430ee1fa2354b9e53d312;hp=7f5f0d73e61a0b6158638367a2fd9cc90ae12ed0;hpb=19a1e7a2f298bfdfee13893f98272de4e6d0f7f2;p=bbtk.git diff --git a/kernel/src/bbtkVtkBlackBoxMacros.h b/kernel/src/bbtkVtkBlackBoxMacros.h index 7f5f0d7..6453a70 100644 --- a/kernel/src/bbtkVtkBlackBoxMacros.h +++ b/kernel/src/bbtkVtkBlackBoxMacros.h @@ -3,8 +3,8 @@ Program: bbtk Module: $RCSfile: bbtkVtkBlackBoxMacros.h,v $ Language: C++ - Date: $Date: 2008/05/07 07:26:50 $ - Version: $Revision: 1.2 $ + Date: $Date: 2008/07/29 07:31:13 $ + Version: $Revision: 1.6 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,6 +23,10 @@ */ #ifndef __bbtkVtkBlackBoxMacros_h__ #define __bbtkVtkBlackBoxMacros_h__ +//#include +//#include +#include + //=========================================================================== //============================================================================ @@ -34,13 +38,52 @@ //=========================================================================== #define BBTK_VTK_DELETE() \ void bbDelete() { \ - vtkParent::Delete(); } + bbGetOutputOut()->SetSource(NULL); \ + vtkParent::Delete(); \ + } + +// bbmDescriptorPointer.reset(); +//=========================================================================== + +//=========================================================================== +#define BBTK_VTK_NEW(CLASS,VTKPARENT) \ + inline static Pointer New(const std::string& name) \ + { \ + vtkDebugLeaks::ConstructClass(#VTKPARENT); \ + bbtkDebugMessage("object",1,"##> "<<#CLASS \ + <<"::New(\""< "<<#CLASS \ + <<"::bbClone(\""< Processing ["<SetSource(NULL); \ bbtkDebugMessage("process",2,"<** Processing ["<