Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members Related Pages Search
GLBasicGraph Class ReferenceHandles various OpenGL properties such as lighting, OpenGL events, rotation, axis, and scale. Currently this class is in alpha stage.
More...
#include <glbasicgraph.h>
Inheritance diagram for GLBasicGraph:
[legend]Collaboration diagram for GLBasicGraph:
[legend]List of all members.
|
Public Slots |
void | zoomIn () |
void | zoomOut () |
void | zoomStd () |
Signals |
void | graphRotated (const GLGraphEvent &) |
void | dimensionsChanged (const GLGraphEvent &) |
void | activeCoordinateChanged (const QString &, const QString &, const QString &) |
void | infoMessageReady (const QString &) |
void | rotateCanceled () |
Public Methods |
| GLBasicGraph (QWidget *parent=0, const char *name=0) |
virtual | ~GLBasicGraph () |
virtual void | load_key (const char *key, const char *value) |
int | setRange (GLfloat xMin, GLfloat xMax, GLfloat yMin, GLfloat yMax, GLfloat zMin, GLfloat zMax) |
int | setXMin (double) |
int | setXMax (double) |
int | setYMin (double) |
int | setYMax (double) |
int | setZMin (double) |
int | setZMax (double) |
int | setXMinView (double) |
int | setXMaxView (double) |
int | setYMinView (double) |
int | setYMaxView (double) |
int | setZMinView (double) |
int | setZMaxView (double) |
void | setPolarEye (double) |
void | setAzimuthalEye (double) |
GLfloat | getXMin () const |
GLfloat | getXMax () const |
GLfloat | getYMin () const |
GLfloat | getYMax () const |
GLfloat | getZMin () const |
GLfloat | getZMax () const |
GLfloat | getXMinView () const |
GLfloat | getXMaxView () const |
GLfloat | getYMinView () const |
GLfloat | getYMaxView () const |
GLfloat | getZMinView () const |
GLfloat | getZMaxView () const |
GLfloat | getPolarEye () const |
GLfloat | getAzimuthalEye () const |
QColor | axisColor () const |
QColor | backgroundColor () const |
QColor | scaleColor () const |
void | setAxisColor (const QColor &c) |
void | setBackgroundColor (const QColor &c) |
void | setScaleColor (const QColor &c) |
void | setAxis (bool b) |
void | setScale (bool b) |
bool | getAxisState () const |
bool | getScaleState () const |
int | getXZoomFactor () const |
int | getYZoomFactor () const |
void | setXZoomFactor (int i) |
void | setYZoomFactor (int i) |
void | exportAsImage (const QString &, const QString &) |
| Saves the graph as an image.
|
void | getPixmap (QPixmap &pm) |
virtual void | print (QPrinter *) |
| Prints graph as is.
|
void | autoRotateX (bool) |
void | autoRotateY (bool) |
void | autoRotateZ (bool) |
bool | isAutoRotatingX () const |
bool | isAutoRotatingY () const |
bool | isAutoRotatingZ () const |
double | getMouseX () const |
double | getMouseY () const |
virtual void | setSnapToGrid (bool b) |
virtual bool | isSnapToGrid () const |
Protected Methods |
void | initializeGL () |
void | resizeGL (int w, int h) |
void | paintGL () |
void | mousePressEvent (QMouseEvent *) |
void | mouseMoveEvent (QMouseEvent *) |
void | mouseReleaseEvent (QMouseEvent *) |
void | emitGraphRotated () |
void | emitDimensionsChanged () |
void | drawText (GLfloat x, GLfloat y, GLfloat z, const char *s) |
void | updateOrtho () |
void | updateView () |
virtual void | orthoChanged () |
double | toGraphXCoord (double) |
double | toGraphYCoord (double) |
void | setMouseX (double x_coordiniate, bool snapToGrid=true) |
| Sets the x-coordinate at which you wish the graph to think the mouse is at to the value in "x_coordinate".
|
void | setMouseY (double y_coordiniate, bool snapToGrid=true) |
| Sets the y-coordinate at which you wish the graph to think the mouse is at to the value in "y_coordinate".
|
virtual double | snapIntervalX () const=0 |
virtual double | snapIntervalY () const=0 |
virtual double | startSnap () const |
Protected Attributes |
GLfloat | _height |
GLfloat | _width |
Detailed Description
Handles various OpenGL properties such as lighting, OpenGL events, rotation, axis, and scale. Currently this class is in alpha stage.
- Author:
-
Fungmeista
Definition at line 38 of file glbasicgraph.h.
Member Function Documentation
void GLBasicGraph::exportAsImage |
( |
const QString & |
, |
|
|
const QString & |
|
|
) |
[virtual] |
|
|
Saves the graph as an image.
- Parameters:
-
filename |
Path plus the complete name of the image file to save to. This should include the suffix of the file name if one is desired. |
suffix |
This specifies what type of image format export the graph as. This should be the standard file suffix of the desired image format (png, jpg, bmp, etc.). |
Implements CommonGraph.
Definition at line 706 of file glbasicgraph.cpp. |
double GLBasicGraph::getMouseX |
( |
|
) |
const [inline] |
|
|
- Returns :
-
The x coordinate of where the active point is over the graph. This is usually the x coordinate of the mouse over the graph. An exception could be when tracing a function.
Definition at line 117 of file glbasicgraph.h. |
double GLBasicGraph::getMouseY |
( |
|
) |
const [inline] |
|
|
- Returns :
-
The x coordinate of where the active point is over the graph. This is usually the x coordinate of the mouse over the graph. An exception could be when tracing a function.
Definition at line 122 of file glbasicgraph.h. |
void GLBasicGraph::print |
( |
QPrinter * |
|
) |
[virtual] |
|
void GLBasicGraph::setMouseX |
( |
double |
x_coordiniate, |
|
|
bool |
snapToGrid = true |
|
) |
[protected] |
|
|
Sets the x-coordinate at which you wish the graph to think the mouse is at to the value in "x_coordinate".
The second argument can optionally be given and this is a boolean which overrides the global option of whether or not to snap to the grid.
Definition at line 848 of file glbasicgraph.cpp. |
void GLBasicGraph::setMouseY |
( |
double |
y_coordiniate, |
|
|
bool |
snapToGrid = true |
|
) |
[protected] |
|
|
Sets the y-coordinate at which you wish the graph to think the mouse is at to the value in "y_coordinate".
The second argument can optionally be given and this is a boolean which overrides whether the global option to snap to the grid.
Definition at line 873 of file glbasicgraph.cpp. |
The documentation for this class was generated from the following files:
|