ContRap-Libraries
|
Class GLLine represents lines in the three-dimensional space. More...
#include <glline.h>
Public Types | |
enum | LineStyle { LINE, ARROW } |
Enumerates different line forms. More... | |
Public Member Functions | |
GLLine (const GLVertex &position, double dx=0.0, double dy=0.0, double dz=0.0) | |
Constructor from the coordinates of the line and direction. | |
GLLine (const GLVertex &start, const GLVertex &end) | |
Constructor from the coordinates of the line and direction. | |
~GLLine () | |
Destructor. | |
void | make_display_list (int flags) const |
Draws the sphere. | |
void | set_line_style (LineStyle style) |
Set the style of the line. | |
GLPrimitiveType | get_type () const |
Type of the primitive. |
Class GLLine represents lines in the three-dimensional space.
crp::GLLine::GLLine | ( | const GLVertex & | position, |
double | dx = 0.0 , |
||
double | dy = 0.0 , |
||
double | dz = 0.0 |
||
) |
Constructor from the coordinates of the line and direction.
position | Position of the primitive |
dx | X-coordinate of the line direction |
dy | Y-coordinate of the line direction |
dz | Z-coordinate of the line direction |
Constructor from the coordinates of the line and direction.
start | Starting point |
end | Ending point |
crp::GLLine::~GLLine | ( | ) |
Destructor.
GLPrimitiveType crp::GLLine::get_type | ( | ) | const [inline, virtual] |
void crp::GLLine::make_display_list | ( | int | flags | ) | const [virtual] |
Draws the sphere.
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.
void crp::GLLine::set_line_style | ( | LineStyle | style | ) | [inline] |
Set the style of the line.