ContRap-Libraries
|
Class GLDisk represents disks in the three-dimensional space. More...
#include <gldisk.h>
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. |
Class GLDisk represents disks in the three-dimensional space.
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.
position | Vertex position |
dx | X-coordinate of the disk normal |
dy | Y-coordinate of the disk normal |
dz | Z-coordinate of the disk normal |
r | Radius of the disk |
crp::GLDisk::~GLDisk | ( | ) |
Destructor.
double& crp::GLDisk::get_r | ( | ) | [inline] |
Accessor to the radius of the disk.
GLPrimitiveType crp::GLDisk::get_type | ( | ) | const [inline, virtual] |
void crp::GLDisk::make_display_list | ( | int | flags | ) | const [virtual] |
Draws the disk into an OpenGL display list.
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.