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

Public Member Functions

 GLCone (int _slices, int _stacks, float _bottomRadius, float _topRadius, bool _bottomCap_, bool _topCap)
 
void draw (GLState &_state, float _height, const ACG::Vec3f &_center=ACG::Vec3f(0.0f, 0.0f, 0.0f), ACG::Vec3f _upDir=ACG::Vec3f(0.0f, 0.0f, 1.0f))
 
void addToRenderer (class IRenderer *_renderer, const struct RenderObject *_base, float _height, const ACG::Vec3f &_center=ACG::Vec3f(0.0f, 0.0f, 0.0f), ACG::Vec3f _upDir=ACG::Vec3f(0.0f, 0.0f, 1.0f), float _radiusScale=1.0f)
 
int getNumTriangles ()
 
void updateVBO ()
 
void setBottomRadius (float _bottomRadius)
 
void setTopRadius (float _topRadius)
 
void setNormalOrientation (NormalOrientation orienation)
 
- 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
 

Private Member Functions

void addTriangle (int sl0, int st0, int sl1, int st1, int sl2, int st2)
 
ACG::Vec3f positionOnCone (int _sliceNumber, int _stackNumber)
 
ACG::Vec2f texCoordOnCone (int _sliceNumber, int _stackNumber)
 
ACG::Vec3f normalOnCone (int _sliceNumber, int _stackNumber)
 

Private Attributes

int slices_
 
int stacks_
 
float bottomRadius_
 
float topRadius_
 
bool bottomCap_
 
bool topCap_
 

Additional Inherited Members

- Public Types inherited from ACG::GLPrimitive
enum  NormalOrientation { OUTSIDE, INSIDE }
 
- 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 167 of file GLPrimitives.hh.


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