amath
1.8.5
Simple command line calculator
|
#include <fgrid.h>
Public Member Functions | |
Grid (UserFunction *function) | |
~Grid () | |
void | SetFunctionBounderies (double minX, double maxX) |
void | SetScreenBounderues (int minX, int maxX, int minY, int maxY) |
void | GetScreenCoordinates (double value, int *x, int *y) const |
void | GetScreenCoordinates (double xval, int *x, double yval, int *y) const |
double | GetHorizontalResolution () const |
void | GetXAxis (int *xstart, int *xend, int *ystart, int *yend) const |
void | GetYAxis (int *xstart, int *xend, int *ystart, int *yend) const |
Private Member Functions | |
double | FunctionValue (double parameter) const |
Private Attributes | |
UserFunction * | function |
RealNumber * | parameter |
double | minX |
double | maxX |
double | minY |
double | maxY |
int | pad |
int | screenMinX |
int | screenMaxX |
int | screenMinY |
int | screenMaxY |
int | originX |
int | originY |
double | zoom |
double | scaleX |
double | scaleY |
|
explicit |
Definition at line 33 of file fgrid.cpp.
References function, pad, parameter, RealNumber::RealNumber(), and zoom.
Referenced by PlotStatement::Execute().
|
private |
Definition at line 83 of file fgrid.cpp.
References Variable::AssignValue(), ExpressionNode::Evaluate(), function, UserFunction::GetExpression(), Number::GetRealValue(), UserFunction::GetVariable(), parameter, and RealNumber::SetRealValue().
Referenced by GetScreenCoordinates(), and SetFunctionBounderies().
double Grid::GetHorizontalResolution | ( | ) | const |
Definition at line 46 of file fgrid.cpp.
References maxX, minX, screenMaxX, and screenMinX.
Referenced by PlotStatement::Execute().
void Grid::GetScreenCoordinates | ( | double | value, |
int * | x, | ||
int * | y | ||
) | const |
Definition at line 92 of file fgrid.cpp.
References FunctionValue(), originX, originY, scaleX, scaleY, screenMaxX, screenMaxY, screenMinX, screenMinY, and zoom.
Referenced by PlotStatement::Execute().
void Grid::GetScreenCoordinates | ( | double | xval, |
int * | x, | ||
double | yval, | ||
int * | y | ||
) | const |
Definition at line 101 of file fgrid.cpp.
References originX, originY, scaleX, scaleY, screenMaxX, screenMaxY, screenMinX, screenMinY, and zoom.
void Grid::GetXAxis | ( | int * | xstart, |
int * | xend, | ||
int * | ystart, | ||
int * | yend | ||
) | const |
void Grid::GetYAxis | ( | int * | xstart, |
int * | xend, | ||
int * | ystart, | ||
int * | yend | ||
) | const |
void Grid::SetFunctionBounderies | ( | double | minX, |
double | maxX | ||
) |
Definition at line 51 of file fgrid.cpp.
References FunctionValue(), maxX, maxY, minX, minY, scaleX, scaleY, screenMaxX, screenMaxY, screenMinX, and screenMinY.
Referenced by PlotStatement::Execute().
void Grid::SetScreenBounderues | ( | int | minX, |
int | maxX, | ||
int | minY, | ||
int | maxY | ||
) |
Definition at line 72 of file fgrid.cpp.
References originX, originY, pad, screenMaxX, screenMaxY, screenMinX, and screenMinY.
Referenced by PlotStatement::Execute().
|
private |
Definition at line 59 of file fgrid.h.
Referenced by FunctionValue(), and Grid().
|
private |
Definition at line 63 of file fgrid.h.
Referenced by GetHorizontalResolution(), and SetFunctionBounderies().
|
private |
Definition at line 65 of file fgrid.h.
Referenced by SetFunctionBounderies().
|
private |
Definition at line 62 of file fgrid.h.
Referenced by GetHorizontalResolution(), and SetFunctionBounderies().
|
private |
Definition at line 64 of file fgrid.h.
Referenced by SetFunctionBounderies().
|
private |
Definition at line 73 of file fgrid.h.
Referenced by GetScreenCoordinates(), GetYAxis(), and SetScreenBounderues().
|
private |
Definition at line 74 of file fgrid.h.
Referenced by GetScreenCoordinates(), GetXAxis(), and SetScreenBounderues().
|
private |
Definition at line 67 of file fgrid.h.
Referenced by Grid(), and SetScreenBounderues().
|
private |
Definition at line 60 of file fgrid.h.
Referenced by FunctionValue(), Grid(), and ~Grid().
|
private |
Definition at line 76 of file fgrid.h.
Referenced by GetScreenCoordinates(), and SetFunctionBounderies().
|
private |
Definition at line 77 of file fgrid.h.
Referenced by GetScreenCoordinates(), and SetFunctionBounderies().
|
private |
Definition at line 69 of file fgrid.h.
Referenced by GetHorizontalResolution(), GetScreenCoordinates(), GetXAxis(), SetFunctionBounderies(), and SetScreenBounderues().
|
private |
Definition at line 71 of file fgrid.h.
Referenced by GetScreenCoordinates(), GetYAxis(), SetFunctionBounderies(), and SetScreenBounderues().
|
private |
Definition at line 68 of file fgrid.h.
Referenced by GetHorizontalResolution(), GetScreenCoordinates(), GetXAxis(), SetFunctionBounderies(), and SetScreenBounderues().
|
private |
Definition at line 70 of file fgrid.h.
Referenced by GetScreenCoordinates(), GetYAxis(), SetFunctionBounderies(), and SetScreenBounderues().
|
private |
Definition at line 75 of file fgrid.h.
Referenced by GetScreenCoordinates(), and Grid().