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

A vertex is coord position information, incl. More...

#include <VisualVertex.h>

List of all members.

Public Member Functions

 VisualVertex (Coord coordPoint)
 Constructor that creates and returns a vertex at the specified position.
 VisualVertex (Coord coordPoint, VertexColor anRGBAColor)
 Constructor that creates and returns a vertex at the specified position.
 VisualVertex (Coord coordPoint, Coord relativeCoordPoint, VertexColor anRGBAColor)
 Constructor that creates and returns a vertex at the specified position.
 VisualVertex (Coord coordPoint, TexCoord texCoordPoint, VertexColor anRGBAColor)
 Constructor that creates and returns a vertex at the specified position.
 VisualVertex (Coord coordPoint, Coord relativeCoordPoint, TexCoord texCoordPoint, VertexColor anRGBAColor)
 Constructor that creates and returns a vertex at the specified position.
 VisualVertex (Coord coordPoint, Coord relativeCoordPoint, TexCoord texCoordPoint, TexCoord relTexCoordPoint, VertexColor anRGBAColor)
 Constructor that creates and returns a vertex at the specified position.
 VisualVertex (VertexPosition aVertexPosition, VertexColor anRGBAColor)
 Constructor that creates and returns a vertex at the specified position.
 ~VisualVertex ()
 The destructor.
 VisualVertex (const VisualVertex &other)
 Copy constructor.
VisualVertexoperator= (const VisualVertex &other)
 Assignment operator.
void setRelativeVertexPosition (Coord coordPoint)
 Updates the relative position values of the vertex.
void setRelativeTexCoordPosition (TexCoord aTexCoord)
 Updates the relative tex coord position of the vertex.
bool colorHasBeenSet (void)
 True if vertex contains a valid color.

Public Attributes

VertexColor vertexColor
 The color of the vertex.
VertexPosition vertexPosition
 The coord position of the vertex.
TexCoordPosition texCoordPosition
 Texture position at the vertex.

Private Member Functions

void copy (const VisualVertex &other)
 Copy method for assignment operator and copy constructor.

Private Attributes

bool colorIsSet
 True if color of vertex is set.

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 May 3 2015 20:26:32 for VizKit by doxygen 1.8.0