SamplePoint Class Reference

#include <SamplePoint.h>

Collaboration diagram for SamplePoint:

[legend]
List of all members.

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

Detailed Description

This class is a container for the sample points of a streamline. It contains he specific velocity, pressure values, etc.
It also contains the RenderId, as well as the Id of the streamline, the tangent, etc.. .


Constructor & Destructor Documentation

SamplePoint::SamplePoint ( vector3f  coord,
vector5f  stream,
int  renderId,
float  taperingCoeff 
)

constructor

Parameters:
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


Member Function Documentation

void SamplePoint::setCoord ( double  x,
double  y,
double  z 
)

Sets the Coordinates of the sample point.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
v vector that contains the data

void SamplePoint::setNormal ( vector3f  v  ) 

Sets the normal of the sample point.

Parameters:
v vector that contains the data

void SamplePoint::setTangent ( vector3f  v  ) 

Sets the Tangent of the sample point.

Parameters:
v vector that contains the data

void SamplePoint::setTextureCoeff ( float  tcoeff  ) 

Sets the coefficient (needed for texture generation) for each sample point.

Parameters:
tcoeff The coefficient for the texturing.

vector3f SamplePoint::getCoord (  ) 

Returns the coordinates of the sample point.

Returns:
the coordinates

vector3f SamplePoint::getNormal (  ) 

Returns the normal of the sample point.

Returns:
normal of the sample point

vector3f SamplePoint::getTangent (  ) 

Returns the tangent of the sample point.

Returns:
tangent of the sample point

vector3f SamplePoint::getNormalizedStream (  ) 

Returns the Stream of the sample point normalized.

Returns:
normalized stream data

int SamplePoint::getStreamlineId (  ) 

Returns the ID of the streamline the sample point belongs to.

Returns:
streamline id

int SamplePoint::getRenderId (  ) 

Returns the render Id of the samplepoint within the streamline.

Returns:
renderID

float SamplePoint::getTapering (  ) 

Returns the tapering coefficient for the sample point.

Returns:
tapering coeff

float SamplePoint::getTextureCoeff (  ) 

Returns the Coefficient for the texture generation.

Returns:
texture coefficient

void SamplePoint::setStreamlineId ( int  newId  ) 

Sets the streamline id of the sample point.

Parameters:
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.

Parameters:
newId renderId

int SamplePoint::compare ( SamplePoint p  ) 

This function compares the RenderId from this SamplePoint with the RenderId of a different sample point.

Parameters:
*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

Parameters:
&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.

Parameters:
*lhs first sample point
*rhs second sample point


Member Data Documentation

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


The documentation for this class was generated from the following file:
Generated on Wed Jan 17 03:48:40 2007 for Flowvis-parma_wallaby by  doxygen 1.5.1-p1