Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

Quadric Class Reference
[Scene Graph]

#include <lvt/Shape.h>

Inheritance diagram for Quadric:

Inheritance graph
[legend]
List of all members.

Detailed Description

A quadric surface.

The Quadric object is an interface to the GLU quadric library.


Public Member Functions

float GetRadius () const
 Returns the radius of the quadric.
virtual void Render ()=0
 Draws the shape.
void SetDrawStyle (GLenum drawStyle)
 Sets the draw style of the quadric.
void SetNormalType (GLenum newType)
 Determines the type of normals generated by the quadric.
void SetOrientation (GLenum orientation)
 Sets the orientation (in-facing or out-facing) of the quadric.
void SetRadius (float radius)
 Sets the radius of the quadric.
void SetSlices (int slices)
 Sets the number of subdivisions around the z-axis.
void SetStacks (int stacks)
 Sets the number of subdivisions about the z-axis.
void SetTexture (bool dotex)
 Enables to disables generation of texture coordinates.


Member Function Documentation

float GetRadius  )  const [inline]
 

Returns the radius of the quadric.

virtual void Render  )  [pure virtual]
 

Draws the shape.

Implements Shape.

Implemented in Sphere, Cylinder, Cone, and Circle.

void SetDrawStyle GLenum  drawStyle  )  [inline]
 

Sets the draw style of the quadric.

Parameters:
drawStyle one of GLU_LINE, GLU_FILL, GLU_SILHOUETTE, GLU_POINT.

void SetNormalType GLenum  newType  )  [inline]
 

Determines the type of normals generated by the quadric.

Parameters:
newType one of
  • GLU_NONE No normals are generated.
  • GLU_FLAT One normal is generated for every face.
  • GLU_SMOOTH One normal is generated for every vertex.
The default is GLU_SMOOTH.

void SetOrientation GLenum  orientation  )  [inline]
 

Sets the orientation (in-facing or out-facing) of the quadric.

Parameters:
orientation one of:
  • GLU_OUTSIDE Draw quadrics with normals pointing outward.
  • GLU_INSIDE Draw quadrics with normals pointing inward.

void SetRadius float  radius  )  [inline]
 

Sets the radius of the quadric.

void SetSlices int  slices  )  [inline]
 

Sets the number of subdivisions around the z-axis.

void SetStacks int  stacks  )  [inline]
 

Sets the number of subdivisions about the z-axis.

void SetTexture bool  dotex  )  [inline]
 

Enables to disables generation of texture coordinates.

Parameters:
dotex if true, generates texture coordinates for the quadric.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1