#include <StreamLine.h>
Public Member Functions | |
StreamLine (FlowData *fd) | |
gv Contructor | |
~StreamLine () | |
gv Destructor | |
void | create () |
gv Create streamlines with current parameters | |
void | create (float dSep, float dTest, bool linesActive, bool taperingActive, bool glyphActive) |
gv Create streamlines with given parameters | |
void | draw () |
gv Draw previously created streamlines | |
void | reset () |
gv Resets streamline and deletes all contents | |
void | setDSep (float dSep) |
gv Set dSep from UI | |
float | getDSep () |
gv Returns the current dSep-value | |
void | setDTest (float dTest) |
gv Set dTest from UI (CORRECT: percentage of dSep!) | |
float | getDTest () |
gv Returns the current dTest-value (CORRECT: percentage of dSep!) | |
void | setGlyphSize (int size) |
gv Set glyph-size from UI | |
int | getGlyphSize () |
gv Returns glyph-size | |
void | setGlyphDistance (int distance) |
gv Set glyph-distance from UI | |
int | getGlyphDistance () |
gv Returns glyph-distance | |
void | setLineColor (float *color) |
gv Set the line-color to the given RGBA-value | |
float * | getLineColor () |
gv Returns the current line-color | |
void | setGlyphColor (float *color) |
gv Set the glyph-color to the given RGBA-value | |
float * | getGlyphColor () |
gv Returns the current glyph-color | |
void | setIntegrationMethod (short method) |
gv Set integration-method from UI | |
short | getIntegrationMethod () |
gv Returns the current integration-method | |
void | setLinesActive (bool isActive) |
gv Set if lines are drawn from UI | |
bool | getLinesActive () |
gv Returns true if lines are active. | |
void | setTaperingActive (bool isActive) |
gv Set tapering from UI | |
bool | getTaperingActive () |
gv Returns true if tapering is active. | |
void | setGlyphActive (bool isActive) |
gv Set if glyphs are drawn from UI | |
bool | getGlyphActive () |
gv Returns true if glyphs are active. | |
Friends | |
class | StreamLineGrid |
Definition at line 32 of file StreamLine.h.
StreamLine::StreamLine | ( | FlowData * | fd | ) |
gv Contructor
Definition at line 13 of file StreamLine.cpp.
References FlowData::getGeometry(), and reset().
StreamLine::~StreamLine | ( | ) |
void StreamLine::create | ( | ) |
gv Create streamlines with current parameters
Definition at line 33 of file StreamLine.cpp.
References reset(), and StreamLineGrid.
Referenced by create(), OpenGLWidget::setLinesActive(), and OpenGLWidget::updateStreamLines().
void StreamLine::create | ( | float | dSep, | |
float | dTest, | |||
bool | linesActive, | |||
bool | taperingActive, | |||
bool | glyphActive | |||
) |
gv Create streamlines with given parameters
Definition at line 99 of file StreamLine.cpp.
References create().
void StreamLine::draw | ( | ) |
gv Draw previously created streamlines
Definition at line 150 of file StreamLine.cpp.
Referenced by OpenGLWidget::paintGL().
void StreamLine::reset | ( | ) |
gv Resets streamline and deletes all contents
Definition at line 114 of file StreamLine.cpp.
References EULER, setGlyphColor(), setGlyphSize(), and setLineColor().
Referenced by create(), OpenGLWidget::setFlowData(), and StreamLine().
void StreamLine::setDSep | ( | float | dSep | ) | [inline] |
gv Set dSep from UI
Definition at line 60 of file StreamLine.h.
Referenced by OpenGLWidget::setDSep().
float StreamLine::getDSep | ( | ) | [inline] |
void StreamLine::setDTest | ( | float | dTest | ) | [inline] |
gv Set dTest from UI (CORRECT: percentage of dSep!)
Definition at line 66 of file StreamLine.h.
Referenced by OpenGLWidget::setDTest().
float StreamLine::getDTest | ( | ) | [inline] |
gv Returns the current dTest-value (CORRECT: percentage of dSep!)
Definition at line 69 of file StreamLine.h.
void StreamLine::setGlyphSize | ( | int | size | ) | [inline] |
gv Set glyph-size from UI
Definition at line 72 of file StreamLine.h.
Referenced by reset(), and OpenGLWidget::setStreamGlyphSize().
int StreamLine::getGlyphSize | ( | ) | [inline] |
void StreamLine::setGlyphDistance | ( | int | distance | ) | [inline] |
gv Set glyph-distance from UI
Definition at line 78 of file StreamLine.h.
Referenced by OpenGLWidget::setStreamGlyphDistance().
int StreamLine::getGlyphDistance | ( | ) | [inline] |
void StreamLine::setLineColor | ( | float * | color | ) | [inline] |
gv Set the line-color to the given RGBA-value
Definition at line 84 of file StreamLine.h.
Referenced by reset(), and OpenGLWidget::selectStreamLineColor().
float* StreamLine::getLineColor | ( | ) | [inline] |
void StreamLine::setGlyphColor | ( | float * | color | ) | [inline] |
gv Set the glyph-color to the given RGBA-value
Definition at line 99 of file StreamLine.h.
Referenced by reset(), and OpenGLWidget::selectStreamGlyphColor().
float* StreamLine::getGlyphColor | ( | ) | [inline] |
void StreamLine::setIntegrationMethod | ( | short | method | ) | [inline] |
gv Set integration-method from UI
Definition at line 114 of file StreamLine.h.
Referenced by OpenGLWidget::setEuler(), and OpenGLWidget::setRungeKutta().
short StreamLine::getIntegrationMethod | ( | ) | [inline] |
void StreamLine::setLinesActive | ( | bool | isActive | ) | [inline] |
gv Set if lines are drawn from UI
Definition at line 120 of file StreamLine.h.
Referenced by OpenGLWidget::setLinesActive().
bool StreamLine::getLinesActive | ( | ) | [inline] |
void StreamLine::setTaperingActive | ( | bool | isActive | ) | [inline] |
gv Set tapering from UI
Definition at line 126 of file StreamLine.h.
Referenced by OpenGLWidget::setTaperingActive().
bool StreamLine::getTaperingActive | ( | ) | [inline] |
void StreamLine::setGlyphActive | ( | bool | isActive | ) | [inline] |
gv Set if glyphs are drawn from UI
Definition at line 132 of file StreamLine.h.
Referenced by OpenGLWidget::setGlyphActive().
bool StreamLine::getGlyphActive | ( | ) | [inline] |
friend class StreamLineGrid [friend] |