{
mFile << " public " << mItkParent <<",\n";
}
- else if ( (mType == vtkImageAlgorithm) ||
- (mType == vtkPolyDataAlgorithm) )
- {
- mFile << " public " << mVtkParent <<",\n";
- }
+//EED 15mai2009
+// else if ( (mType == vtkImageAlgorithm) ||
+// (mType == vtkPolyDataAlgorithm) )
+// {
+// mFile << " public " << mVtkParent <<",\n";
+// }
mFile << " public "<<mParentBlackBox << "\n";
<< mVtkParent
<< ");\n";
}
+
// Default
else
{
mFile << "}\n";
}
- // User constr / copy constr / destr implementation
+
+ // User Set Default Values
mFile <<"void "<<mName<<"::bbUserSetDefaultValues()"<<std::endl;
mFile << "{"<<std::endl;
- mFile << mUserSetDefaultValues << std::endl;
+ if ( (mType == vtkImageAlgorithm) || (mType == vtkPolyDataAlgorithm) )
+ {
+ mFile << " mVtkObject = NULL;\n";
+ }
+ mFile << mUserSetDefaultValues << std::endl;
mFile << "}" << std::endl;
+ // User Initialize Processing
mFile <<"void "<<mName<<"::bbUserInitializeProcessing()"
<<std::endl;
mFile << "{"<<std::endl;
- mFile << mUserInitializeProcessing << std::endl;
+ if ( (mType == vtkImageAlgorithm) || (mType == vtkPolyDataAlgorithm) )
+ {
+ mFile << " mVtkObject = "<< mVtkParent <<"::New();\n";
+ }
+ mFile << mUserInitializeProcessing << std::endl;
mFile << "}" << std::endl;
+ // User Finalize Processing
mFile <<"void "<<mName<<"::bbUserFinalizeProcessing()"<<std::endl;
mFile << "{"<<std::endl;
- mFile << mUserFinalizeProcessing << std::endl;
+ if ( (mType == vtkImageAlgorithm) || (mType == vtkPolyDataAlgorithm) )
+ {
+ mFile << " mVtkObject->Delete();\n";
+ }
+ mFile << mUserFinalizeProcessing << std::endl;
mFile << "}" << std::endl;
MESSAGE ( STATUS "=======================================")
MESSAGE ( STATUS "")
#-----------------------------------------------------------------------------
-
+
#-----------------------------------------------------------------------------
# 11/12/08 : BBTK IS NOW BASED ON crea
SET(CREA_VERBOSE_CMAKE TRUE)
#ELSE(BBTK_USE_SHIPPED_BOOST)
SET(USE_BOOST ON CACHE BOOL "Use boost C++ library" FORCE)
- SET(BBTK_BOOST_LIBRARIES
- boost_signals
- )
+# SET(BBTK_BOOST_LIBRARIES
+# boost_signals
+# )
#ENDIF(BBTK_USE_SHIPPED_BOOST)
ENDIF(BBTK_KERNEL OR BBTK_CORE_PACKAGE)