this->wxvtkbaseview = NULL;
mcontourvoiwidget=NULL;
-
if(wxvtkbaseview!=NULL&&imagedata!=NULL){
setBaseView(wxvtkbaseview);
setImageData(imagedata);
initializeVOIWidget();
-
- }
-
-
+ }
}
void wxWidgetVOI::initializeVOIWidget(){
wxSizer* sizer = this->GetSizer();
-
+
+/// \TODO fix deprecated warning: virtual bool wxSizer::Remove(wxWindow*) is deprecated (declared at /usr/include/wx-2.8/wx/sizer.h:513)
if(mcontourvoiwidget!=NULL){
sizer->Remove( mcontourvoiwidget );
mcontourvoiwidget->Destroy();
mcontourvoiwidget = new ContourVOIWidget( this, wxvtkbaseview, imagedata );
mcontourvoiwidget->ConfigureVTK();
-
sizer -> Add( mcontourvoiwidget,1,wxGROW );
// wxwidget = new wxMPRWidget2( panel, marimagedata , 1 );
// wxwidget->ConfigureVTK();
wxMessageDialog(NULL, bbtk::std2wx("(ContourVOI) Input 'In' is not set"), bbtk::std2wx(bbGetFullName()) ).ShowModal();
}*/
-
vtkImageData* img = bbGetInputIn();
wxVtkBaseView* base = bbGetInputwxVtkBaseView();
wxwidgetvoi->initializeVOIWidget();
}
-
if (wxwidgetvoi!=NULL && _img!=NULL && _base != NULL){
ContourVOIWidget* contourvoiwidget = wxwidgetvoi->GetContourVOIWidget();
bbSetOutputVOI(_extract->GetOutput());
//JCP
*/
-
-
+
bbSetOutputIndex( Index );
bbSetOutputSize( Size );
}
-
}
//------------------------------------------------------
//------------------------------------------------------
void ContourVOI::bbUserSetDefaultValues()
{
-
_img = NULL;
_base = NULL;
//EED 20Juin2011 _extract =NULL;
}
- //-----------------------------------------------------------------
- void ContourVOI::bbUserInitializeProcessing()
- {
- }
+//-----------------------------------------------------------------
+void ContourVOI::bbUserInitializeProcessing()
+{
+}
- //-----------------------------------------------------------------
- void ContourVOI::bbUserFinalizeProcessing()
- {
- }
+//-----------------------------------------------------------------
+void ContourVOI::bbUserFinalizeProcessing()
+{
+}
- //-----------------------------------------------------------------
+//-----------------------------------------------------------------
-
}
// EO namespace bbcreaMaracasVisu
-
-