33 wxBoxSizer* sizer =
new wxBoxSizer(wxHORIZONTAL);
34 _grapherWindow =
new wxMGL(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_THEME);
36 _grapherWindow->SetDraw(_helper);
37 _grapherWindow->SetGraph(_helper->setGrapher());
39 sizer->Add(_grapherWindow, 1, wxEXPAND);
40 double dHeight = sqrt(640.0*480.0 / _helper->getAspect());
41 if (_helper->getHires())
42 dHeight = sqrt(1280.0*960.0 / _helper->getAspect());
43 _grapherWindow->SetSize((
int)lrint(_helper->getAspect()*dHeight), (
int)lrint(dHeight));
45 this->SetSizer(sizer);
46 this->SetClientSize(_grapherWindow->GetSize());
48 m_terminal = terminal;
This class encapsulates the mglGraph object during transmission from the kernel to the GUI.
The terminal class for the GUI. It's a specialisation of the GenericTerminal.
This class generalizes a set of basic floating window functionalities like being closable by pressing...
void OnFocus(wxFocusEvent &event)
This event handler passes the keyboard focus down to the first child in the window list,...
void OnClose(wxCloseEvent &event)
This event handler informs all child windows that this frame will now close. It furthermore automatic...
void OnKeyDown(wxKeyEvent &event)
This event handler closes the frame, if the user presses ESC.
Class is Wx widget which display MathGL graphics.