#include <CutModelMainPanel.h>
Public Member Functions | |
~CutModelMainPanel () | |
void | setImageData (vtkImageData *img) |
void | setInteractor (vtkRenderWindowInteractor *interactor) |
void | setRenderer (vtkRenderer *renderer) |
void | initialize (std::string path) |
void | onCheckChanged () |
void | onExecuteCutPolygon () |
void | UpdatePolygon (bool isChecked) |
void | UpdatePolygon () |
void | onAddCutModel () |
void | onUndo () |
void | onRedo () |
void | changeOpacity (int id, int opacity) |
void | ShowViewBox (int id, bool check) |
void | ChangeShape (int id, int selection) |
void | changeColor (int id, double r, double g, double b) |
void | updateActorDirection (int id) |
void | RemoveActor (int id) |
void | ExecuteCut (int id, double *range, bool isinside) |
void | ExecuteAll () |
vtkImageData * | GetResultImage () |
void | ShowCurrentPanel (int id) |
void | ShowPopUpMenu (int id) |
void | ShowStatistics (int id) |
void | SetType (int type) |
int | GetType () |
Static Public Member Functions | |
static CutModelMainPanel * | getInstance (wxWindow *parent=NULL, std::string path="") |
Private Member Functions | |
CutModelMainPanel (wxWindow *parent, std::string path) | |
void | checkInvariant () throw ( CutModelException) |
void | showErrorDialog (std::string str) |
void | SaveCutModelData (std::string filename) |
void | LoadCutModelData (std::string filename) |
int | addNewViewPanel () throw ( CutModelException) |
CutModelView * | getModelView (int id) throw ( CutModelException) |
void | addPolygonCutterTab () |
Private Attributes | |
CutModelManager * | cutmanager |
std::vector< CutModelView * > | viewpanels |
wxAuiManager * | _wxauimanager |
int | _panelid |
int | _type |
wxAuiNotebook * | _notebook |
bool | _isCheck |
bool | _isFirstTime |
wxButton * | btnExecutePolygonCut |
wxStaticText * | lblMessagePolygon |
wxRadioBox * | _radioinsideout |
Static Private Attributes | |
static CutModelMainPanel * | instance = NULL |
Definition at line 49 of file CutModelMainPanel.h.
CutModelMainPanel::~CutModelMainPanel | ( | ) |
Definition at line 47 of file CutModelMainPanel.cxx.
References cutmanager, and viewpanels.
00047 { 00048 viewpanels.clear(); 00049 delete cutmanager; 00050 }
CutModelMainPanel::CutModelMainPanel | ( | wxWindow * | parent, | |
std::string | path | |||
) | [private] |
Definition at line 38 of file CutModelMainPanel.cxx.
References _isCheck, _isFirstTime, cutmanager, and initialize().
Referenced by getInstance().
00039 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize){ 00040 00041 cutmanager=NULL; 00042 _isCheck=false; 00043 _isFirstTime=true; 00044 initialize(path); 00045 00046 }
int CutModelMainPanel::addNewViewPanel | ( | ) | throw ( CutModelException) [private] |
Definition at line 221 of file CutModelMainPanel.cxx.
References _panelid, _wxauimanager, cutmanager, CutModelView::getId(), CutModelManager::getImageRange(), CutModelView::setId(), and viewpanels.
Referenced by onAddCutModel().
00221 { 00222 00223 CutModelView* viewpanel = new CutModelView(this,cutmanager->getImageRange()); 00224 00225 wxAuiPaneInfo paneinfo0; 00226 _wxauimanager->AddPane(viewpanel, paneinfo0.DefaultPane().DestroyOnClose().Centre()); 00227 00228 viewpanel->setId(_panelid); 00229 viewpanels.push_back(viewpanel); 00230 00231 return viewpanel->getId(); 00232 00233 00234 }
void CutModelMainPanel::addPolygonCutterTab | ( | ) | [private] |
Definition at line 387 of file CutModelMainPanel.cxx.
References _notebook, _radioinsideout, btnExecutePolygonCut, lblMessagePolygon, PolygonCutterEventHandlerCutModel::onCheckChanged(), and PolygonCutterEventHandlerCutModel::onExecuteCutPolygon().
Referenced by initialize().
00387 { 00388 wxPanel *panel = new wxPanel(_notebook); 00389 panel->SetAutoLayout(true); 00390 wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL); 00391 panel->SetSizer(sizer); 00392 sizer->AddSpacer(20); 00393 00394 wxCheckBox *item = new wxCheckBox(panel,10,_T("Draw Polygon"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,_T("") ); 00395 item->SetValue(false); 00396 Connect(item->GetId(), wxEVT_COMMAND_CHECKBOX_CLICKED,(wxObjectEventFunction)(&PolygonCutterEventHandlerCutModel::onCheckChanged)); 00397 sizer->Add(item, 0, wxALIGN_LEFT); 00398 00399 lblMessagePolygon = new wxStaticText(panel,30,_T("No contour drawed"),wxDefaultPosition,wxDefaultSize,0,_T("") ); 00400 sizer->Add(lblMessagePolygon, 0, wxALIGN_LEFT); 00401 00402 wxString choices0[2]; 00403 choices0[0] = _T("inside"); 00404 choices0[1] = _T("outside"); 00405 _radioinsideout = new wxRadioBox(panel,-1,_T(""), wxDefaultPosition, wxDefaultSize,2,choices0); 00406 sizer->Add(_radioinsideout, wxALIGN_LEFT); 00407 00408 btnExecutePolygonCut = new wxButton(panel,20,_T("Execute Cut"),wxDefaultPosition,wxDefaultSize,0,wxDefaultValidator,_T("") ); 00409 Connect(btnExecutePolygonCut->GetId(), wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)(&PolygonCutterEventHandlerCutModel::onExecuteCutPolygon)); 00410 sizer->Add(btnExecutePolygonCut, 0, wxALIGN_LEFT); 00411 00412 00413 _notebook->AddPage(panel, _T("Polygon Cutter"), false); 00414 00415 }
void CutModelMainPanel::changeColor | ( | int | id, | |
double | r, | |||
double | g, | |||
double | b | |||
) |
Definition at line 300 of file CutModelMainPanel.cxx.
References CutModelManager::changeColor(), checkInvariant(), cutmanager, CutModelException::getCause(), and showErrorDialog().
Referenced by CutModelViewEventHandler::onColorChange().
00300 { 00301 00302 try{ 00303 checkInvariant(); 00304 cutmanager->changeColor(id, r, g, b); 00305 00306 }catch(CutModelException e){ 00307 showErrorDialog(e.getCause()); 00308 } 00309 00310 }
void CutModelMainPanel::changeOpacity | ( | int | id, | |
int | opacity | |||
) |
Definition at line 278 of file CutModelMainPanel.cxx.
References CutModelManager::changeOpacity(), checkInvariant(), cutmanager, CutModelException::getCause(), and showErrorDialog().
Referenced by CutModelViewEventHandler::onOpacityChange().
00278 { 00279 try{ 00280 checkInvariant(); 00281 cutmanager->changeOpacity(id, opacity); 00282 00283 }catch(CutModelException e){ 00284 showErrorDialog(e.getCause()); 00285 } 00286 }
void CutModelMainPanel::ChangeShape | ( | int | id, | |
int | selection | |||
) |
Definition at line 311 of file CutModelMainPanel.cxx.
References CutModelManager::ChangeShape(), checkInvariant(), cutmanager, CutModelException::getCause(), and showErrorDialog().
Referenced by CutModelViewEventHandler::onShapeChange().
00311 { 00312 try{ 00313 checkInvariant(); 00314 00315 cutmanager->ChangeShape(id, selection); 00316 00317 }catch(CutModelException e){ 00318 showErrorDialog(e.getCause()); 00319 } 00320 }
void CutModelMainPanel::checkInvariant | ( | ) | throw ( CutModelException) [private] |
Definition at line 113 of file CutModelMainPanel.cxx.
References cutmanager.
Referenced by changeColor(), changeOpacity(), ChangeShape(), ExecuteCut(), GetResultImage(), onAddCutModel(), onRedo(), onUndo(), RemoveActor(), setImageData(), setInteractor(), setRenderer(), ShowStatistics(), ShowViewBox(), and updateActorDirection().
00113 { 00114 if(cutmanager==NULL){ 00115 throw CutModelException("The manager is not initialize"); 00116 } 00117 }
void CutModelMainPanel::ExecuteAll | ( | ) |
Definition at line 342 of file CutModelMainPanel.cxx.
References viewpanels.
Referenced by ToolBarEventHandlerCutModel::onExecuteAll().
00342 { 00343 int i; 00344 for(i = 0; i < (int)viewpanels.size(); i++){ 00345 viewpanels[i]->ExecuteCut(); 00346 } 00347 00348 }
void CutModelMainPanel::ExecuteCut | ( | int | id, | |
double * | range, | |||
bool | isinside | |||
) |
Definition at line 332 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelManager::ExecuteCut(), CutModelException::getCause(), and showErrorDialog().
Referenced by CutModelView::ExecuteCut().
00332 { 00333 try{ 00334 checkInvariant(); 00335 00336 cutmanager->ExecuteCut(id, range, isinside); 00337 }catch(CutModelException e){ 00338 showErrorDialog(e.getCause()); 00339 } 00340 }
CutModelMainPanel * CutModelMainPanel::getInstance | ( | wxWindow * | parent = NULL , |
|
std::string | path = "" | |||
) | [static] |
Definition at line 71 of file CutModelMainPanel.cxx.
References CutModelMainPanel(), and instance.
Referenced by CutModelView::Execute(), CutModelView::ExecuteCut(), ToolBarEventHandlerCutModel::onAdd(), PolygonCutterEventHandlerCutModel::onCheckChanged(), CutModelViewEventHandler::onColorChange(), ToolBarEventHandlerCutModel::onExecuteAll(), PolygonCutterEventHandlerCutModel::onExecuteCutPolygon(), CutModelViewEventHandler::onOpacityChange(), ToolBarEventHandlerCutModel::onRedo(), CutModelViewEventHandler::onShapeChange(), CutModelViewEventHandler::onStatistics(), ToolBarEventHandlerCutModel::onUndo(), CutModelViewEventHandler::onViewBoxChecked(), CutModelManager::setImageData(), wxMaracasDialog_NViewers::wxMaracasDialog_NViewers(), and CutModelView::~CutModelView().
00071 { 00072 if(instance==NULL){ 00073 if(parent == NULL){ 00074 parent = new wxFrame(); 00075 } 00076 instance = new CutModelMainPanel(parent, path); 00077 } 00078 return instance; 00079 }
CutModelView * CutModelMainPanel::getModelView | ( | int | id | ) | throw ( CutModelException) [private] |
Definition at line 235 of file CutModelMainPanel.cxx.
Referenced by onAddCutModel().
00236 { 00237 CutModelView* current = NULL; 00238 int i; 00239 for(i = 0; i < (int)viewpanels.size();i++) 00240 { 00241 if(viewpanels[i]->getId()==id) 00242 { 00243 current = viewpanels[i]; 00244 } 00245 } 00246 if(current == NULL) 00247 { 00248 std::string s = "Id not found"; 00249 throw CutModelException(s); 00250 } 00251 return current; 00252 }
vtkImageData * CutModelMainPanel::GetResultImage | ( | ) |
Definition at line 349 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), CutModelManager::GetResultImage(), and showErrorDialog().
00349 { 00350 try{ 00351 checkInvariant(); 00352 return cutmanager->GetResultImage(); 00353 }catch(CutModelException e){ 00354 showErrorDialog(e.getCause()); 00355 } 00356 return NULL; 00357 }
int CutModelMainPanel::GetType | ( | ) |
Definition at line 383 of file CutModelMainPanel.cxx.
References _type.
Referenced by CutModelManager::setImageData().
00383 { 00384 return _type; 00385 }
void CutModelMainPanel::initialize | ( | std::string | path | ) |
Definition at line 52 of file CutModelMainPanel.cxx.
References _notebook, _panelid, _wxauimanager, addPolygonCutterTab(), and cutmanager.
Referenced by CutModelMainPanel().
00052 { 00053 cutmanager = new CutModelManager(path); 00054 _panelid = 0; 00055 _wxauimanager = new wxAuiManager(this); 00056 00057 wxAuiPaneInfo paneinfo; 00058 00059 //RaC 5-02-2010 Add tabs 00060 _notebook = new wxAuiNotebook(this,wxID_ANY,wxDefaultPosition,wxDefaultSize,wxAUI_NB_TOP |wxAUI_NB_TAB_MOVE | wxAUI_NB_SCROLL_BUTTONS); 00061 00062 _notebook->AddPage(new ToolBarCutModel(_notebook),_T("Cutter"),true); 00063 //_wxauimanager->AddPane(new ToolBarCutModel(this),paneinfo.ToolbarPane().Top()); 00064 _wxauimanager->AddPane(_notebook,paneinfo.Center()); 00065 addPolygonCutterTab(); 00066 _notebook->Update(); 00067 00068 _wxauimanager->Update(); 00069 }
void CutModelMainPanel::LoadCutModelData | ( | std::string | filename | ) | [private] |
Definition at line 375 of file CutModelMainPanel.cxx.
References cutmanager, and CutModelManager::LoadCutModelData().
00375 { 00376 cutmanager->LoadCutModelData(filename); 00377 }
void CutModelMainPanel::onAddCutModel | ( | ) |
Definition at line 192 of file CutModelMainPanel.cxx.
References _panelid, addNewViewPanel(), checkInvariant(), cutmanager, CutModelException::getCause(), getModelView(), CutModelManager::onAddCutModel(), ShowCurrentPanel(), and showErrorDialog().
Referenced by ToolBarEventHandlerCutModel::onAdd().
00192 { 00193 try{ 00194 checkInvariant(); 00195 00196 int id = addNewViewPanel(); 00197 cutmanager->onAddCutModel(id, getModelView(id)); 00198 00199 _panelid++; 00200 00201 ShowCurrentPanel(id); 00202 00203 }catch(CutModelException e){ 00204 showErrorDialog(e.getCause()); 00205 } 00206 }
void CutModelMainPanel::onCheckChanged | ( | ) |
Definition at line 148 of file CutModelMainPanel.cxx.
References _isCheck, _isFirstTime, _notebook, _radioinsideout, btnExecutePolygonCut, cutmanager, CutModelManager::InitializePolygonInteractorStyle(), lblMessagePolygon, CutModelManager::ParallelProjectionOff(), CutModelManager::ParallelProjectionOn(), and CutModelManager::UpdatePolygon().
Referenced by PolygonCutterEventHandlerCutModel::onCheckChanged().
00148 { 00149 00150 if(_isFirstTime==true){ 00151 _isFirstTime=false; 00152 cutmanager->InitializePolygonInteractorStyle(); 00153 } 00154 00155 if(_isCheck==false) 00156 { 00157 _isCheck=true; 00158 //Draw Polygon 00159 00160 cutmanager->ParallelProjectionOn(); 00161 btnExecutePolygonCut->Enable(false); 00162 _notebook->GetPage(0)->Enable(false); 00163 _radioinsideout->Enable(false); 00164 lblMessagePolygon->SetLabel(_T("Drawing polygon...")); 00165 } 00166 else 00167 { 00168 _isCheck=false; 00169 //Finish Drawing 00170 cout<<"Finish Drawing"<<endl; 00171 cutmanager->ParallelProjectionOff(); 00172 btnExecutePolygonCut->Enable(true); 00173 _notebook->GetPage(0)->Enable(true); 00174 _radioinsideout->Enable(true); 00175 lblMessagePolygon->SetLabel(_T("Contour saved! Click on Execute Cut")); 00176 } 00177 00178 cutmanager->UpdatePolygon(_isCheck); 00179 00180 }
void CutModelMainPanel::onExecuteCutPolygon | ( | ) |
Definition at line 184 of file CutModelMainPanel.cxx.
References _radioinsideout, cutmanager, CutModelManager::ExecuteCutPolygon(), and lblMessagePolygon.
Referenced by PolygonCutterEventHandlerCutModel::onExecuteCutPolygon().
00185 { 00186 //Cuts Polygon 00187 cutmanager->ExecuteCutPolygon(_radioinsideout->GetSelection()); 00188 lblMessagePolygon->SetLabel(_T("No contour drawed")); 00189 }
void CutModelMainPanel::onRedo | ( | ) |
Definition at line 266 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), CutModelManager::Redo(), and showErrorDialog().
Referenced by ToolBarEventHandlerCutModel::onRedo().
00266 { 00267 00268 try{ 00269 checkInvariant(); 00270 int result = cutmanager->Redo(); 00271 00272 }catch(CutModelException e){ 00273 showErrorDialog(e.getCause()); 00274 } 00275 00276 }
void CutModelMainPanel::onUndo | ( | ) |
Definition at line 254 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), showErrorDialog(), and CutModelManager::Undo().
Referenced by ToolBarEventHandlerCutModel::onUndo().
00255 { 00256 try{ 00257 checkInvariant(); 00258 int result = cutmanager->Undo(); 00259 00260 }catch(CutModelException e){ 00261 showErrorDialog(e.getCause()); 00262 } 00263 00264 }
void CutModelMainPanel::RemoveActor | ( | int | id | ) |
Definition at line 124 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), CutModelView::getId(), CutModelManager::RemoveActor(), showErrorDialog(), and viewpanels.
Referenced by CutModelView::~CutModelView().
00124 { 00125 try{ 00126 checkInvariant(); 00127 00128 if(!this->IsBeingDeleted()){ 00129 for(int i = 0; i < viewpanels.size()-1;i++){ 00130 CutModelView* view = viewpanels[i]; 00131 if(view->getId()==id){ 00132 for(int j = i; j < viewpanels.size()-1;j++){ 00133 viewpanels[j]=viewpanels[j+1]; 00134 } 00135 i = viewpanels.size(); 00136 } 00137 } 00138 viewpanels.pop_back(); 00139 cutmanager->RemoveActor(id); 00140 } 00141 00142 }catch(CutModelException e){ 00143 showErrorDialog(e.getCause()); 00144 } 00145 }
void CutModelMainPanel::SaveCutModelData | ( | std::string | filename | ) | [private] |
Definition at line 371 of file CutModelMainPanel.cxx.
References cutmanager, and CutModelManager::SaveCutModelData().
00371 { 00372 cutmanager->SaveCutModelData(filename); 00373 }
void CutModelMainPanel::setImageData | ( | vtkImageData * | img | ) |
Definition at line 86 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), CutModelManager::setImageData(), and showErrorDialog().
00086 { 00087 try{ 00088 checkInvariant(); 00089 cutmanager->setImageData(img); 00090 }catch(CutModelException e){ 00091 showErrorDialog(e.getCause()); 00092 } 00093 }
void CutModelMainPanel::setInteractor | ( | vtkRenderWindowInteractor * | interactor | ) |
Definition at line 95 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), CutModelManager::setInteractor(), and showErrorDialog().
00095 { 00096 try{ 00097 checkInvariant(); 00098 cutmanager->setInteractor(interactor); 00099 }catch(CutModelException e){ 00100 showErrorDialog(e.getCause()); 00101 } 00102 }
void CutModelMainPanel::setRenderer | ( | vtkRenderer * | renderer | ) |
Definition at line 104 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), CutModelManager::setRenderer(), and showErrorDialog().
00104 { 00105 try{ 00106 checkInvariant(); 00107 cutmanager->setRenderer(renderer); 00108 }catch(CutModelException e){ 00109 showErrorDialog(e.getCause()); 00110 } 00111 }
void CutModelMainPanel::SetType | ( | int | type | ) |
Definition at line 379 of file CutModelMainPanel.cxx.
References _type.
00379 { 00380 _type = type; 00381 }
void CutModelMainPanel::ShowCurrentPanel | ( | int | id | ) |
Definition at line 208 of file CutModelMainPanel.cxx.
References _wxauimanager, cutmanager, CutModelManager::RefreshActor(), and viewpanels.
Referenced by CutModelView::Execute(), and onAddCutModel().
00209 { 00210 int i; 00211 for(i = 0; i < (int) viewpanels.size();i++){ 00212 if(viewpanels[i]->getId()==id){ 00213 _wxauimanager->GetPane(viewpanels[i]).Show(true); 00214 cutmanager->RefreshActor(id); 00215 }else{ 00216 _wxauimanager->GetPane(viewpanels[i]).Show(false); 00217 } 00218 } 00219 _wxauimanager->Update(); 00220 }
void CutModelMainPanel::showErrorDialog | ( | std::string | str | ) | [private] |
Definition at line 119 of file CutModelMainPanel.cxx.
Referenced by changeColor(), changeOpacity(), ChangeShape(), ExecuteCut(), GetResultImage(), onAddCutModel(), onRedo(), onUndo(), RemoveActor(), setImageData(), setInteractor(), setRenderer(), ShowPopUpMenu(), ShowViewBox(), and updateActorDirection().
00119 { 00120 wxMessageDialog* diag = new wxMessageDialog(this, wxString(str.c_str(),wxConvUTF8 ), wxString(str.c_str(),wxConvUTF8 ), wxICON_ERROR); 00121 diag->ShowModal(); 00122 }
void CutModelMainPanel::ShowPopUpMenu | ( | int | id | ) |
Definition at line 297 of file CutModelMainPanel.cxx.
References showErrorDialog().
Referenced by CutModelView::Execute().
00297 { 00298 showErrorDialog("test"); 00299 }
void CutModelMainPanel::ShowStatistics | ( | int | id | ) |
Definition at line 359 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelManager::GetResultImage(), and HistogramDialog::initializeHistogram().
Referenced by CutModelViewEventHandler::onStatistics().
00359 { 00360 00361 checkInvariant(); 00362 HistogramDialog *histo = new HistogramDialog(this, _T("Statistics")); 00363 00364 histo->initializeHistogram(cutmanager->GetResultImage()); 00365 00366 histo->ShowModal(); 00367 00368 delete histo; 00369 }
void CutModelMainPanel::ShowViewBox | ( | int | id, | |
bool | check | |||
) |
Definition at line 288 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), showErrorDialog(), and CutModelManager::ShowViewBox().
Referenced by CutModelViewEventHandler::onViewBoxChecked().
00288 { 00289 try{ 00290 checkInvariant(); 00291 cutmanager->ShowViewBox(id, check); 00292 00293 }catch(CutModelException e){ 00294 showErrorDialog(e.getCause()); 00295 } 00296 }
void CutModelMainPanel::updateActorDirection | ( | int | id | ) |
Definition at line 321 of file CutModelMainPanel.cxx.
References checkInvariant(), cutmanager, CutModelException::getCause(), showErrorDialog(), and CutModelManager::updateActorDirection().
Referenced by CutModelView::Execute().
00321 { 00322 try{ 00323 checkInvariant(); 00324 00325 cutmanager->updateActorDirection(id); 00326 00327 }catch(CutModelException e){ 00328 showErrorDialog(e.getCause()); 00329 } 00330 }
void CutModelMainPanel::UpdatePolygon | ( | ) |
void CutModelMainPanel::UpdatePolygon | ( | bool | isChecked | ) |
bool CutModelMainPanel::_isCheck [private] |
Definition at line 143 of file CutModelMainPanel.h.
Referenced by CutModelMainPanel(), and onCheckChanged().
bool CutModelMainPanel::_isFirstTime [private] |
Definition at line 145 of file CutModelMainPanel.h.
Referenced by CutModelMainPanel(), and onCheckChanged().
wxAuiNotebook* CutModelMainPanel::_notebook [private] |
Definition at line 138 of file CutModelMainPanel.h.
Referenced by addPolygonCutterTab(), initialize(), and onCheckChanged().
int CutModelMainPanel::_panelid [private] |
Definition at line 133 of file CutModelMainPanel.h.
Referenced by addNewViewPanel(), initialize(), and onAddCutModel().
wxRadioBox* CutModelMainPanel::_radioinsideout [private] |
Definition at line 149 of file CutModelMainPanel.h.
Referenced by addPolygonCutterTab(), onCheckChanged(), and onExecuteCutPolygon().
int CutModelMainPanel::_type [private] |
Definition at line 135 of file CutModelMainPanel.h.
wxAuiManager* CutModelMainPanel::_wxauimanager [private] |
Definition at line 127 of file CutModelMainPanel.h.
Referenced by addNewViewPanel(), initialize(), and ShowCurrentPanel().
wxButton* CutModelMainPanel::btnExecutePolygonCut [private] |
Definition at line 147 of file CutModelMainPanel.h.
Referenced by addPolygonCutterTab(), and onCheckChanged().
CutModelManager* CutModelMainPanel::cutmanager [private] |
Definition at line 115 of file CutModelMainPanel.h.
Referenced by addNewViewPanel(), changeColor(), changeOpacity(), ChangeShape(), checkInvariant(), CutModelMainPanel(), ExecuteCut(), GetResultImage(), initialize(), LoadCutModelData(), onAddCutModel(), onCheckChanged(), onExecuteCutPolygon(), onRedo(), onUndo(), RemoveActor(), SaveCutModelData(), setImageData(), setInteractor(), setRenderer(), ShowCurrentPanel(), ShowStatistics(), ShowViewBox(), updateActorDirection(), and ~CutModelMainPanel().
CutModelMainPanel * CutModelMainPanel::instance = NULL [static, private] |
Definition at line 113 of file CutModelMainPanel.h.
Referenced by getInstance().
wxStaticText* CutModelMainPanel::lblMessagePolygon [private] |
Definition at line 148 of file CutModelMainPanel.h.
Referenced by addPolygonCutterTab(), onCheckChanged(), and onExecuteCutPolygon().
std::vector<CutModelView*> CutModelMainPanel::viewpanels [private] |
Definition at line 125 of file CutModelMainPanel.h.
Referenced by addNewViewPanel(), ExecuteAll(), RemoveActor(), ShowCurrentPanel(), and ~CutModelMainPanel().