ContRap-Libraries
Public Types | Public Member Functions

crp::GLLine Class Reference

Class GLLine represents lines in the three-dimensional space. More...

#include <glline.h>

Inheritance diagram for crp::GLLine:
crp::GLPrimitive

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.

Detailed Description

Class GLLine represents lines in the three-dimensional space.


Member Enumeration Documentation

Enumerates different line forms.

Enumerator:
LINE 
ARROW 

Constructor & Destructor Documentation

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.

Parameters:
positionPosition of the primitive
dxX-coordinate of the line direction
dyY-coordinate of the line direction
dzZ-coordinate of the line direction
crp::GLLine::GLLine ( const GLVertex start,
const GLVertex end 
)

Constructor from the coordinates of the line and direction.

Parameters:
startStarting point
endEnding point
crp::GLLine::~GLLine ( )

Destructor.


Member Function Documentation

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

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

void crp::GLLine::make_display_list ( int  flags) const [virtual]

Draws the sphere.

Parameters:
flagsStyle flags used to filter out drawing

Implements crp::GLPrimitive.

void crp::GLLine::set_line_style ( LineStyle  style) [inline]

Set the style of the line.


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