ContRap-Libraries
Public Member Functions

crp::GLCuboid Class Reference

Class GLCuboid represents cuboids. More...

#include <glcuboid.h>

Inheritance diagram for crp::GLCuboid:
crp::GLPrimitive

Public Member Functions

 GLCuboid (const GLVertex &position, double sx=0.1, double sy=0.1, double sz=0.1)
 Constructor from the coordinates of the point.
 ~GLCuboid ()
 Destructor.
void make_display_list (int flags) const
 Draws the point into an OpenGL display list.
GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLCuboid represents cuboids.


Constructor & Destructor Documentation

crp::GLCuboid::GLCuboid ( const GLVertex position,
double  sx = 0.1,
double  sy = 0.1,
double  sz = 0.1 
)

Constructor from the coordinates of the point.

Parameters:
positionPosition of the primitive
sizeSide length
crp::GLCuboid::~GLCuboid ( )

Destructor.


Member Function Documentation

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

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLCuboid::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.


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