NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Class is Wx widget which display MathGL graphics. More...
#include <wx.h>
Public Types | |
enum | CurrentDrawMode { DM_NONE = 0 , DM_LINE = 1 , DM_RECT , DM_CIRCLE , DM_TEXT } |
Public Member Functions | |
wxMGL (wxWindow *parent, wxWindowID id=-1, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, bool frameless=false, const wxString &name=wxPanelNameStr) | |
wxMGL constructor. More... | |
virtual | ~wxMGL () |
Destructor: stops the timer, if it is running and deletes the referenced drawing class. More... | |
double | GetRatio () |
This member function returns the image aspect ratio. More... | |
void | SetPopup (wxMenu *p) |
void | SetSize (int w, int h) |
Set popup menu pointer. More... | |
void | SetGraph (mglGraph *GR) |
HMGL | GetGraph () |
void | SetDraw (int(*func)(mglBase *gr, void *par), void *par=0) |
Set drawing functions and its parameter. More... | |
void | SetDraw (mglDraw *dr) |
void | SetDraw (int(*draw)(mglGraph *gr)) |
void | ZoomRegion (mreal xx1, mreal xx2, mreal yy1, mreal yy2) |
int | GetPer () |
int | GetPhi () |
Get perspective value. More... | |
int | GetTet () |
Get Phi-angle value. More... | |
bool | GetAlpha () |
Get Theta-angle value. More... | |
bool | GetLight () |
Get transparency state. More... | |
bool | GetZoom () |
Get lightning state. More... | |
bool | GetRotate () |
Get mouse zooming state. More... | |
void | Repaint () |
Get mouse rotation state. More... | |
void | Update () |
Update picture. More... | |
void | Copy () |
copy graphics to clipboard More... | |
void | Print () |
Print plot. More... | |
void | SetPer (int p) |
Set perspective value. More... | |
void | SetPhi (int p) |
Set Phi-angle value. More... | |
void | SetTet (int t) |
Set Theta-angle value. More... | |
void | SetZoom (bool z) |
Switch on/off mouse zooming. More... | |
void | SetRotate (bool r) |
Switch on/off mouse rotation. More... | |
void | SetDrawMode (int dm) |
This member function selects the current drawing mode by dis- and enabling the tools and the other modification modes. More... | |
void | ZoomIn (int x, int y) |
Zoom in graphics. More... | |
void | ZoomOut (int x, int y) |
Zoom out graphics. More... | |
void | Restore () |
Restore zoom and rotation to default values. More... | |
void | DrawCurrentObject (int end_x, int end_y) |
This member function draws the drawing object selected by the toolbar after the user released the left mouse button. More... | |
void | ExportPNG (wxString fname=L"") |
export to PNG file More... | |
void | ExportPNGs (wxString fname=L"") |
export to PNG file (no transparency) More... | |
void | ExportJPG (wxString fname=L"") |
export to JPEG file More... | |
void | ExportBPS (wxString fname=L"") |
export to bitmap EPS file More... | |
void | ExportEPS (wxString fname=L"") |
export to vector EPS file More... | |
void | ExportSVG (wxString fname=L"") |
export to SVG file More... | |
void | Adjust () |
Adjust plot size to fill entire window. More... | |
int | getNumFrames () |
void | NextSlide () |
Show next slide. More... | |
void | PrevSlide () |
Show previous slide. More... | |
void | Animation (bool st=true) |
Start animation. More... | |
void | AnimateAsynch () |
wxString | getClickedCoords () |
Return the clicked coordinates as a parsable string. This is used by the custom GUI event handler. More... | |
Public Attributes | |
wxString | appName |
Application name for message boxes. More... | |
bool | AutoResize |
Allow auto resizing (default is false) More... | |
Protected Member Functions | |
void | InitializeToolbar () |
This member function initializes the toolbar of the GraphViewer Window. More... | |
void | OnExport () |
This member function displays the file dialog during exporting the current image displayed in the window. More... | |
void | OnPaint (wxPaintEvent &event) |
This member function is the redrawing and painting event handler. It will display the bitmap currently selected by the wxMGL::Repaint() function. More... | |
void | OnEraseBackground (wxEraseEvent &event) |
This member function handles the background erasing process. It is disabled to avoid flickering (kind of a hack). More... | |
void | OnSize (wxSizeEvent &event) |
This member function is the resizing event handler. More... | |
void | OnNextSlide (wxTimerEvent &evt) |
Show next slide. More... | |
void | OnMouseLeftDown (wxMouseEvent &ev) |
This member function is the event handling function applied, when the user presses the left mouse button. More... | |
void | OnMouseDown (wxMouseEvent &ev) |
This member function is the event handling function applied, when the user presses any of the other mouse buttons. More... | |
void | OnMouseLeftUp (wxMouseEvent &ev) |
This member function is the event handling function applied, when the user releases the left mouse button. More... | |
void | OnMouseRightUp (wxMouseEvent &ev) |
This member function is the event handling function applied, when the user releases the right mouse button. More... | |
void | OnMouseMove (wxMouseEvent &ev) |
This member function is the event handling function applied, when the user moves the mouse. More... | |
void | OnEnter (wxMouseEvent &event) |
This member function is the event handling function applied, when the user moves the mouse in the window. More... | |
void | OnLeave (wxMouseEvent &event) |
Event handler for leaving the window. Will change the drawing mode to normal and redraw the windows contents. More... | |
void | OnKeyDown (wxKeyEvent &event) |
This member function is the event handling function applied, when the user presses a key. More... | |
void | OnNavigationKey (wxNavigationKeyEvent &event) |
This member function is the event handling function applied, when the user presses a navigation key. More... | |
void | OnMenuEvent (wxCommandEvent &event) |
This member function is the event handling function for any events emitted by the toolbar. More... | |
void | OnClose (wxCloseEvent &event) |
This member function is the event handling function applied, when the window is closed. More... | |
void | setBitmap () |
This function sets the current bitmap either by explicit conversion from the RGB data in the mglGraph object or by selecting an image from the buffer. More... | |
wxImage | ConvertFromGraph () |
This member function converts the RGB image created by the mglGraph object into a platform-independent wxImage object, which can be used to create a bitmap from. More... | |
Protected Attributes | |
mglGraph * | gr |
pointer to grapher More... | |
void * | draw_par |
int(* | draw_func )(mglBase *gr, void *par) |
Drawing function for window procedure. It should return the number of frames. More... | |
mglDraw * | draw_cl |
wxString | MousePos |
Last mouse position. More... | |
wxBitmap | pic |
Pixmap for drawing (changed by update) More... | |
double | dPolarViewPoint |
double | dAzimutalViewPoint |
Rotation angles. More... | |
double | dPerspective |
Value of perspective ( must be in [0,1) ) More... | |
bool | alpha |
Transparency state. More... | |
bool | light |
Lightning state. More... | |
bool | bZoomingMode |
Mouse zoom state. More... | |
bool | bRotatingMode |
Mouse rotation state. More... | |
bool | zoomactive |
bool | animation |
int | skiprotate |
int | nFramesToSkip |
int | drawMode |
Stores the current draw mode. More... | |
bool | drawModeActive |
Flag, if the current draw mode is active => mouse down. More... | |
mreal | l_x1 |
mreal | l_y1 |
start coordinates for line More... | |
mreal | start_x |
mreal | start_y |
start coordinates for drawing More... | |
mreal | zoom_x0 |
mreal | zoom_x1 |
mreal | zoom_y0 |
mreal | zoom_y1 |
Zoom in region. More... | |
bool | showMessage |
Flag for showing messages (enabled by each execute()) More... | |
wxMenu * | popup |
Pointer to pop-up menu. More... | |
wxTimer * | timer |
Timer for animation. More... | |
int | nFrameCounter |
std::vector< wxImage > | vAnimationBuffer |
Private Member Functions | |
void | UpdateTools () |
This member function dis- or enables the animation tools depending on whether an animation is available. More... | |
Private Attributes | |
int | mouse_x0 |
int | mouse_y0 |
int | mouse_x1 |
int | mouse_y1 |
Temporary variables for mouse. More... | |
wxFrame * | m_parentFrame |
wxToolBar * | toptoolbar |
wxStatusBar * | statusbar |
wxTextCtrl * | styling |
wxMGL::wxMGL | ( | wxWindow * | parent, |
wxWindowID | id = -1 , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
bool | frameless = false , |
||
const wxString & | name = wxPanelNameStr |
||
) |
wxMGL constructor.
parent | wxWindow* |
id | wxWindowID |
pos | const wxPoint& |
size | const wxSize& |
style | long |
frameless | bool |
name | const wxString& |
Definition at line 139 of file wx.cpp.
References alpha, animation, AutoResize, bRotatingMode, bZoomingMode, dAzimutalViewPoint, DM_NONE, dPerspective, dPolarViewPoint, draw_cl, draw_func, draw_par, drawMode, drawModeActive, gr, ID_GRAPH_COPY, ID_GRAPH_DRAW_FIRST, ID_GRAPH_DRAW_LAST, ID_GRAPH_EXPORT, ID_GRAPH_NEXT, ID_GRAPH_PREVIOUS, ID_GRAPH_RESET, ID_GRAPH_ROTATE, ID_GRAPH_RUN, ID_GRAPH_STOP, ID_GRAPH_ZOOM, InitializeToolbar(), l_x1, l_y1, light, m_parentFrame, nFrameCounter, nFramesToSkip, OnMenuEvent(), popup, skiprotate, start_x, start_y, statusbar, timer, TIMER_ID, zoom_x0, zoom_x1, zoom_y0, zoom_y1, and zoomactive.
|
virtual |
void wxMGL::Adjust | ( | ) |
|
inline |
Definition at line 125 of file wx.h.
References Animation().
Referenced by CustomWindow::setItemGraph().
void wxMGL::Animation | ( | bool | st = true | ) |
Start animation.
This member function starts or stops the animation. It will also dis- or enable the corresponding tools from the toolbar.
st | bool |
Definition at line 1517 of file wx.cpp.
References animation, bRotatingMode, bZoomingMode, DM_NONE, gr, ID_GRAPH_COPY, ID_GRAPH_DRAW_FIRST, ID_GRAPH_DRAW_LAST, ID_GRAPH_EXPORT, ID_GRAPH_NEXT, ID_GRAPH_PREVIOUS, ID_GRAPH_RESET, ID_GRAPH_ROTATE, ID_GRAPH_RUN, ID_GRAPH_STOP, ID_GRAPH_ZOOM, m_parentFrame, nFrameCounter, SetDrawMode(), skiprotate, statusbar, timer, toptoolbar, vAnimationBuffer, and zoomactive.
Referenced by AnimateAsynch(), OnClose(), OnKeyDown(), OnMenuEvent(), and CustomWindow::setItemGraph().
|
protected |
This member function converts the RGB image created by the mglGraph object into a platform-independent wxImage object, which can be used to create a bitmap from.
Definition at line 799 of file wx.cpp.
References gr.
Referenced by setBitmap().
void wxMGL::Copy | ( | ) |
copy graphics to clipboard
Definition at line 1415 of file wx.cpp.
References pic.
Referenced by OnMenuEvent().
void wxMGL::DrawCurrentObject | ( | int | end_x, |
int | end_y | ||
) |
This member function draws the drawing object selected by the toolbar after the user released the left mouse button.
end_x | int |
end_y | int |
Definition at line 636 of file wx.cpp.
References _guilang, DM_CIRCLE, DM_LINE, DM_RECT, DM_TEXT, drawMode, Language::get(), gr, start_x, start_y, styling, and Update().
Referenced by OnMouseLeftUp().
void wxMGL::ExportBPS | ( | wxString | fname = L"" | ) |
export to bitmap EPS file
Definition at line 1373 of file wx.cpp.
References appName, gr, mglSetExtension(), mglw_str(), and ScriptName().
void wxMGL::ExportEPS | ( | wxString | fname = L"" | ) |
export to vector EPS file
Definition at line 1385 of file wx.cpp.
References appName, gr, mglSetExtension(), mglw_str(), and ScriptName().
Referenced by OnExport().
void wxMGL::ExportJPG | ( | wxString | fname = L"" | ) |
export to JPEG file
Definition at line 1362 of file wx.cpp.
References appName, gr, mglSetExtension(), mglw_str(), and ScriptName().
Referenced by OnExport().
void wxMGL::ExportPNG | ( | wxString | fname = L"" | ) |
export to PNG file
Definition at line 1341 of file wx.cpp.
References appName, gr, mglSetExtension(), mglw_str(), and ScriptName().
Referenced by OnExport().
void wxMGL::ExportPNGs | ( | wxString | fname = L"" | ) |
export to PNG file (no transparency)
Definition at line 1351 of file wx.cpp.
References appName, gr, mglSetExtension(), mglw_str(), and ScriptName().
void wxMGL::ExportSVG | ( | wxString | fname = L"" | ) |
export to SVG file
Definition at line 1400 of file wx.cpp.
References appName, gr, mglSetExtension(), mglw_str(), and ScriptName().
Referenced by OnExport().
|
inline |
wxString wxMGL::getClickedCoords | ( | ) |
|
inline |
|
inline |
|
inline |
Definition at line 77 of file wx.h.
References dPerspective.
|
inline |
double wxMGL::GetRatio | ( | ) |
|
inline |
|
inline |
|
inline |
|
protected |
This member function initializes the toolbar of the GraphViewer Window.
Definition at line 257 of file wx.cpp.
References _guilang, Language::get(), ID_GRAPH_CIRCLE, ID_GRAPH_COPY, ID_GRAPH_EXPORT, ID_GRAPH_LINE, ID_GRAPH_NEXT, ID_GRAPH_PREVIOUS, ID_GRAPH_RECT, ID_GRAPH_RESET, ID_GRAPH_ROTATE, ID_GRAPH_RUN, ID_GRAPH_STOP, ID_GRAPH_TEXT, ID_GRAPH_ZOOM, m_parentFrame, styling, and toptoolbar.
Referenced by wxMGL().
void wxMGL::NextSlide | ( | ) |
Show next slide.
This member function displays the next slide.
Definition at line 1446 of file wx.cpp.
References _guilang, animation, Language::get(), gr, m_parentFrame, nFrameCounter, statusbar, Update(), and vAnimationBuffer.
Referenced by OnKeyDown(), OnMenuEvent(), OnNavigationKey(), and OnNextSlide().
|
protected |
This member function is the event handling function applied, when the window is closed.
event | wxCloseEvent& |
Definition at line 1287 of file wx.cpp.
References Animation().
|
protected |
This member function is the event handling function applied, when the user moves the mouse in the window.
event | wxMouseEvent& |
Definition at line 1120 of file wx.cpp.
References m_parentFrame.
|
protected |
|
protected |
This member function displays the file dialog during exporting the current image displayed in the window.
Definition at line 307 of file wx.cpp.
References _guilang, ExportEPS(), ExportJPG(), ExportPNG(), ExportSVG(), Language::get(), m_parentFrame, and PLOTPATH.
Referenced by OnMenuEvent().
|
protected |
This member function is the event handling function applied, when the user presses a key.
event | wxKeyEvent& |
Definition at line 1158 of file wx.cpp.
References Animation(), m_parentFrame, NextSlide(), PrevSlide(), and timer.
|
protected |
Event handler for leaving the window. Will change the drawing mode to normal and redraw the windows contents.
event | wxMouseEvent& |
Definition at line 1138 of file wx.cpp.
References bRotatingMode, gr, skiprotate, and Update().
|
protected |
This member function is the event handling function for any events emitted by the toolbar.
event | wxCommandEvent& |
Definition at line 1222 of file wx.cpp.
References Animation(), bRotatingMode, bZoomingMode, Copy(), dAzimutalViewPoint, DM_CIRCLE, DM_LINE, DM_RECT, DM_TEXT, dPerspective, dPolarViewPoint, ID_GRAPH_ALPHA, ID_GRAPH_CIRCLE, ID_GRAPH_COPY, ID_GRAPH_EXPORT, ID_GRAPH_LIGHT, ID_GRAPH_LINE, ID_GRAPH_NEXT, ID_GRAPH_PREVIOUS, ID_GRAPH_RECT, ID_GRAPH_RESET, ID_GRAPH_ROTATE, ID_GRAPH_RUN, ID_GRAPH_STOP, ID_GRAPH_TEXT, ID_GRAPH_ZOOM, NextSlide(), OnExport(), PrevSlide(), SetDrawMode(), SetRotate(), SetZoom(), Update(), zoom_x0, zoom_x1, zoom_y0, and zoom_y1.
Referenced by wxMGL().
|
protected |
|
protected |
This member function is the event handling function applied, when the user presses the left mouse button.
ev | wxMouseEvent& |
Definition at line 859 of file wx.cpp.
References bRotatingMode, bZoomingMode, DM_NONE, drawMode, drawModeActive, m_parentFrame, mouse_x0, mouse_x1, mouse_y0, mouse_y1, start_x, start_y, and zoomactive.
|
protected |
This member function is the event handling function applied, when the user releases the left mouse button.
ev | wxMouseEvent& |
Definition at line 917 of file wx.cpp.
References bRotatingMode, bZoomingMode, DM_NONE, DrawCurrentObject(), drawMode, drawModeActive, gr, mouse_x0, mouse_x1, mouse_y0, mouse_y1, skiprotate, Update(), zoom_x0, zoom_x1, zoom_y0, zoom_y1, zoomactive, and ZoomIn().
|
protected |
This member function is the event handling function applied, when the user moves the mouse.
ev | wxMouseEvent& |
Definition at line 1020 of file wx.cpp.
References bRotatingMode, bZoomingMode, dAzimutalViewPoint, DM_NONE, DM_TEXT, dPerspective, dPolarViewPoint, drawMode, drawModeActive, gr, m_parentFrame, mouse_x0, mouse_x1, mouse_y0, mouse_y1, MousePos, skiprotate, start_x, start_y, statusbar, Update(), zoom_x0, zoom_x1, zoom_y0, zoom_y1, and zoomactive.
|
protected |
This member function is the event handling function applied, when the user releases the right mouse button.
ev | wxMouseEvent& |
Definition at line 990 of file wx.cpp.
References bRotatingMode, bZoomingMode, gr, mouse_x0, mouse_x1, mouse_y0, mouse_y1, popup, skiprotate, Update(), zoomactive, and ZoomOut().
|
protected |
This member function is the event handling function applied, when the user presses a navigation key.
event | wxNavigationKeyEvent& |
Definition at line 1197 of file wx.cpp.
References m_parentFrame, NextSlide(), and PrevSlide().
|
protected |
Show next slide.
This member function is the timer event handling function needed for the animation.
wxTimerEvent& |
Definition at line 452 of file wx.cpp.
References NextSlide().
|
protected |
This member function is the redrawing and painting event handler. It will display the bitmap currently selected by the wxMGL::Repaint() function.
event | wxPaintEvent& |
Definition at line 347 of file wx.cpp.
References DM_CIRCLE, DM_LINE, DM_RECT, draw_cl, drawMode, drawModeActive, gr, mouse_x0, mouse_x1, mouse_y0, mouse_y1, pic, start_x, start_y, Update(), and zoomactive.
|
protected |
void wxMGL::PrevSlide | ( | ) |
Show previous slide.
This member function displays the previous slide.
Definition at line 1485 of file wx.cpp.
References gr, m_parentFrame, nFrameCounter, statusbar, and Update().
Referenced by OnKeyDown(), OnMenuEvent(), and OnNavigationKey().
void wxMGL::Print | ( | ) |
Print plot.
void wxMGL::Repaint | ( | ) |
Get mouse rotation state.
This member function sets the current drawing as new bitmap and applies the view modifications in advance.
Definition at line 818 of file wx.cpp.
References bRotatingMode, bZoomingMode, dAzimutalViewPoint, dPerspective, dPolarViewPoint, draw_cl, gr, nFramesToSkip, pic, setBitmap(), SetSize(), skiprotate, zoom_x0, zoom_x1, zoom_y0, and zoom_y1.
Referenced by Adjust(), Restore(), SetPer(), SetPhi(), SetTet(), Update(), ZoomIn(), and ZoomOut().
void wxMGL::Restore | ( | ) |
Restore zoom and rotation to default values.
This member function can be used to reset the view modifications completely.
Definition at line 683 of file wx.cpp.
References bRotatingMode, bZoomingMode, Repaint(), SetPer(), SetPhi(), SetTet(), zoom_x0, zoom_x1, zoom_y0, and zoom_y1.
|
protected |
This function sets the current bitmap either by explicit conversion from the RGB data in the mglGraph object or by selecting an image from the buffer.
Definition at line 1303 of file wx.cpp.
References animation, ConvertFromGraph(), gr, nFrameCounter, pic, and vAnimationBuffer.
Referenced by Repaint().
|
inline |
|
inline |
|
inline |
void wxMGL::SetDrawMode | ( | int | dm | ) |
This member function selects the current drawing mode by dis- and enabling the tools and the other modification modes.
dm | int |
Definition at line 575 of file wx.cpp.
References _guilang, bRotatingMode, bZoomingMode, DM_CIRCLE, DM_LINE, DM_NONE, DM_RECT, DM_TEXT, drawMode, Language::get(), ID_GRAPH_CIRCLE, ID_GRAPH_DRAW_FIRST, ID_GRAPH_DRAW_LAST, ID_GRAPH_LINE, ID_GRAPH_RECT, ID_GRAPH_ROTATE, ID_GRAPH_TEXT, ID_GRAPH_ZOOM, statusbar, toptoolbar, and Update().
Referenced by Animation(), OnMenuEvent(), SetRotate(), and SetZoom().
|
inline |
Definition at line 49 of file wx.h.
References gr, and UpdateTools().
Referenced by CustomWindow::setItemGraph().
void wxMGL::SetPer | ( | int | p | ) |
Set perspective value.
This member function can be used to set the perspective effect applied to the drawing.
p | int |
Definition at line 467 of file wx.cpp.
References dPerspective, and Repaint().
Referenced by Restore().
void wxMGL::SetPhi | ( | int | p | ) |
Set Phi-angle value.
This member function can be used to set the azimutal viewpoint of the drawing.
p | int |
Definition at line 486 of file wx.cpp.
References dAzimutalViewPoint, and Repaint().
Referenced by Restore().
void wxMGL::SetRotate | ( | bool | r | ) |
Switch on/off mouse rotation.
This member function can be used to (de-)activate the rotating mode.
r | bool |
Definition at line 548 of file wx.cpp.
References _guilang, bRotatingMode, bZoomingMode, DM_NONE, Language::get(), ID_GRAPH_ROTATE, SetDrawMode(), statusbar, toptoolbar, and Update().
Referenced by OnMenuEvent().
void wxMGL::SetSize | ( | int | w, |
int | h | ||
) |
void wxMGL::SetTet | ( | int | t | ) |
Set Theta-angle value.
This member function can be used to set the polar viewpoint of the drawing.
t | int |
Definition at line 504 of file wx.cpp.
References dPolarViewPoint, and Repaint().
Referenced by Restore().
void wxMGL::SetZoom | ( | bool | z | ) |
Switch on/off mouse zooming.
This member function can be used to (de-)activate the zooming mode.
z | bool |
Definition at line 522 of file wx.cpp.
References _guilang, bRotatingMode, bZoomingMode, DM_NONE, Language::get(), ID_GRAPH_ZOOM, SetDrawMode(), statusbar, toptoolbar, and Update().
Referenced by OnMenuEvent().
void wxMGL::Update | ( | ) |
Update picture.
This member function tells the internal mglGraph object to draw its contents.
Definition at line 750 of file wx.cpp.
References alpha, appName, bRotatingMode, draw_cl, draw_func, draw_par, gr, light, MousePos, Repaint(), and vAnimationBuffer.
Referenced by DrawCurrentObject(), NextSlide(), OnLeave(), OnMenuEvent(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), OnPaint(), OnSize(), PrevSlide(), SetDrawMode(), SetRotate(), SetSize(), and SetZoom().
|
private |
This member function dis- or enables the animation tools depending on whether an animation is available.
Definition at line 215 of file wx.cpp.
References gr, ID_GRAPH_NEXT, ID_GRAPH_PREVIOUS, ID_GRAPH_RUN, ID_GRAPH_STOP, m_parentFrame, nFrameCounter, statusbar, and toptoolbar.
Referenced by SetGraph().
void wxMGL::ZoomIn | ( | int | x, |
int | y | ||
) |
Zoom in graphics.
Applies a zoom with the factor of two around the selected position (passed as pixel coordinates).
x | int |
y | int |
Definition at line 705 of file wx.cpp.
References Repaint(), zoom_x0, zoom_x1, zoom_y0, and zoom_y1.
Referenced by OnMouseLeftUp().
void wxMGL::ZoomOut | ( | int | x, |
int | y | ||
) |
Zoom out graphics.
Applies a zoom with the factor of one half around the selected position (passed as pixel coordinates).
x | int |
y | int |
Definition at line 729 of file wx.cpp.
References Repaint(), zoom_x0, zoom_x1, zoom_y0, and zoom_y1.
Referenced by OnMouseRightUp().
|
inline |
|
protected |
Transparency state.
Definition at line 175 of file wx.h.
Referenced by GetAlpha(), Update(), and wxMGL().
|
protected |
Definition at line 180 of file wx.h.
Referenced by Animation(), NextSlide(), setBitmap(), and wxMGL().
wxString wxMGL::appName |
Application name for message boxes.
Definition at line 41 of file wx.h.
Referenced by ExportBPS(), ExportEPS(), ExportJPG(), ExportPNG(), ExportPNGs(), ExportSVG(), and Update().
bool wxMGL::AutoResize |
|
protected |
Mouse rotation state.
Definition at line 178 of file wx.h.
Referenced by Animation(), GetRotate(), OnLeave(), OnMenuEvent(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), Repaint(), Restore(), SetDrawMode(), SetRotate(), SetZoom(), Update(), and wxMGL().
|
protected |
Mouse zoom state.
Definition at line 177 of file wx.h.
Referenced by Animation(), GetZoom(), OnMenuEvent(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), Repaint(), Restore(), SetDrawMode(), SetRotate(), SetZoom(), and wxMGL().
|
protected |
Rotation angles.
Definition at line 173 of file wx.h.
Referenced by GetPhi(), OnMenuEvent(), OnMouseMove(), Repaint(), SetPhi(), and wxMGL().
|
protected |
Value of perspective ( must be in [0,1) )
Definition at line 174 of file wx.h.
Referenced by GetPer(), OnMenuEvent(), OnMouseMove(), Repaint(), SetPer(), and wxMGL().
|
protected |
Definition at line 173 of file wx.h.
Referenced by GetTet(), OnMenuEvent(), OnMouseMove(), Repaint(), SetTet(), and wxMGL().
|
protected |
|
protected |
|
protected |
|
protected |
Stores the current draw mode.
Definition at line 183 of file wx.h.
Referenced by DrawCurrentObject(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnPaint(), SetDrawMode(), and wxMGL().
|
protected |
Flag, if the current draw mode is active => mouse down.
Definition at line 184 of file wx.h.
Referenced by OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnPaint(), and wxMGL().
|
protected |
pointer to grapher
Definition at line 165 of file wx.h.
Referenced by Adjust(), Animation(), ConvertFromGraph(), DrawCurrentObject(), ExportBPS(), ExportEPS(), ExportJPG(), ExportPNG(), ExportPNGs(), ExportSVG(), getClickedCoords(), GetGraph(), getNumFrames(), GetRatio(), NextSlide(), OnLeave(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), OnPaint(), OnSize(), PrevSlide(), Repaint(), setBitmap(), SetDraw(), SetGraph(), SetSize(), Update(), UpdateTools(), and wxMGL().
|
protected |
|
protected |
Lightning state.
Definition at line 176 of file wx.h.
Referenced by GetLight(), Update(), and wxMGL().
|
private |
Definition at line 200 of file wx.h.
Referenced by Animation(), InitializeToolbar(), NextSlide(), OnEnter(), OnExport(), OnKeyDown(), OnMouseLeftDown(), OnMouseMove(), OnNavigationKey(), PrevSlide(), UpdateTools(), and wxMGL().
|
private |
Definition at line 199 of file wx.h.
Referenced by getClickedCoords(), OnMouseDown(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), and OnPaint().
|
private |
Definition at line 199 of file wx.h.
Referenced by OnMouseDown(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), and OnPaint().
|
private |
Definition at line 199 of file wx.h.
Referenced by getClickedCoords(), OnMouseDown(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), and OnPaint().
|
private |
Temporary variables for mouse.
Definition at line 199 of file wx.h.
Referenced by OnMouseDown(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), and OnPaint().
|
protected |
Last mouse position.
Definition at line 171 of file wx.h.
Referenced by OnMouseMove(), and Update().
|
protected |
Definition at line 191 of file wx.h.
Referenced by Animation(), NextSlide(), PrevSlide(), setBitmap(), UpdateTools(), and wxMGL().
|
protected |
|
protected |
|
protected |
Pointer to pop-up menu.
Definition at line 189 of file wx.h.
Referenced by OnMouseRightUp(), SetPopup(), and wxMGL().
|
protected |
|
protected |
Definition at line 181 of file wx.h.
Referenced by Animation(), OnLeave(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), Repaint(), and wxMGL().
|
protected |
Definition at line 186 of file wx.h.
Referenced by DrawCurrentObject(), OnMouseLeftDown(), OnMouseMove(), OnPaint(), and wxMGL().
|
protected |
start coordinates for drawing
Definition at line 186 of file wx.h.
Referenced by DrawCurrentObject(), OnMouseLeftDown(), OnMouseMove(), OnPaint(), and wxMGL().
|
private |
Definition at line 202 of file wx.h.
Referenced by Animation(), NextSlide(), OnMouseMove(), PrevSlide(), SetDrawMode(), SetRotate(), SetZoom(), UpdateTools(), and wxMGL().
|
private |
Definition at line 205 of file wx.h.
Referenced by DrawCurrentObject(), and InitializeToolbar().
|
protected |
Timer for animation.
Definition at line 190 of file wx.h.
Referenced by Animation(), OnKeyDown(), wxMGL(), and ~wxMGL().
|
private |
Definition at line 201 of file wx.h.
Referenced by Animation(), InitializeToolbar(), SetDrawMode(), SetRotate(), SetZoom(), and UpdateTools().
|
protected |
Definition at line 192 of file wx.h.
Referenced by Animation(), NextSlide(), setBitmap(), and Update().
|
protected |
Definition at line 187 of file wx.h.
Referenced by OnMenuEvent(), OnMouseLeftUp(), OnMouseMove(), Repaint(), Restore(), wxMGL(), ZoomIn(), ZoomOut(), and ZoomRegion().
|
protected |
Definition at line 187 of file wx.h.
Referenced by OnMenuEvent(), OnMouseLeftUp(), OnMouseMove(), Repaint(), Restore(), wxMGL(), ZoomIn(), ZoomOut(), and ZoomRegion().
|
protected |
Definition at line 187 of file wx.h.
Referenced by OnMenuEvent(), OnMouseLeftUp(), OnMouseMove(), Repaint(), Restore(), wxMGL(), ZoomIn(), ZoomOut(), and ZoomRegion().
|
protected |
Zoom in region.
Definition at line 187 of file wx.h.
Referenced by OnMenuEvent(), OnMouseLeftUp(), OnMouseMove(), Repaint(), Restore(), wxMGL(), ZoomIn(), ZoomOut(), and ZoomRegion().
|
protected |
Definition at line 179 of file wx.h.
Referenced by Animation(), OnMouseLeftDown(), OnMouseLeftUp(), OnMouseMove(), OnMouseRightUp(), OnPaint(), and wxMGL().