All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.hermetica.gle.ProfileGLE
java.lang.Object
   |
   +----com.hermetica.gle.ProfileGLE

  Summary

public class  ProfileGLE
     extends java.lang.Object
     implements com.hermetica.gle.GLE
{
          // Fields 1
     public static final String VERSION;

          // Constructors 2
     public ProfileGLE();
     public ProfileGLE(GLE);

          // Methods 19
     public void calculateStatistics(int, long);
     public void displayStatistics();
     public int getMode();
     public GLE getParent();
     public void gleExtrusion(int, double[][], double[][], double[], int, double[][], float[][]) throws GLEException;
     public final int gleGetJoinStyle();
     public void gleHelicoid(double, double, double, double, double, double[][], double[][], double, double) throws GLEException;
     public void gleLathe(int, double[][], double[][], double[], double, double, double, double, double[][], double[][], double, double) throws GLEException;
     public void glePolyCone(int, double[][], float[][], double[]) throws GLEException;
     public void glePolyCylinder(int, double[][], float[][], double) throws GLEException;
     public void gleScrew(int, double[][], double[][], double[], double, double, double) throws GLEException;
     public final void gleSetJoinStyle(int);
     public void gleSpiral(int, double[][], double[][], double[], double, double, double, double, double[][], double[][], double, double) throws GLEException;
     public void gleSuperExtrusion(int, double[][], double[][], double[], int, double[][], float[][], double[][][]) throws GLEException;
     public final void gleTextureMode(int);
     public void gleToroid(double, double, double, double, double, double[][], double[][], double, double) throws GLEException;
     public void gleTwistExtrusion(int, double[][], double[][], double[], int, double[][], float[][], double[]) throws GLEException;
     public void setMode(int);
     public void setParent(GLE);
}

Implementation of the routines exposed by the GLE library that simply trace execution through the various GLE calls. A CoreGLE object should be attached to instances of this class to ensure actual execution of the methods occurs.

Version:
$Id: ProfileGLE.java,v 1.1 1998/07/04 10:14:37 descarte Exp descarte $
Author:
Alligator Descartes <http://www.arcana.co.uk>




  Fields

VERSION

Summary  |  Top

   public static final String VERSION

Version information


  Constructors

ProfileGLE

Summary  |  Top

   public ProfileGLE() 

Default pipeline constructor where the pipeline will have its parent set at a later date with setParent()



ProfileGLE

Summary  |  Top
   public ProfileGLE(GLE parent) 

Constructs a new ProfileGLE pipeline with the given pipeline object as a parent in the execution stack.

Parameter Description
parent The parent pipeline object



  Methods

setParent

Summary  |  Top
   public void setParent(GLE parent) 

Sets the parent interface.

Parameter Description
parent The parent interface



getParent

Summary  |  Top
   public GLE getParent() 

Returns the parent interface



setMode

Summary  |  Top
   public void setMode(int mode) 

Sets the operating mode of this pipeline object. The default mode is ProfileGLE.SUMMARY

Parameter Description
mode Either ProfileGLE.SUMMARY or ProfileGLE.VERBOSE



getMode

Summary  |  Top
   public int getMode() 

Returns the current operating mode of the current pipeline object



calculateStatistics

Summary  |  Top
   public void calculateStatistics(int methodIndex, 
                                   long delta) 

This method calculates statistics depending on the start and stop times and the method involved.

Parameter Description
methodName The name of the method. This corresponds to an integer that is used as an array lookup for performing per method execution profiling
startTime The time the method execution started at
stopTime The time the method execution stopped



displayStatistics

Summary  |  Top
   public void displayStatistics() 

This method dumps the total statistics of all invoked OpenGL methods out to allow developers to profile their applications.



gleGetJoinStyle

Summary  |  Top
   public final int gleGetJoinStyle() 

Returns the current join style for connected extruded segments

Implements:
gleGetJoinStyle in interface GLE


gleSetJoinStyle

Summary  |  Top
   public final void gleSetJoinStyle(int style) 

Sets the current join style for connected extruded segments.

Parameter Description
style The new join style

Implements:
gleSetJoinStyle in interface GLE


gleTextureMode

Summary  |  Top
   public final void gleTextureMode(int mode) 

Sets the current texture coordinate generation mode

Parameter Description
mode Bitwise OR of texture flags

Implements:
gleTextureMode in interface GLE


glePolyCylinder

Summary  |  Top
   public void glePolyCylinder(int npoints, 
                               double[][] pointArray, 
                               float[][] colourArray, 
                               double radius)  throws GLEException

Draws a polycylinder, specified as a polyline

Parameter Description
npoints The number of points in the polyline
pointArray An array of points specified as ( x, y, z )
colourArray An array of colors at each polyline vertex specified as RGB
radius The radius of the polycylinder

Implements:
glePolyCylinder in interface GLE


glePolyCone

Summary  |  Top
   public void glePolyCone(int npoints, 
                           double[][] pointArray, 
                           float[][] colourArray, 
                           double[] radiusArray)  throws GLEException

Draws a polycone specified as a polyline with radii

Parameter Description
npoints The number of points in the polyline
pointArray An array of points specified as ( x, y, z )
colourArray An array of colours at each polyline vertex specified as RGB
radiusArray An array containing the radii of the cone at each polyline vertex

Implements:
glePolyCone in interface GLE


gleExtrusion

Summary  |  Top
   public void gleExtrusion(int ncp, 
                            double[][] contour, 
                            double[][] contourNormal, 
                            double[] up, 
                            int npoints, 
                            double[][] pointArray, 
                            float[][] colourArray)  throws GLEException

Extrudes an arbitrary 2D contour along an arbitrary 3D path.

Parameter Description
ncp The number of contour points
contour An array containing the points forming the 2D contour specified as ( x, y )
contourNormal An array containing the normals for each contour point
up The up vector for the contour
npoints The number of points in the 3D polyline
pointArray An array containing the vertices for the 3D polyline specified as ( x, y, z )
colourArray An array containing the colours at each polyline vertex specified as RGB

Implements:
gleExtrusion in interface GLE


gleTwistExtrusion

Summary  |  Top
   public void gleTwistExtrusion(int ncp, 
                                 double[][] contour, 
                                 double[][] contourNormal, 
                                 double[] up, 
                                 int npoints, 
                                 double[][] pointArray, 
                                 float[][] colourArray, 
                                 double[] twistArray)  throws GLEException

Extrudes an arbitrary 2D contour along a 3D path specifying local rotations ( twists ) as the contour is extruded.

Parameter Description
ncp The number of contour points
contour An array containing the points forming the 2D contour specified as ( x, y )
contourNormal An array containing the normals for each contour point
up The up vector for the contour
npoints The number of points in the 3D polyline
pointArray An array containing the vertices for the 3D polyline specified as ( x, y, z )
colourArray An array containing the colours at each polyline vertex specified as RGB
twistArray An array containing the twists to be applied at each contour point ( in degrees )

Implements:
gleTwistExtrusion in interface GLE


gleSuperExtrusion

Summary  |  Top
   public void gleSuperExtrusion(int ncp, 
                                 double[][] contour, 
                                 double[][] contourNormal, 
                                 double[] up, 
                                 int npoints, 
                                 double[][] pointArray, 
                                 float[][] colourArray, 
                                 double[][][] xformArray)  throws GLEException

Extrudes an arbitrary 2D contour along a 3D path specifying local affine transformations as the contour is extruded.

Parameter Description
ncp The number of contour points
contour An array containing the points forming the 2D contour specified as ( x, y )
contourNormal An array containing the normals for each contour point
up The up vector for the contour
npoints The number of points in the 3D polyline
pointArray An array containing the vertices for the 3D polyline specified as ( x, y, z )
colourArray An array containing the colours at each polyline vertex specified as RGB
xformArray An array containing the affine transformations to be applied at each contour point ( in degrees )

Implements:
gleSuperExtrusion in interface GLE


gleSpiral

Summary  |  Top
   public void gleSpiral(int ncp, 
                         double[][] contour, 
                         double[][] contourNormal, 
                         double[] up, 
                         double startRadius, 
                         double drdTheta, 
                         double startZ, 
                         double dzdTheta, 
                         double[][] startTransform, 
                         double[][] dTransformdTheta, 
                         double startTheta, 
                         double sweepTheta)  throws GLEException

Sweep an arbitrary contour along a helical path.

Parameter Description
ncp The number of contour points
contour An array containing the points forming the 2D contour specified as ( x, y )
contourNormal An array containing the normals for each contour point
up The up vector for the contour
startRadius The spiral starts in XY plane
drdTheta The change in radius per revolution
startZ The starting Z value
dzdTheta The change in Z per revolution
startTransform The starting contour affine transformation
dTransformdTheta The tangent change transformation per revolution
startTheta The start angle in XY plane
sweepTheta The number of degrees to spiral around

Implements:
gleSpiral in interface GLE


gleLathe

Summary  |  Top
   public void gleLathe(int ncp, 
                        double[][] contour, 
                        double[][] contourNormal, 
                        double[] up, 
                        double startRadius, 
                        double drdTheta, 
                        double startZ, 
                        double dzdTheta, 
                        double[][] startTransform, 
                        double[][] dTransformdTheta, 
                        double startTheta, 
                        double sweepTheta)  throws GLEException

Sweep an arbitrary contour along a helical path. The sweep will be performed as a shear along the z-axis so that the orientation of the contour is displaced, rather than translated, as the contour is swept.

Parameter Description
ncp The number of contour points
contour An array containing the points forming the 2D contour specified as ( x, y )
contourNormal An array containing the normals for each contour point
up The up vector for the contour
startRadius The spiral starts in XY plane
drdTheta The change in radius per revolution
startZ The starting Z value
dzdTheta The change in Z per revolution
startTransform The starting contour affine transformation
dTransformdTheta The tangent change transformation per revolution
startTheta The start angle in XY plane
sweepTheta The number of degrees to spiral around

Implements:
gleLathe in interface GLE


gleHelicoid

Summary  |  Top
   public void gleHelicoid(double rToroid, 
                           double startRadius, 
                           double drdTheta, 
                           double startZ, 
                           double dzdTheta, 
                           double[][] startTransform, 
                           double[][] dTransformdTheta, 
                           double startTheta, 
                           double sweepTheta)  throws GLEException

Generalized Torus. Similar to gleSpiral() except contour is a circle. Uses gleSpiral() to draw.

Parameter Description
rToroid The circle contour radius
startRadius The spiral starts in XY plane
drdTheta The change in radius per revolution
startZ The starting Z value
dzdTheta The change in Z per revolution
startTransform The starting contour affine transformation
dTransformdTheta The tangent change transformation per revolution
startTheta The start angle in XY plane
sweepTheta The number of degrees to spiral around

Implements:
gleHelicoid in interface GLE

See Also: gleSpiral



gleToroid

Summary  |  Top
   public void gleToroid(double rToroid, 
                         double startRadius, 
                         double drdTheta, 
                         double startZ, 
                         double dzdTheta, 
                         double[][] startTransform, 
                         double[][] dTransformdTheta, 
                         double startTheta, 
                         double sweepTheta)  throws GLEException

Generalized Torus. Similar to gleLathe() except contour is a circle. Uses gleLathe() to draw.

Parameter Description
rToroid The circle contour radius
startRadius The spiral starts in XY plane
drdTheta The change in radius per revolution
startZ The starting Z value
dzdTheta The change in Z per revolution
startTransform The starting contour affine transformation
dTransformdTheta The tangent change transformation per revolution
startTheta The start angle in XY plane
sweepTheta The number of degrees to spiral around

Implements:
gleToroid in interface GLE

See Also: gleSpiral



gleScrew

Summary  |  Top
   public void gleScrew(int ncp, 
                        double[][] contour, 
                        double[][] contourNormal, 
                        double[] up, 
                        double startz, 
                        double endz, 
                        double twist)  throws GLEException

Draws screw-type shapes. Takes a contour and extrudes it along the z-axis from a start z-value of startz to and end z-value of endz. During the extrusion, it will spin the contour along the contour origin by twist degrees.

Parameter Description
ncp The number of contour points
contour An array containing the vertex data for the 2D contour specified as ( x, y )
contourNormal An array containing the normal data for the 2D contour
up The up vector for the contour
startz The start z-value for the segment
endz The end z-value for the segment
twist The number of rotations to be applied to the contour

Implements:
gleScrew in interface GLE


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