1 #include "wxMaracasDialog_NViewers.h"
2 //#include <wx/frame.h>
6 BEGIN_EVENT_TABLE( wxMaracasDialog_NViewers, wxFrame )
7 EVT_MENU( 12121, wxMaracasDialog_NViewers::OnRefreshView )
8 EVT_MENU( 12122, wxMaracasDialog_NViewers::OnDClickLeft )
14 wxMaracasDialog_NViewers::wxMaracasDialog_NViewers(wxWindow* parent, vtkImageData* img, std::vector<int>* type, wxString title)
15 : wxFrame(parent, -1, title)
17 viewer = new wxMaracas_N_ViewersWidget(this, img, type);
18 wxFlexGridSizer* sizer = new wxFlexGridSizer(1);
20 sizer->Add(viewer, 1, wxGROW);
21 this->SetSizer( sizer, true );
22 this->SetAutoLayout( true );
23 //viewer->SetSize(wxSizer(wxFIXED_MINSIZE));
29 wxMaracasDialog_NViewers::~wxMaracasDialog_NViewers(){
33 ** Adds a new panel to the frame
35 void wxMaracasDialog_NViewers::AddPanel(wxPanel panel)
37 wxFlexGridSizer* sizer = new wxFlexGridSizer(1);
39 //this->AddChild(panel);
40 //sizer->Add(panel, wxFIXED_MINSIZE);
41 this->SetSizer( sizer, true );
42 this->SetAutoLayout( true );
45 void wxMaracasDialog_NViewers::OnRefreshView(wxCommandEvent & event)
48 point.push_back((int)viewer->GetX());
49 point.push_back((int)viewer->GetY());
50 point.push_back((int)viewer->GetZ());
52 viewer->OnRefreshView(event);
55 void wxMaracasDialog_NViewers::OnDClickLeft(wxCommandEvent & event)
57 viewer->OnDClickLeft(event);