com.hermetica.magician
Class GLUQuadric

java.lang.Object
  |
  +--com.hermetica.magician.GLUQuadric

public class GLUQuadric
extends java.lang.Object

Encapsulation of a GLU quadric object. All quadric operations in the GLU class use an instantiation of this class. Additionally, the methods marked with the protected keyword should generally not be called directly by applications, but instead should be invoked from the GLU class.

Version:
$Id: GLUQuadric.java,v 1.2 1999/06/03 23:11:48 descarte Exp $
Author:
Alligator Descartes <descarte@hermetica.com>
See Also:
GLU

Field Summary
static java.lang.String VERSION
          Version information
 
Constructor Summary
GLUQuadric()
          Creates a new GLU quadric object for use
 
Method Summary
protected  void cylinder(double baseRadius, double topRadius, double height, int slices, int stacks)
          Creates a cylinder
 void destroy()
          Destroys this quadric object and deallocates all resources associated with it.
protected  void disk(double innerRadius, double outerRadius, int slices, int rings)
          Creates a disk
protected  void drawStyle(int drawStyle)
          Sets the rendering style for this quadric
protected  void normals(int normalStyle)
          Sets the normals generation rule
protected  void orientation(int normalOrientation)
          Sets the normal orientation
protected  void partialDisk(double innerRadius, double outerRadius, int slices, int rings, double startAngle, double sweepAngle)
          Creates a partial disk
protected  void sphere(double radius, int slices, int stacks)
          Creates a sphere
protected  void texture(boolean textureCoords)
          Sets the texture generation rule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
Version information
Constructor Detail

GLUQuadric

public GLUQuadric()
Creates a new GLU quadric object for use
Method Detail

drawStyle

protected void drawStyle(int drawStyle)
Sets the rendering style for this quadric

Parameters:
drawStyle - Specifies the desired draw style
See Also:
GLU.gluQuadricDrawStyle(com.hermetica.magician.GLUQuadric, int)

normals

protected void normals(int normalStyle)
Sets the normals generation rule

Parameters:
normalStyle - Specifies the desired type of normal
See Also:
GLU.gluQuadricNormals(com.hermetica.magician.GLUQuadric, int)

orientation

protected void orientation(int normalOrientation)
Sets the normal orientation

Parameters:
normalOrientation - Specifies the desired normal orientation
See Also:
GLU.gluQuadricOrientation(com.hermetica.magician.GLUQuadric, int)

texture

protected void texture(boolean textureCoords)
Sets the texture generation rule

Parameters:
textureCoords - Specifies a flag indicating whether or not texture coordinates should be generated
See Also:
GLU.gluQuadricTexture(com.hermetica.magician.GLUQuadric, boolean)

sphere

protected void sphere(double radius,
                      int slices,
                      int stacks)
Creates a sphere

Parameters:
radius - The radius of the sphere
slices - The number of vertical subdivisions of the sphere
stacks - The number of horizontal subdivisions of the sphere
See Also:
GLU.gluSphere(com.hermetica.magician.GLUQuadric, double, int, int)

cylinder

protected void cylinder(double baseRadius,
                        double topRadius,
                        double height,
                        int slices,
                        int stacks)
Creates a cylinder

Parameters:
baseRadius - The radius of the base of the cylinder
topRadius - The radius of the top of the cylinder
height - The height of the cylinder
slices - The number of vertical subdivisions of the cylinder
stacks - The number of horizontal subdivisions of the cylinder
See Also:
GLU.gluCylinder(com.hermetica.magician.GLUQuadric, double, double, double, int, int)

disk

protected void disk(double innerRadius,
                    double outerRadius,
                    int slices,
                    int rings)
Creates a disk

Parameters:
innerRadius - The inner radius of the disk
outerRadius - The outer radius of the disk
slices - The number of y-axis subdivions of the disk
rings - The number of rings forming the disk
See Also:
GLU.gluDisk(com.hermetica.magician.GLUQuadric, double, double, int, int)

partialDisk

protected void partialDisk(double innerRadius,
                           double outerRadius,
                           int slices,
                           int rings,
                           double startAngle,
                           double sweepAngle)
Creates a partial disk

Parameters:
innerRadius - The inner radius of the disk
outerRadius - The outer radius of the disk
slices - The number of y-axis subdivions of the disk
rings - The number of rings forming the disk
startAngle - The angle to start forming the disk from
sweepAngle - The number of degrees to sweep the disk through
See Also:
GLU.gluPartialDisk(com.hermetica.magician.GLUQuadric, double, double, int, int, double, double)

destroy

public void destroy()
Destroys this quadric object and deallocates all resources associated with it.

See Also:
GLU.gluDeleteQuadric(com.hermetica.magician.GLUQuadric)