ContRap-Libraries
|
Class GLTorus represents tori and cirxles in the three-dimensional space. More...
#include <gltorus.h>
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. |
Class GLTorus represents tori and cirxles in the three-dimensional space.
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.
position | Position of the primitive |
dx | X-coordinate of the torus normal |
dy | Y-coordinate of the torus normal |
dz | Z-coordinate of the torus normal |
ro | Outer radius of the torus |
ri | Inner radius of the torus |
crp::GLTorus::~GLTorus | ( | ) |
Destructor.
double crp::GLTorus::get_inner_r | ( | ) | const [inline] |
Accessor to the inner radius of the torus.
double crp::GLTorus::get_outer_r | ( | ) | const [inline] |
Accessor to the outer radius of the torus.
GLPrimitiveType crp::GLTorus::get_type | ( | ) | const [inline, virtual] |
void crp::GLTorus::make_display_list | ( | int | flags | ) | const [virtual] |
Draws the torus into an OpenGL list.
flags | Style flags used to filter out drawing |
Implements crp::GLPrimitive.