(mType == vtkPolyDataAlgorithm) )
{
mFile << " typedef " <<mVtkParent <<" vtkParent;"<<std::endl;
- mFile << " void bbDelete() { vtkParent::Delete(); }"<<std::endl;
+ mFile << " BBTK_VTK_DELETE(vtkParent);"<<std::endl;
}
for (i=mTypedef.begin(); i!=mTypedef.end(); ++i)
{
Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBoxMacros.h,v $
Language: C++
- Date: $Date: 2008/04/24 10:24:58 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/05/06 07:36:42 $
+ Version: $Revision: 1.8 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
/*bbSetModifiedStatus();*/ }
//===========================================================================
-
+#define BBTK_VTK_DELETE(VTKPARENT) \
+ void bbDelete() { VTKPARENT::Delete(); }
//===========================================================================
/// EOF
Program: bbtk
Module: $RCSfile: bbvtkMarchingCubes.h,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:52 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/05/06 07:36:42 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void DoProcess() { vtkMarchingCubes::Update(); }
// Overload bbDelete to handle vtk reference counting
- void bbDelete() { Delete(); }
+ BBTK_VTK_DELETE(vtkMarchingCubes);
+ //void bbDelete() { Delete(); }
};
//=======================================================================
Update();
</PRE></process>
-</blackbox>
-
+/* bbGetOutputOut()->SetSource(NULL);*/
+<serconstructor><PRE>
+std::cout << "$$$$$$ constructing $$$$$"<<std::endl;
+</PRE></serconstructor>
+<serdestructor><PRE>
+std::cout << "$$$$$$ deleting $$$$$"<<std::endl;
+</PRE></serdestructor>
+</blackbox>
+