ContRap-Libraries
Public Member Functions

crp::GLTorus Class Reference

Class GLTorus represents tori and cirxles in the three-dimensional space. More...

#include <gltorus.h>

Inheritance diagram for crp::GLTorus:
crp::GLPrimitive

Public Member Functions

 GLTorus (const GLVertex &position, double dx=0, double dy=0, double dz=0, double ro=1, double ri=0.05)
 Constructor from the coordinates of the disk and radius.
 ~GLTorus ()
 Destructor.
void make_display_list (int flags) const
 Draws the torus into an OpenGL list.
double get_outer_r () const
 Accessor to the outer radius of the torus.
double get_inner_r () const
 Accessor to the inner radius of the torus.
GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLTorus represents tori and cirxles in the three-dimensional space.


Constructor & Destructor Documentation

crp::GLTorus::GLTorus ( const GLVertex position,
double  dx = 0,
double  dy = 0,
double  dz = 0,
double  ro = 1,
double  ri = 0.05 
)

Constructor from the coordinates of the disk and radius.

Parameters:
positionPosition of the primitive
dxX-coordinate of the torus normal
dyY-coordinate of the torus normal
dzZ-coordinate of the torus normal
roOuter radius of the torus
riInner radius of the torus
crp::GLTorus::~GLTorus ( )

Destructor.


Member Function Documentation

double crp::GLTorus::get_inner_r ( ) const [inline]

Accessor to the inner radius of the torus.

Returns:
Reference to the inner radius of the torus
double crp::GLTorus::get_outer_r ( ) const [inline]

Accessor to the outer radius of the torus.

Returns:
Reference to the outer radius of the torus
GLPrimitiveType crp::GLTorus::get_type ( ) const [inline, virtual]

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

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

Draws the torus into an OpenGL list.

Parameters:
flagsStyle flags used to filter out drawing

Implements crp::GLPrimitive.


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