#include <wxMaracasDialog_NViewers.h>
Public Member Functions | |
wxMaracasDialog_NViewers (wxWindow *parent, vtkImageData *img, std::vector< int > *type, wxString title) | |
~wxMaracasDialog_NViewers () | |
void | OnRefreshView (wxCommandEvent &event) |
void | OnDClickLeft (wxCommandEvent &event) |
wxMaracas_N_ViewersWidget * | getViewer () |
Private Member Functions | |
DECLARE_EVENT_TABLE () | |
Private Attributes | |
wxMaracas_N_ViewersWidget * | viewer |
CutModelMainPanel * | cutter |
std::vector< int > | point |
Class constructor
Definition at line 10 of file wxMaracasDialog_NViewers.h.
wxMaracasDialog_NViewers::wxMaracasDialog_NViewers | ( | wxWindow * | parent, | |
vtkImageData * | img, | |||
std::vector< int > * | type, | |||
wxString | title | |||
) |
Class constructor
Definition at line 15 of file wxMaracasDialog_NViewers.cpp.
References CutModelMainPanel::getInstance().
00016 : wxFrame(parent, -1, title) 00017 : wxFrame(NULL, -1, title, wxDefaultPosition,wxSize(700,700)) 00018 { 00019 wxSplitterWindow *splitpanel = new wxSplitterWindow(this, -1); 00020 splitpanel->SetMinimumPaneSize(5); 00021 00022 viewer = new wxMaracas_N_ViewersWidget(splitpanel, img, type); 00023 // std::string path = crea::System::GetDllAppPath("bbcreaMaracasVisu.dll"); // JPR 00024 std::string dllLastName("bbcreaMaracasVisu.dll"); 00025 std::string path = crea::System::GetDllAppPath(dllLastName); 00026 cutter = CutModelMainPanel::getInstance(splitpanel, path); 00027 cutter->setRenderer( viewer->GetwxVtkBaseView(1)->GetRenderer() ); 00028 cutter->setInteractor( viewer->GetwxVtkBaseView(1)->GetWxVTKRenderWindowInteractor() ); 00029 cutter->setImageData(img); 00030 00031 splitpanel->SplitVertically( cutter, viewer, 50); 00032 }
wxMaracasDialog_NViewers::~wxMaracasDialog_NViewers | ( | ) |
wxMaracasDialog_NViewers::DECLARE_EVENT_TABLE | ( | ) | [private] |
wxMaracas_N_ViewersWidget * wxMaracasDialog_NViewers::getViewer | ( | ) |
Definition at line 64 of file wxMaracasDialog_NViewers.cpp.
References viewer.
00065 { 00066 return viewer; 00067 }
void wxMaracasDialog_NViewers::OnDClickLeft | ( | wxCommandEvent & | event | ) |
Definition at line 56 of file wxMaracasDialog_NViewers.cpp.
References wxMaracas_N_ViewersWidget::OnDClickLeft(), and viewer.
00057 { 00058 viewer->OnDClickLeft(event); 00059 }
void wxMaracasDialog_NViewers::OnRefreshView | ( | wxCommandEvent & | event | ) |
Definition at line 43 of file wxMaracasDialog_NViewers.cpp.
References wxMaracas_N_ViewersWidget::GetX(), wxMaracas_N_ViewersWidget::GetY(), wxMaracas_N_ViewersWidget::GetZ(), wxMaracas_N_ViewersWidget::OnRefreshView(), point, and viewer.
00044 { 00045 point.clear(); 00046 point.push_back((int)viewer->GetX()); 00047 point.push_back((int)viewer->GetY()); 00048 point.push_back((int)viewer->GetZ()); 00049 00050 viewer->OnRefreshView(event); 00051 }
Definition at line 21 of file wxMaracasDialog_NViewers.h.
std::vector<int> wxMaracasDialog_NViewers::point [private] |
Definition at line 23 of file wxMaracasDialog_NViewers.h.
Referenced by OnRefreshView().
Definition at line 20 of file wxMaracasDialog_NViewers.h.
Referenced by getViewer(), OnDClickLeft(), and OnRefreshView().