X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=kernel%2Fsrc%2FbbtkVtkBlackBoxMacros.h;h=6453a7070f63f4b6fa45eaada4f0c437f8614aee;hb=db2adec4da5413691b7430ee1fa2354b9e53d312;hp=bc2400fb20a1b1811fba91a138d287dc62fbcb4a;hpb=a32025c531a0e20e967dc2ba3e0817f6932061b1;p=bbtk.git diff --git a/kernel/src/bbtkVtkBlackBoxMacros.h b/kernel/src/bbtkVtkBlackBoxMacros.h index bc2400f..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 12:59:23 $ - Version: $Revision: 1.3 $ + 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,7 +23,9 @@ */ #ifndef __bbtkVtkBlackBoxMacros_h__ #define __bbtkVtkBlackBoxMacros_h__ -#include +//#include +//#include +#include //=========================================================================== @@ -37,16 +39,51 @@ #define BBTK_VTK_DELETE() \ void bbDelete() { \ bbGetOutputOut()->SetSource(NULL); \ - /* vtkParent::SetReferenceCount(0);*/ \ - bbmDescriptorPointer.reset(); \ 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(\""<