class grCylinder: public grQuadric

Cylinder shape node

Inheritance:


Public Fields

[more]double baseRadius
The radius of the cylinder at z = 0
[more]double topRadius
The radius of the cylinder at z = height
[more]double height
The height of the cylinder
[more]int slices
The number of subdivisions around the z-axis
[more]int stacks
The number of subdivisions along the z-axis

Public Methods

[more] grCylinder()
Default constructor
[more]void GL() const
Generate opengl calls for drawing
[more]char* Name( void ) const
see grNode
[more]void Render( grStatus & status )
see grNode
[more]void Select( grStatus & status )
see grNode


Inherited from grQuadric:

Public Methods

ovoid SetDrawStyle( GLenum style )
ovoid SetNormalStyle( GLenum style )
ovoid SetOrientation( GLenum orientation )
ovoid EnableTexture( bool enable )


Inherited from grNode:

Public Methods

ogrNode* FindByName( const GLuint name )


Documentation

Cylinder shape node. This node draws a cylinder oriented along the z-axis. The base of the cylinder is placed at z = 0, and the top at z = height. Like a sphere, a cylinder is subdivided around the z-axis into slices, and along the z-axis into stacks.
o grCylinder()
Default constructor

ovoid GL() const
Generate opengl calls for drawing

ochar* Name( void ) const
see grNode

ovoid Render( grStatus & status )
see grNode

ovoid Select( grStatus & status )
see grNode

odouble baseRadius
The radius of the cylinder at z = 0

odouble topRadius
The radius of the cylinder at z = height

odouble height
The height of the cylinder

oint slices
The number of subdivisions around the z-axis

oint stacks
The number of subdivisions along the z-axis


This class has no child classes.
See Also:
GLU

Alphabetic index HTML hierarchy of classes or Java


GCR, Graphics Library, VCG, IEI-CNR.