ContRap-Libraries
Public Member Functions

crp::GLDisk Class Reference

Class GLDisk represents disks in the three-dimensional space. More...

#include <gldisk.h>

Inheritance diagram for crp::GLDisk:
crp::GLPrimitive

Public Member Functions

 GLDisk (const GLVertex &position, double dx=0.0, double dy=1.0, double dz=0.0, double r=0.0)
 Constructor from the coordinates of the disk and radius.
 ~GLDisk ()
 Destructor.
void make_display_list (int flags) const
 Draws the disk into an OpenGL display list.
double & get_r ()
 Accessor to the radius of the disk.
GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLDisk represents disks in the three-dimensional space.


Constructor & Destructor Documentation

crp::GLDisk::GLDisk ( const GLVertex position,
double  dx = 0.0,
double  dy = 1.0,
double  dz = 0.0,
double  r = 0.0 
)

Constructor from the coordinates of the disk and radius.

Parameters:
positionVertex position
dxX-coordinate of the disk normal
dyY-coordinate of the disk normal
dzZ-coordinate of the disk normal
rRadius of the disk
crp::GLDisk::~GLDisk ( )

Destructor.


Member Function Documentation

double& crp::GLDisk::get_r ( ) [inline]

Accessor to the radius of the disk.

Returns:
Reference to the z-coordinate
GLPrimitiveType crp::GLDisk::get_type ( ) const [inline, virtual]

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

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

Draws the disk 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: