SeExpr
|
#include <ExprDeepWater.h>
Public Slots | |
void | resolutionChanged (int val) |
void | tileSizeChanged (double val) |
void | lengthCutoffChanged (double val) |
void | amplitudeChanged (double val) |
void | windAngleChanged (double val) |
void | windSpeedChanged (double val) |
void | flowDirectionChanged (QString val) |
void | directionalFactorExponentChanged (double val) |
void | directionalReflectionDampingChanged (double val) |
void | sharpenChanged (double val) |
void | resize (const int width, const int height) |
Signals | |
void | deepWaterChanged () |
Public Member Functions | |
DeepWaterScene () | |
~DeepWaterScene () | |
void | setParams (const SeDeepWaterParams ¶msIn) |
void | drawRect () |
void | drawPoly () |
void | drawGrid () |
void | emitDeepWaterChanged () |
void | rebuildDeepWater () |
Public Attributes | |
SeDeepWaterParams | params |
Private Types | |
typedef SeDeepWater< double > | T_CURVE |
Private Attributes | |
T_CURVE * | _curve |
int | _width |
int | _height |
QGraphicsPolygonItem * | _curvePoly |
QGraphicsRectItem * | _baseRect |
QGraphicsRectItem * | _gridRect |
Friends | |
class | ExprDeepWater |
Definition at line 200 of file ExprDeepWater.h.
|
private |
Definition at line 204 of file ExprDeepWater.h.
DeepWaterScene::DeepWaterScene | ( | ) |
Definition at line 40 of file ExprDeepWater.cpp.
DeepWaterScene::~DeepWaterScene | ( | ) |
Definition at line 45 of file ExprDeepWater.cpp.
References _curve.
|
slot |
Definition at line 79 of file ExprDeepWater.cpp.
References SeDeepWaterParams::amplitude, params, and setParams().
|
signal |
Referenced by emitDeepWaterChanged().
|
slot |
Definition at line 106 of file ExprDeepWater.cpp.
References SeDeepWaterParams::directionalFactorExponent, params, and setParams().
|
slot |
Definition at line 112 of file ExprDeepWater.cpp.
References SeDeepWaterParams::directionalReflectionDamping, params, and setParams().
void DeepWaterScene::drawGrid | ( | ) |
Definition at line 178 of file ExprDeepWater.cpp.
References _curve, _gridRect, _height, _width, SeDeepWater< T >::getKHigh(), SeDeepWater< T >::getKLow(), and SeDeepWater< T >::inGrid().
Referenced by resize(), and setParams().
void DeepWaterScene::drawPoly | ( | ) |
Definition at line 159 of file ExprDeepWater.cpp.
References _curve, _curvePoly, _height, _width, SeDeepWater< T >::getValue(), and x.
Referenced by resize(), and setParams().
void DeepWaterScene::drawRect | ( | ) |
void DeepWaterScene::emitDeepWaterChanged | ( | ) |
Definition at line 142 of file ExprDeepWater.cpp.
References deepWaterChanged().
Referenced by setParams().
|
slot |
Definition at line 97 of file ExprDeepWater.cpp.
References components(), SeDeepWaterParams::flowDirection, params, and setParams().
|
slot |
Definition at line 73 of file ExprDeepWater.cpp.
References SeDeepWaterParams::lengthCutoff, params, and setParams().
void DeepWaterScene::rebuildDeepWater | ( | ) |
Definition at line 133 of file ExprDeepWater.cpp.
References _curve, SeDeepWater< T >::generateSpectrum(), params, and SeDeepWater< T >::setParams().
Referenced by setParams().
|
slot |
Definition at line 50 of file ExprDeepWater.cpp.
References _height, _width, drawGrid(), drawPoly(), and drawRect().
Referenced by DeepWaterScene().
|
slot |
Definition at line 61 of file ExprDeepWater.cpp.
References params, SeDeepWaterParams::resolution, and setParams().
void DeepWaterScene::setParams | ( | const SeDeepWaterParams & | paramsIn | ) |
Definition at line 124 of file ExprDeepWater.cpp.
References drawGrid(), drawPoly(), emitDeepWaterChanged(), params, and rebuildDeepWater().
Referenced by amplitudeChanged(), directionalFactorExponentChanged(), directionalReflectionDampingChanged(), flowDirectionChanged(), lengthCutoffChanged(), resolutionChanged(), ExprDeepWater::setParams(), sharpenChanged(), tileSizeChanged(), windAngleChanged(), and windSpeedChanged().
|
slot |
Definition at line 118 of file ExprDeepWater.cpp.
References params, setParams(), and SeDeepWaterParams::sharpen.
|
slot |
Definition at line 67 of file ExprDeepWater.cpp.
References params, setParams(), and SeDeepWaterParams::tileSize.
|
slot |
Definition at line 85 of file ExprDeepWater.cpp.
References params, setParams(), and SeDeepWaterParams::windAngle.
|
slot |
Definition at line 91 of file ExprDeepWater.cpp.
References params, setParams(), and SeDeepWaterParams::windSpeed.
|
friend |
Definition at line 219 of file ExprDeepWater.h.
|
private |
Definition at line 246 of file ExprDeepWater.h.
Referenced by drawRect().
|
private |
Definition at line 224 of file ExprDeepWater.h.
Referenced by drawGrid(), drawPoly(), rebuildDeepWater(), and ~DeepWaterScene().
|
private |
Definition at line 245 of file ExprDeepWater.h.
Referenced by drawPoly().
|
private |
Definition at line 247 of file ExprDeepWater.h.
Referenced by drawGrid().
|
private |
Definition at line 244 of file ExprDeepWater.h.
Referenced by DeepWaterScene(), drawGrid(), drawPoly(), drawRect(), and resize().
|
private |
Definition at line 243 of file ExprDeepWater.h.
Referenced by DeepWaterScene(), drawGrid(), drawPoly(), drawRect(), and resize().
SeDeepWaterParams DeepWaterScene::params |
Definition at line 221 of file ExprDeepWater.h.
Referenced by amplitudeChanged(), DeepWaterControl::deepWaterChanged(), directionalFactorExponentChanged(), directionalReflectionDampingChanged(), flowDirectionChanged(), lengthCutoffChanged(), rebuildDeepWater(), resolutionChanged(), setParams(), sharpenChanged(), tileSizeChanged(), windAngleChanged(), and windSpeedChanged().