ContRap-Libraries
Public Member Functions | Protected Attributes

crp::GLPoint Class Reference

Class GLPoint represents points in the three-dimensional space. More...

#include <glpoint.h>

Inheritance diagram for crp::GLPoint:
crp::GLPrimitive

Public Member Functions

 GLPoint (double x=0, double y=0, double z=0)
 Constructor from the coordinates of the point.
 GLPoint (const GLVertex &position)
 Constructor from the coordinates of the point.
 ~GLPoint ()
 Destructor.
void make_display_list (int flags) const
 Draws the point into an OpenGL display list.
GLPrimitiveType get_type () const
 Type of the primitive.
void set_texture_coords (double x, double y)
 Sets the texture coordinates.
double get_texture_x () const
 Returns the texture coordinate.
double get_texture_y () const
 Returns the texture coordinate.

Protected Attributes

double tx
 Texture coordinates.
double ty

Detailed Description

Class GLPoint represents points in the three-dimensional space.


Constructor & Destructor Documentation

crp::GLPoint::GLPoint ( double  x = 0,
double  y = 0,
double  z = 0 
)

Constructor from the coordinates of the point.

Parameters:
xX-coordinate of the point
yY-coordinate of the point
zZ-coordinate of the point
crp::GLPoint::GLPoint ( const GLVertex position)

Constructor from the coordinates of the point.

Parameters:
positionPoint position
crp::GLPoint::~GLPoint ( )

Destructor.


Member Function Documentation

double crp::GLPoint::get_texture_x ( ) const [inline]

Returns the texture coordinate.

Returns:
X-Coordinate
double crp::GLPoint::get_texture_y ( ) const [inline]

Returns the texture coordinate.

Returns:
Y-Coordinate
GLPrimitiveType crp::GLPoint::get_type ( ) const [inline, virtual]

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLPoint::make_display_list ( int  flags) const [virtual]

Draws the point into an OpenGL display list.

Parameters:
flagsStyle flags used to filter out drawing

Implements crp::GLPrimitive.

void crp::GLPoint::set_texture_coords ( double  x,
double  y 
)

Sets the texture coordinates.

Parameters:
xX-Coordinate with respect to the used texture
yY-Coordinate with respect to the used texture

Field Documentation

double crp::GLPoint::tx [protected]

Texture coordinates.

double crp::GLPoint::ty [protected]

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