Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
ACG::GLDisk Class Reference
Inheritance diagram for ACG::GLDisk:
ACG::GLPartialDisk ACG::GLPrimitive

Public Member Functions

 GLDisk (int _slices, int _loops, float _innerRadius, float _outerRadius)
 
- Public Member Functions inherited from ACG::GLPartialDisk
 GLPartialDisk (int _slices, int _loops, float _innerRadius, float _outerRadius, float _startAngle, float _sweepAngle)
 
void setInnerRadius (float _innerRadius)
 
void setOuterRadius (float _outerRadius)
 
int getNumTriangles ()
 
void draw (GLState &_state, const ACG::Vec3f &_center=ACG::Vec3f(0.0f, 0.0f, 0.0f), ACG::Vec3f _upDir=ACG::Vec3f(0.0f, 0.0f, 1.0f))
 
- Public Member Functions inherited from ACG::GLPrimitive
void draw_primitive ()
 
void addToRenderer_primitive (class IRenderer *_renderer, struct RenderObject *_ro)
 
virtual int getNumLines ()
 
unsigned int getVBO ()
 
const VertexDeclarationgetVertexDecl () const
 

Additional Inherited Members

- Public Types inherited from ACG::GLPrimitive
enum  NormalOrientation { OUTSIDE, INSIDE }
 
- Protected Member Functions inherited from ACG::GLPartialDisk
void updateVBO ()
 
- Protected Member Functions inherited from ACG::GLPrimitive
void addTriangleToVBO (const ACG::Vec3f *_p, const ACG::Vec3f *_n, const ACG::Vec2f *_tex)
 
void addLineToVBO (const ACG::Vec3f *_p, const ACG::Vec3f *_n, const ACG::Vec2f *_tex)
 
void bindVBO ()
 
bool checkVBO ()
 
void unBindVBO ()
 
- Protected Attributes inherited from ACG::GLPrimitive
bool vboDataInvalid_
 
NormalOrientation normalOrientation_
 

Detailed Description

Definition at line 250 of file GLPrimitives.hh.

Constructor & Destructor Documentation

ACG::GLDisk::GLDisk ( int  _slices,
int  _loops,
float  _innerRadius,
float  _outerRadius 
)
Parameters
[in]_slicesthe number of slices that subdivide the disk has to be at least 2
[in]_loopsthe number of loops that subdivide the slices has to be at least 1
[in]_innerRadiusthe inner radius should not be smaller than zero and greater than the outer radius
[in]_outerRadiusthe outer radius should not be zero or smaller than zero

Definition at line 899 of file GLPrimitives.cc.


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