wxWidgetVOI::wxWidgetVOI(wxWindow* parent, wxVtkBaseView *wxvtkbaseview, vtkImageData *imagedata)
: wxPanel( parent, -1 )
{
- wxPanel *panel = this;
+// wxPanel *panel = this;
if(wxvtkbaseview!=NULL&&imagedata!=NULL){
}
- wxWidgetVOI::setBaseView(wxVtkBaseView * wxvtkbaseview){
+ void wxWidgetVOI::setBaseView(wxVtkBaseView * wxvtkbaseview){
this->wxvtkbaseview = wxvtkbaseview;
}
- wxWidgetVOI::setImageData(vtkImageData * imagedata){
+ void wxWidgetVOI::setImageData(vtkImageData * imagedata){
this->imagedata = imagedata;
}
- wxWidgetVOI::initializeVOIWidget(){
+ void wxWidgetVOI::initializeVOIWidget(){
mcontourvoiwidget = new ContourVOIWidget( this, wxvtkbaseview, imagedata );
mcontourvoiwidget->ConfigureVTK();
//--------------------------------------------------------------------------
void wxWidgetVOI::Refresh()
{
- printf("EED wxWidgetVOI::Refresh \n");
// wxwidget->RefreshView();
}
//---------------
void wxWidgetVOI::OnRefreshView(wxCommandEvent &event)
{
- printf("EED wxWidgetVOI::OnRefreshView \n");
/*
if((wxwidget!=NULL) && (mbbViewerMPR!=NULL))
{
//--------------------------------------------------------------------------
void wxWidgetVOI::OnDClickLeft(wxCommandEvent & event)
{
- printf("EED wxWidgetVOI::OnDClickLeft \n");
// wxwidget->RefreshView();
}
wxWidgetVOI* wxwidgetvoi = (wxWidgetVOI*)bbGetOutputWidget();
- if(base !=NULL && img != NULL && _img != img && _base != base){
+ if(base !=NULL && img != NULL && _img != img){
_img = img;
_base = base;
}
- if (wxwidgetvoi!=NULL){
+ if (wxwidgetvoi!=NULL && _img!=NULL && _base != NULL){
ContourVOIWidget* contourvoiwidget = wxwidgetvoi->GetContourVOIWidget();
int voi[6];
bbSetInputIn(NULL);
bbSetOutputWidget(NULL);
+ bbSetInputIn(NULL);
+ bbSetInputwxVtkBaseView(NULL);
+
}
//------------------------------------------------------