ContRap-Libraries
Public Member Functions

crp::GLSTLModel Class Reference

Class GLSTLModel represents an STL model. More...

#include <glstlmodel.h>

Inheritance diagram for crp::GLSTLModel:
crp::GLPrimitive

Public Member Functions

 GLSTLModel (const std::string &file_name="", double scale=100.0, const GLVertex &position=GLVertex(), double yaw=0.0, double pitch=0.0, double roll=0.0)
 Constructor from the coordinates of the point.
 ~GLSTLModel ()
 Destructor.
void make_display_list (int flags) const
 Draws the point into an OpenGL display list.
void load (const std::string &file_name)
 Reloads the primitives from a file.
GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLSTLModel represents an STL model.


Constructor & Destructor Documentation

crp::GLSTLModel::GLSTLModel ( const std::string &  file_name = "",
double  scale = 100.0,
const GLVertex position = GLVertex(),
double  yaw = 0.0,
double  pitch = 0.0,
double  roll = 0.0 
)

Constructor from the coordinates of the point.

Parameters:
file_nameName of the file to load
scaleEach coordinate of the model is divided by scale
positionPosition with respect to the coordinate system of the model
yawYaw angle
pitchPitch angle
rollRoll angle
crp::GLSTLModel::~GLSTLModel ( )

Destructor.


Member Function Documentation

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

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLSTLModel::load ( const std::string &  file_name)

Reloads the primitives from a file.

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