#include <streamline.h>
Public Member Functions | |
Streamline () | |
void | addPoint (gridPoint &point) |
Adds a point to the streamline. | |
gridPoint | getNextPoint () |
Gets the next point in the streamline according to the "order" of the streamline. | |
bool | hasNextPoint () |
Checks if there's a point left in the streamline. | |
void | resetCounter () |
Resets the counter to 0 or data.size depending on the order. | |
void | setOrder (bool order) |
Sets the "order" will read points from the streamline back to front if false. | |
void | clear () |
Clears all data from this streamline. | |
Private Attributes | |
int | pos |
bool | order |
std::vector< gridPoint > | lineData |
Streamline::Streamline | ( | ) | [inline] |
void Streamline::addPoint | ( | gridPoint & | point | ) |
Adds a point to the streamline.
void Streamline::clear | ( | ) |
Clears all data from this streamline.
gridPoint Streamline::getNextPoint | ( | ) |
Gets the next point in the streamline according to the "order" of the streamline.
bool Streamline::hasNextPoint | ( | ) |
Checks if there's a point left in the streamline.
void Streamline::resetCounter | ( | ) |
Resets the counter to 0 or data.size depending on the order.
void Streamline::setOrder | ( | bool | order | ) |
Sets the "order" will read points from the streamline back to front if false.
std::vector<gridPoint> Streamline::lineData [private] |
bool Streamline::order [private] |
int Streamline::pos [private] |