ContRap-Libraries
|
Class GLSTLModel represents an STL model. More...
#include <glstlmodel.h>
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. |
Class GLSTLModel represents an STL model.
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.
file_name | Name of the file to load |
scale | Each coordinate of the model is divided by scale |
position | Position with respect to the coordinate system of the model |
yaw | Yaw angle |
pitch | Pitch angle |
roll | Roll angle |
crp::GLSTLModel::~GLSTLModel | ( | ) |
Destructor.
GLPrimitiveType crp::GLSTLModel::get_type | ( | ) | const [inline, virtual] |
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.
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.