ContRap-Libraries
Public Member Functions

crp::GLSquare Class Reference

Class GLSquare represents squares in the three-dimensional space. More...

#include <glsquare.h>

Inheritance diagram for crp::GLSquare:
crp::GLPrimitive

Public Member Functions

 GLSquare (const GLVertex &position=GLVertex(), double dx=0.0, double dy=0.0, double dz=1.0, double side=1.0)
 Constructor from the coordinates of the point.
 ~GLSquare ()
 Destructor.
void make_display_list (int style) const
 Draws the point into an OpenGL display list.
virtual GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLSquare represents squares in the three-dimensional space.


Constructor & Destructor Documentation

crp::GLSquare::GLSquare ( const GLVertex position = GLVertex(),
double  dx = 0.0,
double  dy = 0.0,
double  dz = 1.0,
double  side = 1.0 
)

Constructor from the coordinates of the point.

Parameters:
positionPosition of the primitive
dxX-coordinate of the normal direction
dyY-coordinate of the normal direction
dzZ-coordinate of the normal direction
sideHalf side length
crp::GLSquare::~GLSquare ( )

Destructor.


Member Function Documentation

virtual GLPrimitiveType crp::GLSquare::get_type ( ) const [inline, virtual]

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLSquare::make_display_list ( int  style) const [virtual]

Draws the point into an OpenGL display list.

Parameters:
flagsStyle flags used to filter out drawing

Implements crp::GLPrimitive.


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