// Class declaration and parents
mFile << "class /*BBTK_EXPORT*/ "<<mName<<"\n";
mFile << " : \n";
- mFile << " public "<<mParentBlackBox;
/*
if (mBB.nChildNode("inherits"))
if (mType == itkImageToImageFilter )
{
- mFile << ",\n public " << mItkParent <<"\n";
+ mFile << " public " << mItkParent <<",\n";
}
else if ( (mType == vtkImageAlgorithm) ||
(mType == vtkPolyDataAlgorithm) )
{
- mFile << ",\n public " << mVtkParent <<"\n";
- }
- else
- {
- mFile << "\n";
+ mFile << " public " << mVtkParent <<",\n";
}
+ mFile << " public "<<mParentBlackBox << "\n";
+
mFile << "{\n";
// Interface
Program: bbtk
Module: $RCSfile: bbtkBlackBox.cxx,v $
Language: C++
-Date: $Date: 2008/05/06 13:45:12 $
-Version: $Revision: 1.17 $
+Date: $Date: 2008/05/07 12:59:23 $
+Version: $Revision: 1.18 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See doc/license.txt or
bbtkDebugMessage("object",2,"##> BlackBox::Deleter(\""<<name<<"\") : deleting black box"<<std::endl);
b->bbDelete();
-
+
bbtkDebugMessage("object",2,"##> BlackBox::Deleter(\""<<name<<"\") : releasing descriptor ["<<desc.lock()<<"]"<<std::endl);
if (!desc.expired())
Program: bbtk
Module: $RCSfile: bbtkItkBlackBoxMacros.h,v $
Language: C++
- Date: $Date: 2008/05/07 07:26:50 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/05/07 12:59:23 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
//===========================================================================
#define BBTK_ITK_DELETE() \
void bbDelete() { \
- itkParent::UnRegister(); }
+ itkParent::UnRegister(); \
+ }
//===========================================================================
//===========================================================================
Program: bbtk
Module: $RCSfile: bbtkVtkBlackBoxMacros.h,v $
Language: C++
- Date: $Date: 2008/05/07 07:26:50 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2008/05/07 12:59:23 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
*/
#ifndef __bbtkVtkBlackBoxMacros_h__
#define __bbtkVtkBlackBoxMacros_h__
+#include <vtkGarbageCollector.h>
+
//===========================================================================
//============================================================================
//===========================================================================
#define BBTK_VTK_DELETE() \
void bbDelete() { \
- vtkParent::Delete(); }
+ bbGetOutputOut()->SetSource(NULL); \
+ /* vtkParent::SetReferenceCount(0);*/ \
+ bbmDescriptorPointer.reset(); \
+ vtkParent::Delete(); \
+ }
#define BBTK_VTK_BLACK_BOX_INTERFACE(CLASS,PARENTBLACKBOX,VTKPARENT) \
BBTK_BLACK_BOX_INTERFACE(CLASS,PARENTBLACKBOX); \
bbtkDebugMessage("process",1,"**> Processing ["<<bbGetFullName() \
<<"]"<<std::endl); \
vtkParent::Update(); \
- bbGetOutputOut()->SetSource(NULL); \
bbtkDebugMessage("process",2,"<** Processing ["<<bbGetFullName() \
<<"]"<<std::endl); \
}
// We need to disconnect the output image from its source or the
// vtk object will not be deleted as it
// will be referenced by its output image
- bbGetOutputOut()->SetSource(NULL);
+// bbGetOutputOut()->SetSource(NULL);
</PRE></process>
</blackbox>
Program: bbtk
Module: $RCSfile: bbwxvtkViewer3D.cxx,v $
Language: C++
- Date: $Date: 2008/04/18 12:59:53 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/05/07 12:59:23 $
+ 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
bbSetInputIn4(NULL);
bbSetInputIn5(NULL);
bbSetInputObs1(NULL);
+ bbSetInputObs2(NULL);
+ bbSetInputObs3(NULL);
+ bbSetInputObs4(NULL);
+ bbSetInputObs5(NULL);
bbSetOutputRenderer( NULL );
bbSetOutputInteractor( NULL );
}