ContRap-Libraries
Public Member Functions

crp::GLCube Class Reference

Class GLCube represents cubes. More...

#include <glcube.h>

Inheritance diagram for crp::GLCube:
crp::GLPrimitive

Public Member Functions

 GLCube (const GLVertex &position=GLVertex(), double size=0.1)
 Constructor from the coordinates of the point.
 ~GLCube ()
 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 GLCube represents cubes.


Constructor & Destructor Documentation

crp::GLCube::GLCube ( const GLVertex position = GLVertex(),
double  size = 0.1 
)

Constructor from the coordinates of the point.

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

Destructor.


Member Function Documentation

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

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLCube::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: