ContRap-Libraries
Public Member Functions

crp::GLSphere Class Reference

Class GLSphere represents spheres in the three-dimensional space. More...

#include <glsphere.h>

Inheritance diagram for crp::GLSphere:
crp::GLPrimitive

Public Member Functions

 GLSphere (const GLVertex &position, double r=0.01)
 Constructor from the coordinates of the sphere and radius.
 ~GLSphere ()
 Destructor.
void make_display_list (int flags) const
 Draws the sphere into an OpenGL display list.
double & get_radius ()
 Accessor to the radius of the sphere.
GLPrimitiveType get_type () const
 Type of the primitive.

Detailed Description

Class GLSphere represents spheres in the three-dimensional space.


Constructor & Destructor Documentation

crp::GLSphere::GLSphere ( const GLVertex position,
double  r = 0.01 
)

Constructor from the coordinates of the sphere and radius.

Position of the primitive

Parameters:
rRadius of the sphere
crp::GLSphere::~GLSphere ( )

Destructor.


Member Function Documentation

double& crp::GLSphere::get_radius ( ) [inline]

Accessor to the radius of the sphere.

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

Type of the primitive.

Returns:
Type name of the primitive

Implements crp::GLPrimitive.

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

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