All Packages  This Package  Class Hierarchy  Class Search  Index

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

  Summary

public class  GLUQuadric
     extends java.lang.Object
{
          // Fields 1
     public static final String VERSION;

          // Constructors 1
     public GLUQuadric();

          // Methods 9
     protected native void cylinder(double, double, double, int, int);
     public native synchronized void destroy();
     protected native void disk(double, double, int, int);
     protected native void drawStyle(int);
     protected native void normals(int);
     protected native void orientation(int);
     protected native void partialDisk(double, double, int, int, double, double);
     protected native void sphere(double, int, int);
     protected native void texture(boolean);
}

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.4 1998/02/02 20:56:11 descarte Exp descarte $
Author:
Alligator Descartes <descarte@hermetica.com>

See Also: GLU


  Cross Reference

Returned By:
CoreGLU.gluNewQuadric(), CoreGLU.newQuadric(), ErrorGLU.gluNewQuadric(), ErrorGLU.newQuadric(), GLU.gluNewQuadric(), GLU.newQuadric(), ProfileGLU.gluNewQuadric(), ProfileGLU.newQuadric(), TemplateGLU.gluNewQuadric(), TemplateGLU.newQuadric(), TraceGLU.gluNewQuadric(), TraceGLU.newQuadric()





  Fields

· VERSION

Summary  |  Top
   public static final String VERSION

Version information


  Constructors

· GLUQuadric

Summary  |  Top

   public GLUQuadric() 

Creates a new GLU quadric object for use



  Methods

· drawStyle

Summary  |  Top
   protected native void drawStyle(int drawStyle) 

Sets the rendering style for this quadric

Parameter Description
drawStyle Specifies the desired draw style

See Also: gluQuadricDrawStyle



· normals

Summary  |  Top
   protected native void normals(int normalStyle) 

Sets the normals generation rule

Parameter Description
normalStyle Specifies the desired type of normal

See Also: gluQuadricNormals



· orientation

Summary  |  Top
   protected native void orientation(int normalOrientation) 

Sets the normal orientation

Parameter Description
normalOrientation Specifies the desired normal orientation

See Also: gluQuadricOrientation



· texture

Summary  |  Top
   protected native void texture(boolean textureCoords) 

Sets the texture generation rule

Parameter Description
textureCoords Specifies a flag indicating whether or not texture coordinates should be generated

See Also: gluQuadricTexture



· sphere

Summary  |  Top
   protected native void sphere(double radius, 
                                int slices, 
                                int stacks) 

Creates a sphere

Parameter Description
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: gluSphere



· cylinder

Summary  |  Top
   protected native void cylinder(double baseRadius, 
                                  double topRadius, 
                                  double height, 
                                  int slices, 
                                  int stacks) 

Creates a cylinder

Parameter Description
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: gluCylinder



· disk

Summary  |  Top
   protected native void disk(double innerRadius, 
                              double outerRadius, 
                              int slices, 
                              int rings) 

Creates a disk

Parameter Description
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: gluDisk



· partialDisk

Summary  |  Top
   protected native void partialDisk(double innerRadius, 
                                     double outerRadius, 
                                     int slices, 
                                     int rings, 
                                     double startAngle, 
                                     double sweepAngle) 

Creates a partial disk

Parameter Description
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: gluPartialDisk



· destroy

Summary  |  Top
   public native synchronized void destroy() 

Destroys this quadric object and deallocates all resources associated with it.

See Also: gluDeleteQuadric



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7