VizKit  3.0
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes
VizKit::VisualVertex Class Reference

#include <VisualVertex.h>

List of all members.

Public Member Functions

 VisualVertex (Coord coordPoint)
 VisualVertex (Coord coordPoint, VertexColor anRGBAColor)
 VisualVertex (Coord coordPoint, Coord relativeCoordPoint, VertexColor anRGBAColor)
 VisualVertex (Coord coordPoint, TexCoord texCoordPoint, VertexColor anRGBAColor)
 VisualVertex (Coord coordPoint, Coord relativeCoordPoint, TexCoord texCoordPoint, VertexColor anRGBAColor)
 VisualVertex (Coord coordPoint, Coord relativeCoordPoint, TexCoord texCoordPoint, TexCoord relTexCoordPoint, VertexColor anRGBAColor)
 VisualVertex (VertexPosition aVertexPosition, VertexColor anRGBAColor)
 ~VisualVertex ()
 VisualVertex (const VisualVertex &other)
VisualVertexoperator= (const VisualVertex &other)
void setRelativeVertexPosition (Coord coordPoint)
void setRelativeTexCoordPosition (TexCoord aTexCoord)
bool colorHasBeenSet (void)

Public Attributes

VertexColor vertexColor
VertexPosition vertexPosition
TexCoordPosition texCoordPosition

Private Member Functions

void copy (const VisualVertex &other)

Private Attributes

bool colorIsSet

Detailed Description

A vertex is coord position information, incl. color information and coord position. Texture position belongs to vertex data, too.


Constructor & Destructor Documentation

Constructor that creates and returns a vertex at the specified position.

Parameters:
coordPointCoord position.
VisualVertex::VisualVertex ( Coord  coordPoint,
VertexColor  anRGBAColor 
)

Constructor that creates and returns a vertex at the specified position.

Parameters:
coordPointCoord position.
anRGBAColorRGBA color associated with the vertex.
VisualVertex::VisualVertex ( Coord  coordPoint,
Coord  relativeCoordPoint,
VertexColor  anRGBAColor 
)

Constructor that creates and returns a vertex at the specified position.

Parameters:
coordPointCoord position.
relativeCoordPointRelative coord position. x: 0.0 means: left, 1.0 means: right; y: 0.0 means: bottom, 1.0 means: top; z: 0.0 means: front, 1.0 means: back.
anRGBAColorRGBA color associated with the vertex.
VisualVertex::VisualVertex ( Coord  coordPoint,
TexCoord  texCoordPoint,
VertexColor  anRGBAColor 
)

Constructor that creates and returns a vertex at the specified position.

Parameters:
coordPointCoord position.
texCoordPointA position of a texture.
anRGBAColorRGBA color associated with the vertex.
VisualVertex::VisualVertex ( Coord  coordPoint,
Coord  relativeCoordPoint,
TexCoord  texCoordPoint,
VertexColor  anRGBAColor 
)

Constructor that creates and returns a vertex at the specified position.

Parameters:
coordPointCoord position.
relativeCoordPointRelative coord position. x: 0.0 means: left, 1.0 means: right; y: 0.0 means: bottom, 1.0 means: top; z: 0.0 means: front, 1.0 means: back.
texCoordPointA position of a texture.
anRGBAColorRGBA color associated with the vertex.
VisualVertex::VisualVertex ( Coord  coordPoint,
Coord  relativeCoordPoint,
TexCoord  texCoordPoint,
TexCoord  relTexCoordPoint,
VertexColor  anRGBAColor 
)

Constructor that creates and returns a vertex at the specified position.

Parameters:
coordPointCoord position.
relativeCoordPointRelative coord position. x: 0.0 means: left, 1.0 means: right; y: 0.0 means: bottom, 1.0 means: top; z: 0.0 means: front, 1.0 means: back.
texCoordPointA position of a texture.
relTexCoordPointA relative position of a texture.
anRGBAColorRGBA color associated with the vertex.
VisualVertex::VisualVertex ( VertexPosition  aVertexPosition,
VertexColor  anRGBAColor 
)

Constructor that creates and returns a vertex at the specified position.

Parameters:
aVertexPositionA vertex position.
anRGBAColorRGBA color associated with the vertex.

The destructor.

Copy constructor.

Parameters:
otherReference to another VisualVertex.

Member Function Documentation

True if vertex contains a valid color.

Returns:
True if vertex contains a valid color.
void VisualVertex::copy ( const VisualVertex other) [private]

Copy method for assignment operator and copy constructor.

Parameters:
otherAnother VisualVertex.
VisualVertex & VisualVertex::operator= ( const VisualVertex other)

Assignment operator.

Parameters:
otherReference to another VisualVertex.

Updates the relative tex coord position of the vertex.

Parameters:
aTexCoordThe requested relative tex coord position of the vertex.

Updates the relative position values of the vertex.

Parameters:
coordPointThe requested relative position values of the vertex.

Member Data Documentation

True if color of vertex is set.

Texture position at the vertex.

The color of the vertex.

The coord position of the vertex.


The documentation for this class was generated from the following files:

Generated on Sun Mar 25 2012 14:27:44 for VizKit by doxygen 1.8.0