SeExpr
|
#include <ExprGrapher2d.h>
Signals | |
void | scaleValueManipulated () |
void | clicked () |
Public Member Functions | |
ExprGrapherView (ExprGrapherWidget &widget, QWidget *parent, int width, int height) | |
virtual | ~ExprGrapherView () |
void | update () |
void | setWindow (float xmin, float xmax, float ymin, float ymax, float z) |
void | getWindow (float &xmin, float &xmax, float &ymin, float &ymax, float &z) |
Protected Member Functions | |
void | clear () |
void | paintGL () |
void | mousePressEvent (QMouseEvent *event) |
void | mouseReleaseEvent (QMouseEvent *event) |
void | mouseMoveEvent (QMouseEvent *event) |
Protected Attributes | |
int | event_oldx |
int | event_oldy |
Private Attributes | |
ExprGrapherWidget & | widget |
float * | _image |
int | _width |
int | _height |
float | xmin |
float | xmax |
float | ymin |
float | ymax |
float | z |
float | dx |
float | dy |
bool | scaling |
bool | translating |
Definition at line 34 of file ExprGrapher2d.h.
ExprGrapherView::ExprGrapherView | ( | ExprGrapherWidget & | widget, |
QWidget * | parent, | ||
int | width, | ||
int | height | ||
) |
Definition at line 98 of file ExprGrapher2d.cpp.
References _height, _image, _width, clear(), and setWindow().
|
virtual |
Definition at line 112 of file ExprGrapher2d.cpp.
References _image.
|
protected |
Definition at line 138 of file ExprGrapher2d.cpp.
References _height, _image, _width, and index().
Referenced by ExprGrapherView(), and update().
|
signal |
Referenced by mouseReleaseEvent().
void ExprGrapherView::getWindow | ( | float & | xmin, |
float & | xmax, | ||
float & | ymin, | ||
float & | ymax, | ||
float & | z | ||
) |
Definition at line 129 of file ExprGrapher2d.cpp.
References xmax, xmin, ymax, ymin, and z.
Referenced by ExprGrapherWidget::ExprGrapherWidget(), ExprGrapherWidget::scaleValueEdited(), and ExprGrapherWidget::scaleValueManipulated().
|
protected |
Definition at line 171 of file ExprGrapher2d.cpp.
References dx, dy, event_oldx, event_oldy, f(), pow(), scaleValueManipulated(), scaling, setWindow(), translating, update(), x, xmax, xmin, y, ymax, ymin, and z.
|
protected |
Definition at line 150 of file ExprGrapher2d.cpp.
References event_oldx, event_oldy, scaling, and translating.
|
protected |
Definition at line 164 of file ExprGrapher2d.cpp.
References clicked(), scaling, and translating.
|
protected |
|
signal |
Referenced by mouseMoveEvent().
void ExprGrapherView::setWindow | ( | float | xmin, |
float | xmax, | ||
float | ymin, | ||
float | ymax, | ||
float | z | ||
) |
Definition at line 117 of file ExprGrapher2d.cpp.
References _height, _width, dx, dy, xmax, xmin, ymax, ymin, and z.
Referenced by ExprGrapherView(), mouseMoveEvent(), and ExprGrapherWidget::scaleValueEdited().
void ExprGrapherView::update | ( | ) |
Definition at line 203 of file ExprGrapher2d.cpp.
References _height, _image, _width, clear(), dx, dy, SeExpr2::Expression::evalFP(), ExprGrapherWidget::expr, index(), SeExpr2::Expression::isValid(), BasicExpression::P, BasicExpression::u, BasicExpression::v, BasicExpression::ScalarRef::value, BasicExpression::VectorRef::value, value(), widget, x, xmin, y, ymin, and z.
Referenced by mouseMoveEvent(), and ExprGrapherWidget::update().
|
private |
Definition at line 61 of file ExprGrapher2d.h.
Referenced by clear(), ExprGrapherView(), paintGL(), setWindow(), and update().
|
private |
Definition at line 59 of file ExprGrapher2d.h.
Referenced by clear(), ExprGrapherView(), paintGL(), update(), and ~ExprGrapherView().
|
private |
Definition at line 60 of file ExprGrapher2d.h.
Referenced by clear(), ExprGrapherView(), paintGL(), setWindow(), and update().
|
private |
Definition at line 64 of file ExprGrapher2d.h.
Referenced by mouseMoveEvent(), setWindow(), and update().
|
private |
Definition at line 64 of file ExprGrapher2d.h.
Referenced by mouseMoveEvent(), setWindow(), and update().
|
protected |
Definition at line 52 of file ExprGrapher2d.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
protected |
Definition at line 52 of file ExprGrapher2d.h.
Referenced by mouseMoveEvent(), and mousePressEvent().
|
private |
Definition at line 67 of file ExprGrapher2d.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 67 of file ExprGrapher2d.h.
Referenced by mouseMoveEvent(), mousePressEvent(), and mouseReleaseEvent().
|
private |
Definition at line 36 of file ExprGrapher2d.h.
Referenced by update().
|
private |
Definition at line 63 of file ExprGrapher2d.h.
Referenced by getWindow(), mouseMoveEvent(), and setWindow().
|
private |
Definition at line 63 of file ExprGrapher2d.h.
Referenced by getWindow(), mouseMoveEvent(), setWindow(), and update().
|
private |
Definition at line 63 of file ExprGrapher2d.h.
Referenced by getWindow(), mouseMoveEvent(), and setWindow().
|
private |
Definition at line 63 of file ExprGrapher2d.h.
Referenced by getWindow(), mouseMoveEvent(), setWindow(), and update().
|
private |
Definition at line 63 of file ExprGrapher2d.h.
Referenced by getWindow(), mouseMoveEvent(), setWindow(), and update().