#include <Streamline.h>
Public Member Functions | |
Streamline (void) | |
~Streamline (void) | |
void | addSamplePoint (SamplePoint *p) |
void | sort () |
int | getId () |
int | getSize () |
SamplePoint | getAt (int index) |
SamplePoint | operator[] (int index) |
bool | hasNext () |
SamplePoint | getNext () |
void | reset () |
void | calculateVectors () |
SamplePointIter | getIter () |
SamplePointIter | begin () |
SamplePointIter | end () |
Private Member Functions | |
int | compare (const void *a, const void *b) |
Private Attributes | |
int | m_Id |
list< SamplePoint * > | m_samplePoints |
list< SamplePoint * >::iterator | m_pointsIter |
Streamline::Streamline | ( | void | ) |
constructor
Streamline::~Streamline | ( | void | ) |
destructor
void Streamline::addSamplePoint | ( | SamplePoint * | p | ) |
Function to add a new SamplePoint to the Streamline.
p | new SamplePoint |
void Streamline::sort | ( | ) |
Function to sort a streamline depending on its renderId.
int Streamline::getId | ( | ) |
Function that returns the ID of the streamline.
int Streamline::getSize | ( | ) |
Function that returns the size of a streamline.
SamplePoint Streamline::getAt | ( | int | index | ) |
Function that returns a SamplePoint on a specific position on the streamline.
index | number of the sample point |
SamplePoint Streamline::operator[] | ( | int | index | ) |
Function that returns a SamplePoint on a specific position on the streamline.
index | number of the sample point |
bool Streamline::hasNext | ( | ) |
Returns true if there is any other SamplePoint after the current one.
SamplePoint Streamline::getNext | ( | ) |
Returns the next SamplePoint in the Streamline.
void Streamline::reset | ( | ) |
Function to reset the iterator through the streamline.
void Streamline::calculateVectors | ( | ) |
Function to calculate the tangent, normal, tapering coeff, etc of one sample point.
SamplePointIter Streamline::getIter | ( | ) |
Returns the iterator for the list of SamplePoints in one streamline.
SamplePointIter Streamline::begin | ( | ) |
Returns the first SamplePoint in the Streamline.
SamplePointIter Streamline::end | ( | ) |
This function points after the last SamplePoint of the Streamline.
int Streamline::compare | ( | const void * | a, | |
const void * | b | |||
) | [private] |
Function to compare one SamplePoint with another one.
*a | the first SamplePoint | |
*b | the second SamplePoint |
int Streamline::m_Id [private] |
list<SamplePoint*> Streamline::m_samplePoints [private] |
the id of the streamline
list<SamplePoint*>::iterator Streamline::m_pointsIter [private] |
the list of SamplePoints of the streamline