#include <SamplePoint.h>
Collaboration diagram for SamplePoint:
Public Member Functions | |
SamplePoint (vector3f coord, vector5f stream, int renderId, float taperingCoeff) | |
~SamplePoint (void) | |
void | setCoord (double x, double y, double z) |
void | setNormal (double x, double y, double z) |
void | setTangent (double x, double y, double z) |
void | setCoord (vector3f v) |
void | setNormal (vector3f v) |
void | setTangent (vector3f v) |
void | setTextureCoeff (float tcoeff) |
vector3f | getCoord () |
vector3f | getNormal () |
vector3f | getTangent () |
vector3f | getNormalizedStream () |
int | getStreamlineId () |
int | getRenderId () |
float | getTapering () |
float | getTextureCoeff () |
void | setStreamlineId (int newId) |
void | setRenderId (int newId) |
int | compare (SamplePoint *p) |
bool | operator< (SamplePoint &sp) |
Static Public Member Functions | |
static bool | sort (SamplePoint *lhs, SamplePoint *rhs) |
Private Attributes | |
vector3f | m_coord |
vector5f | m_stream |
vector3f | m_normal |
vector3f | m_tangent |
float | m_taperingCoeff |
float | m_textureCoeff |
int | m_streamlineId |
int | m_renderId |
constructor
coord | coordinates of the samplepoint | |
stream | the data of the stream | |
renderId | the renderId of the samplepoint | |
taperingCoeff | the coefficient of the tapering |
SamplePoint::~SamplePoint | ( | void | ) |
destructor
void SamplePoint::setCoord | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Sets the Coordinates of the sample point.
x | coordinate on the x axis | |
y | coordinate on the y axis | |
z | coordinate on the z axis |
void SamplePoint::setNormal | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Sets the normal of the sample point.
x | the value of the Normal on the x axis | |
y | the value of the Normal on the y axis | |
z | the value of the Normal on the z axis |
void SamplePoint::setTangent | ( | double | x, | |
double | y, | |||
double | z | |||
) |
Sets the Tangent of the sample point.
x | the value of the Normal on the x axis | |
y | the value of the Normal on the y axis | |
z | the value of the Normal on the z axis |
void SamplePoint::setCoord | ( | vector3f | v | ) |
Sets the Coordinates of the sample point.
v | vector that contains the data |
void SamplePoint::setNormal | ( | vector3f | v | ) |
Sets the normal of the sample point.
v | vector that contains the data |
void SamplePoint::setTangent | ( | vector3f | v | ) |
Sets the Tangent of the sample point.
v | vector that contains the data |
void SamplePoint::setTextureCoeff | ( | float | tcoeff | ) |
Sets the coefficient (needed for texture generation) for each sample point.
tcoeff | The coefficient for the texturing. |
vector3f SamplePoint::getCoord | ( | ) |
Returns the coordinates of the sample point.
vector3f SamplePoint::getNormal | ( | ) |
Returns the normal of the sample point.
vector3f SamplePoint::getTangent | ( | ) |
Returns the tangent of the sample point.
vector3f SamplePoint::getNormalizedStream | ( | ) |
Returns the Stream of the sample point normalized.
int SamplePoint::getStreamlineId | ( | ) |
Returns the ID of the streamline the sample point belongs to.
int SamplePoint::getRenderId | ( | ) |
Returns the render Id of the samplepoint within the streamline.
float SamplePoint::getTapering | ( | ) |
Returns the tapering coefficient for the sample point.
float SamplePoint::getTextureCoeff | ( | ) |
Returns the Coefficient for the texture generation.
void SamplePoint::setStreamlineId | ( | int | newId | ) |
Sets the streamline id of the sample point.
newId | id of the streamline the sample point belongs to |
void SamplePoint::setRenderId | ( | int | newId | ) |
Sets the Render id of the sample point within a streamline.
newId | renderId |
int SamplePoint::compare | ( | SamplePoint * | p | ) |
This function compares the RenderId from this SamplePoint with the RenderId of a different sample point.
*p | the sample point this sample point is compared to |
bool SamplePoint::operator< | ( | SamplePoint & | sp | ) |
The < operator is overwritten to compare two sample points on a streamline with their RenderId
&sp | the sample point which is compared to this sample point. |
static bool SamplePoint::sort | ( | SamplePoint * | lhs, | |
SamplePoint * | rhs | |||
) | [static] |
This Function is called to sort the sample points.
*lhs | first sample point | |
*rhs | second sample point |
vector3f SamplePoint::m_coord [private] |
vector5f SamplePoint::m_stream [private] |
vector which stores the coordinates of the sample point
vector3f SamplePoint::m_normal [private] |
vector which stores the stream data of the sample point
vector3f SamplePoint::m_tangent [private] |
vector which stores the normal data of the sample point
float SamplePoint::m_taperingCoeff [private] |
vector which stores the tangent data of the sample point
float SamplePoint::m_textureCoeff [private] |
stores the tapering coefficient
int SamplePoint::m_streamlineId [private] |
stores the texturing coefficient
int SamplePoint::m_renderId [private] |
stores the streamline id