mFile << "virtual void bbUserConstructor();"<<std::endl;
mFile << "/// User callback called in the box copy constructor"<<std::endl;
- mFile << "virtual void bbUserCopyConstructor();"<<std::endl;
+ mFile << "virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);"<<std::endl;
mFile << "/// User callback called in the box destructor"<<std::endl;
mFile << "virtual void bbUserDestructor();"<<std::endl;
mFile << "//=================================================================="<<std::endl;
mFile << mUserConstructor << std::endl;
mFile << "}" << std::endl;
- mFile <<"void "<<mName<<"::bbUserCopyConstructor()"<<std::endl;
+ mFile <<"void "<<mName<<"::bbUserCopyConstructor(bbtk::BlackBox::Pointer)"
+ <<std::endl;
mFile << "{"<<std::endl;
//mFile<<"bbtkDebugMessage(\"Kernel\",9,\""<<mName<<::bbUserCopyConstructor()"<<std::endl);"<<std::endl;
mFile << mUserCopyConstructor << std::endl;
Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/11/13 14:46:43 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2008/11/25 11:17:13 $
+ Version: $Revision: 1.10 $
=========================================================================*/
/* ---------------------------------------------------------------------
Data data,
bool setModified )
{
- bbtkDebugMessageInc("Data",7,
+ bbtkDebugMessageInc("data",7,
"AtomicBlackBox::bbSetInput(\""<<name<<"\",data) ["
<<bbGetFullName()<<"]"
<<std::endl);
bbSetModifiedStatus();
}
- bbtkDebugDecTab("Data",7);
+ bbtkDebugDecTab("data",7);
}
//=========================================================================
bool setModified
)
{
- bbtkDebugMessageInc("Data",7,
+ bbtkDebugMessageInc("data",7,
"AtomicBlackBox::bbBruteForceSetInputPointer(\""
<<name<<"\",data) ["
<<bbGetFullName()<<"]"
bbSetModifiedStatus();
}
- bbtkDebugDecTab("Data",7);
+ bbtkDebugDecTab("data",7);
}
//=========================================================================
Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBox.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:12 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/11/25 11:17:13 $
+ Version: $Revision: 1.6 $
=========================================================================*/
/* ---------------------------------------------------------------------
/// User callback called in the box contructor
virtual void bbUserConstructor() {}
/// User callback called in the box copy constructor
- virtual void bbUserCopyConstructor() {}
+ virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer) {}
/// User callback called in the box destructor
virtual void bbUserDestructor() {}
//==================================================================
Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBoxGetSetFunctor.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:12 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/11/25 11:17:13 $
+ Version: $Revision: 1.5 $
=========================================================================*/
/* ---------------------------------------------------------------------
AtomicBlackBoxTGetFunctor(GetMethodPointerType g) :
mGetMethodPointer(g)
{
- bbtkDebugMessage("Data",9,"AtomicBlackBoxTGetFunctor<"<<
+ bbtkDebugMessage("data",9,"AtomicBlackBoxTGetFunctor<"<<
TypeName<UBB>()<<","<<
TypeName<T>()<<","<<
TypeName<TRETURN>()<<
/// Concrete application of the Get method of object o
Data Get(AtomicBlackBox* o)
{
- bbtkDebugMessage("Data",9,"AtomicBlackBoxTGetFunctor<"<<
+ bbtkDebugMessage("data",9,"AtomicBlackBoxTGetFunctor<"<<
TypeName<UBB>()<<","<<
TypeName<T>()<<","<<
TypeName<TRETURN>()<<
AtomicBlackBoxTSetFunctor(SetMethodPointerType s) :
mSetMethodPointer(s)
{
- bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetFunctor<"<<
+ bbtkDebugMessage("data",9,"AtomicBlackBoxTSetFunctor<"<<
TypeName<UBB>()<<","<<
TypeName<T>()<<","<<
TypeName<TACCESS>()<<
/// Concrete application of the Set method of object o
void Set(AtomicBlackBox* o, const Data& d)
{
- bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetfunctor<"<<
+ bbtkDebugMessage("data",9,"AtomicBlackBoxTSetfunctor<"<<
TypeName<UBB>()<<","<<
TypeName<T>()<<","<<
TypeName<TACCESS>()<<
AtomicBlackBoxTSetFunctor(SetMethodPointerType s) :
mSetMethodPointer(s)
{
- bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetFunctor<"<<
+ bbtkDebugMessage("data",9,"AtomicBlackBoxTSetFunctor<"<<
TypeName<UBB>()<<","<<
TypeName<T*>()<<","<<
TypeName<TACCESS*>()<<
/// Concrete application of the Set method of object o
void Set(AtomicBlackBox* o, const Data& d)
{
- bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetfunctor<"<<
+ bbtkDebugMessage("data",9,"AtomicBlackBoxTSetfunctor<"<<
TypeName<UBB>()<<","<<
TypeName<T*>()<<","<<
TypeName<TACCESS*>()<<
virtual void BruteForceSetPointer(AtomicBlackBox* o, void* p)
{
- bbtkDebugMessage("Data",9,"AtomicBlackBoxTSetFunctor<"
+ bbtkDebugMessage("data",9,"AtomicBlackBoxTSetFunctor<"
<<TypeName<UBB>()<<","
<<TypeName<T*>()<<","
<<TypeName<TACCESS*>()
Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBoxMacros.h,v $
Language: C++
- Date: $Date: 2008/11/13 14:46:43 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2008/11/25 11:17:13 $
+ Version: $Revision: 1.13 $
=========================================================================*/
/* ---------------------------------------------------------------------
: PARENT(from,name,false) \
{ \
BBTK_BEGIN_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,from,allocate_connectors); \
- CLASS::bbUserCopyConstructor(); \
+ CLASS::bbUserCopyConstructor(from.GetThisPointer<bbtk::BlackBox>()); \
BBTK_END_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,from); \
} \
CLASS::~CLASS() \
: PARENT(from,name,false) \
{ \
BBTK_BEGIN_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,from,allocate_connectors); \
- CLASS<T>::bbUserCopyConstructor(); \
+ CLASS<T>::bbUserCopyConstructor(from.GetThisPointer<bbtk::BlackBox>()); \
BBTK_END_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,from); \
} \
template <class T> \
: PARENT(from,name,false) \
{ \
BBTK_BEGIN_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,from,allocate_connectors); \
- CLASS<T1,T2>::bbUserCopyConstructor(); \
+ CLASS<T1,T2>::bbUserCopyConstructor(from.GetThisPointer<bbtk::BlackBox>()); \
BBTK_END_BLACK_BOX_COPY_CONSTRUCTOR(CLASS,from); \
} \
template <class T1, class T2> \
Program: bbtk
Module: $RCSfile: bbtkBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/11/13 14:46:43 $
- Version: $Revision: 1.28 $
+ Date: $Date: 2008/11/25 11:17:13 $
+ Version: $Revision: 1.29 $
=========================================================================*/
/* ---------------------------------------------------------------------
/// Copies the input / output values from another box
void BlackBox::bbCopyIOValues(BlackBox& from)
{
- bbtkDebugMessageInc("Kernel",9,
+ bbtkDebugMessageInc("Kernel",1,
"BlackBox::bbCopyIOValues("
<<from.bbGetFullName()<<") ["
<<bbGetFullName()<<"]"<<std::endl);
{
if (! i->second->GetCopyConstruct() ) continue;
std::string input = i->second->GetName();
+ bbtkDebugMessage("Kernel",2,"* Copying input "<<input<<std::endl);
this->bbSetInput(input, from.bbGetInput(input) );
}
// copies the output values
{
if (! o->second->GetCopyConstruct() ) continue;
std::string output = o->second->GetName();
+ bbtkDebugMessage("Kernel",2,"* Copying output "<<output<<std::endl);
this->bbSetOutput(output, from.bbGetOutput(output) );
}
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.cxx,v $
Language: C++
- Date: $Date: 2008/11/24 15:45:48 $
- Version: $Revision: 1.30 $
+ Date: $Date: 2008/11/25 11:17:13 $
+ Version: $Revision: 1.31 $
=========================================================================*/
/* ---------------------------------------------------------------------
//=========================================================================
//=========================================================================
- void WxBlackBox::bbUserCopyConstructor()
+ void WxBlackBox::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
bbtkDebugMessage("Kernel",9,"WxBlackBox::bbUserCopyConstructor()"
<<std::endl);
Program: bbtk
Module: $RCSfile: bbtkWxBlackBox.h,v $
Language: C++
- Date: $Date: 2008/11/24 15:45:48 $
- Version: $Revision: 1.20 $
+ Date: $Date: 2008/11/25 11:17:13 $
+ Version: $Revision: 1.21 $
========================================================================*/
/// User callback called in the box contructor
virtual void bbUserConstructor();
/// User callback called in the box copy constructor
- virtual void bbUserCopyConstructor();
+ virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
/// User callback called in the box destructor
virtual void bbUserDestructor();
//==================================================================
Program: bbtk
Module: $RCSfile: bbitkBinaryThresholdImageFilter.h,v $
Language: C++
- Date: $Date: 2008/11/12 12:47:03 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2008/11/25 11:17:15 $
+ Version: $Revision: 1.10 $
=========================================================================*/
/* ---------------------------------------------------------------------
BBTK_ITK_DELETE();
void bbUserConstructor() { Init(); }
- void bbUserCopyConstructor() { Init(); }
+ void bbUserCopyConstructor(bbtk::BlackBox::Pointer) { Init(); }
void Init();
};
inline void ProcessSwitch();
template <class T> void Process();
void bbUserConstructor() { Init(); }
- void bbUserCopyConstructor() { Init(); }
+ void bbUserCopyConstructor(bbtk::BlackBox::Pointer) { Init(); }
void Init();
};
Program: bbtk
Module: $RCSfile: bbitkResampleImageFilter.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:21 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/11/25 11:17:15 $
+ Version: $Revision: 1.8 $
=========================================================================*/
/* ---------------------------------------------------------------------
inline void ProcessSwitch();
template <class T> void Process();
void bbUserConstructor() { Init(); }
- void bbUserCopyConstructor() { Init(); }
+ void bbUserCopyConstructor(bbtk::BlackBox::Pointer) { Init(); }
void Init();
itk::Object* mOutput;
};
Program: bbtk
Module: $RCSfile: bbitkvtkitkImage2vtkImageData.cxx,v $
Language: C++
- Date: $Date: 2008/11/12 12:47:05 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/11/25 11:17:17 $
+ Version: $Revision: 1.7 $
=========================================================================*/
/* ---------------------------------------------------------------------
bbSetOutputOut(NULL);
mConverter = 0;
}
- void itkImage2vtkImageData::bbUserCopyConstructor()
+ void itkImage2vtkImageData::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
bbSetOutputOut(NULL);
mConverter = 0;
Program: bbtk
Module: $RCSfile: bbitkvtkitkImage2vtkImageData.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:24 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/11/25 11:17:18 $
+ Version: $Revision: 1.8 $
=========================================================================*/
/* ---------------------------------------------------------------------
BBTK_PROCESS(Convert);
void Convert();
void bbUserConstructor();
- void bbUserCopyConstructor();
+ void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
void bbUserDestructor();
private:
// Convert method template on type of the itk image
Program: bbtk
Module: $RCSfile: bbitkvtkvtkImageData2itkImage.cxx,v $
Language: C++
- Date: $Date: 2008/05/14 07:01:00 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/11/25 11:17:18 $
+ 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
mConverter = 0;
}
- void vtkImageData2itkImage::bbUserCopyConstructor()
+ void vtkImageData2itkImage::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
// bbSetOutputOut(NULL);
mConverter = 0;
Program: bbtk
Module: $RCSfile: bbitkvtkvtkImageData2itkImage.h,v $
Language: C++
- Date: $Date: 2008/07/23 12:02:15 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/11/25 11:17:18 $
+ 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
BBTK_PROCESS(Convert);
void Convert();
void bbUserConstructor();
- void bbUserCopyConstructor();
+ void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
void bbUserDestructor();
private:
Program: bbtk
Module: $RCSfile: bbstdASCII.cxx,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:26 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/11/25 11:17:20 $
+ Version: $Revision: 1.6 $
=========================================================================*/
/* ---------------------------------------------------------------------
bbSetInputType(0);
}
- void ASCII::bbUserCopyConstructor()
+ void ASCII::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
}
Program: bbtk
Module: $RCSfile: bbstdASCII.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:26 $
- Version: $Revision: 1.7 $
+ Date: $Date: 2008/11/25 11:17:20 $
+ Version: $Revision: 1.8 $
=========================================================================*/
/* ---------------------------------------------------------------------
/// User callback called in the box contructor
virtual void bbUserConstructor();
/// User callback called in the box copy constructor
- virtual void bbUserCopyConstructor();
+ virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
/// User callback called in the box destructor
virtual void bbUserDestructor();
//==================================================================
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.cxx,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:30 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2008/11/25 11:17:23 $
+ Version: $Revision: 1.10 $
=========================================================================*/
/* ---------------------------------------------------------------------
bbSetInputWindowLevel (vect);
}
- void ImagePlanes::bbUserCopyConstructor()
+ void ImagePlanes::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
planeWidgetX = planeWidgetY = planeWidgetZ = 0;
}
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:30 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/11/25 11:17:23 $
+ Version: $Revision: 1.7 $
=========================================================================*/
/* ---------------------------------------------------------------------
protected:
virtual void bbUserConstructor();
- virtual void bbUserCopyConstructor();
+ virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
virtual void bbUserDestructor();
void Init();
private:
Program: bbtk
Module: $RCSfile: bbvtkIsoSurfaceExtractor.cxx,v $
Language: C++
- Date: $Date: 2008/11/21 12:25:42 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2008/11/25 11:17:23 $
+ Version: $Revision: 1.10 $
=========================================================================*/
/* ---------------------------------------------------------------------
colour.push_back(1.0);
colour.push_back(0.5);
bbSetInputColour(colour);
- bbSetInputTransform(NULL);
}
- void IsoSurfaceExtractor::bbUserCopyConstructor()
+ void IsoSurfaceExtractor::bbUserCopyConstructor(bbtk::BlackBox::Pointer from)
{
Init();
}
bbSetInputIn(NULL);
// bbSetInputInVtkObject(NULL);
bbSetInputRenderer(NULL);
+ bbSetInputTransform(NULL);
bbSetInputIsovalue(400);
bbSetInputOpacity(1);
void IsoSurfaceExtractor::DoProcess()
{
- // bbGetInputIn()->Print(std::cout);
- // Visualisation - result volume
marchingcubes->SetInput( bbGetInputIn() );
marchingcubes->SetValue(0, bbGetInputIsovalue() );
marchingcubes->Update();
vtkactor->GetProperty()->SetOpacity( bbGetInputOpacity() );
-
- if ( bbGetInputTransform()!=NULL )
- {
- vtkactor->SetUserTransform( bbGetInputTransform() );
- }
+
+ if ( bbGetInputTransform()!=NULL )
+ {
+ vtkactor->SetUserTransform( bbGetInputTransform() );
+ }
bbSetOutputOut( vtkactor );
-
+
// Interface Update
if ((firsttime==true) && (bbGetInputRenderer()!=NULL ))
{
- firsttime=false;
- bbGetInputRenderer()->AddActor( vtkactor );
+ firsttime=false;
+ bbGetInputRenderer()->AddActor( vtkactor );
}
}
} // EO namespace bbtk
Program: bbtk
Module: $RCSfile: bbvtkIsoSurfaceExtractor.h,v $
Language: C++
- Date: $Date: 2008/11/20 17:41:48 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2008/11/25 11:17:23 $
+ Version: $Revision: 1.11 $
=========================================================================*/
/* ---------------------------------------------------------------------
protected:
virtual void bbUserConstructor();
- virtual void bbUserCopyConstructor();
+ virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
virtual void bbUserDestructor();
void Init();
};
Program: bbtk
Module: $RCSfile: bbvtkMIPCreator.cxx,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:30 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2008/11/25 11:17:23 $
+ Version: $Revision: 1.5 $
=========================================================================*/
/* ---------------------------------------------------------------------
bbSetInputShift(0);
bbSetInputScale(1.);
}
- void MIPCreator::bbUserCopyConstructor()
+ void MIPCreator::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
Init();
}
Program: bbtk
Module: $RCSfile: bbvtkMIPCreator.h,v $
Language: C++
- Date: $Date: 2008/10/17 08:18:30 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2008/11/25 11:17:23 $
+ Version: $Revision: 1.6 $
=========================================================================*/
/* ---------------------------------------------------------------------
protected:
virtual void bbUserConstructor();
- virtual void bbUserCopyConstructor();
+ virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
virtual void bbUserDestructor();
void Init();
private:
}
-void VecImageGaussianSmooth::bbUserCopyConstructor()
+void VecImageGaussianSmooth::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
}
/// User callback called in the box contructor
virtual void bbUserConstructor();
/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor();
+virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
/// User callback called in the box destructor
virtual void bbUserDestructor();
//==================================================================
bbSetInputTransform(NULL);
}
-void VecIsoSurfaceExtractor::bbUserCopyConstructor()
+void VecIsoSurfaceExtractor::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
{
Init();
}
/// User callback called in the box contructor
virtual void bbUserConstructor();
/// User callback called in the box copy constructor
-virtual void bbUserCopyConstructor();
+virtual void bbUserCopyConstructor(bbtk::BlackBox::Pointer);
/// User callback called in the box destructor
virtual void bbUserDestructor();
//==================================================================
Program: bbtk
Module: $RCSfile: bbwxColourSelectorButton.cxx,v $
Language: C++
- Date: $Date: 2008/11/24 15:45:51 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2008/11/25 11:17:25 $
+ Version: $Revision: 1.7 $
=========================================================================*/
/* ---------------------------------------------------------------------
void ColourSelectorButton::bbUserConstructor()
{
bbSetInputIn("1 1 1");
+ bbSetOutputOut("1 1 1");
+ bbSetOutputWidget(0);
}
void ColourSelectorButton::Process()
{
- bbtkDebugMessageInc("Process",9,"ColourSelectorButton::Process()"<<std::endl);
- pickerWidget->UpdateBox();
- bbtkDebugDecTab("Process",9);
+ wxColourPickerCtrlWidget* w = ( wxColourPickerCtrlWidget* )bbGetOutputWidget();
+ if (w)
+ {
+ w->UpdateBox();
+ }
+ else
+ {
+ bbSetOutputOut(bbGetInputIn());
+ }
}
*/
void ColourSelectorButton::CreateWidget(wxWindow* parent)
{
- bbtkDebugMessage("Process",9,"=> ColourSelectorButton::CreateWidget()"<<std::endl);
float r,g,b;
sscanf( bbGetInputIn().c_str(), "%f %f %f", &r, &g ,&b);
cg = (unsigned char)(255.*g);
cb = (unsigned char)(255.*b);
- pickerWidget = new wxColourPickerCtrlWidget(this, //bbGetWxParent() ,
+ wxColourPickerCtrlWidget* w = new wxColourPickerCtrlWidget(this, //bbGetWxParent() ,
parent,
cr , cg , cb );
- bbtkDebugMessage("Process",9,"<= ColourSelectorButton::CreateWidget()"<<std::endl);
-
- bbSetOutputWidget( pickerWidget );
+ bbSetOutputWidget( w );
}
Program: bbtk
Module: $RCSfile: bbwxColourSelectorButton.h,v $
Language: C++
- Date: $Date: 2008/11/24 15:45:51 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2008/11/25 11:17:25 $
+ Version: $Revision: 1.9 $
=========================================================================*/
/* ---------------------------------------------------------------------
protected:
virtual void bbUserConstructor();
-
+ /*
private:
wxColourPickerCtrlWidget* pickerWidget;
+ */
};
//=================================================================
Program: bbtk
Module: $RCSfile: bbwxvtkViewer3D.cxx,v $
Language: C++
- Date: $Date: 2008/11/24 15:45:54 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2008/11/25 11:17:28 $
+ Version: $Revision: 1.11 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
bbSetInputStereo(false);
bbSetOutputRenderer( NULL );
bbSetOutputInteractor( NULL );
+ bbSetOutputWidget(NULL);
}
void Viewer3D::Process()
{
- ((Viewer3DWidget*)bbGetOutputWidget())->Update();
+ Viewer3DWidget* w = (Viewer3DWidget*)bbGetOutputWidget();
+ if (w) w->Update();
}
// when window is shown
void Viewer3D::OnShowWidget()
{
- ((Viewer3DWidget*)bbGetOutputWidget())->Update();
+ Viewer3DWidget* w = (Viewer3DWidget*)bbGetOutputWidget();
+ if (w) w->Update();
}