All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----com.hermetica.magician.GLUNurbs
Summary |
public class GLUNurbs extends java.lang.Object { // Fields 1 public static final String VERSION; // Constructors 1 public GLUNurbs(); // Methods 13 public native void beginCurve(); public native void beginSurface(); public native void beginTrim(); public native synchronized void destroy(); public native void endCurve(); public native void endSurface(); public native void endTrim(); public native float getNurbsProperty(int); public native void loadSamplingMatrices(float[], float[], int[]); public void nurbsCurve(int, float[], int, float[][], int, int); public native void nurbsProperty(int, float); public void nurbsSurface(int, float[], int, float[], int, int, float[][][], int, int, int); public void pwlCurve(int, float[][], int, int); }
This class defines the API of a GLU NURBS object. This allows developers access to a fairly powerful high-level API for creating an manipulating NURBS objects such as surfaces and curves.
See Also: GLU
Cross Reference |
Fields |
· VERSION | Summary | Top |
public static final String VERSION
Version information
Constructors |
· GLUNurbs | Summary | Top |
public GLUNurbs()
Constructs a new NURBS generator
Methods |
· nurbsProperty | Summary | Top |
public native void nurbsProperty(int property, float value)
Sets a NURBS property
Parameter Description property The NURBS property to set value The value to set the property to
- Throws: OpenGLException
- General OpenGL error
· loadSamplingMatrices | Summary | Top |
public native void loadSamplingMatrices(float[] modelMatrix, float[] projMatrix, int[] viewport)
Loads sampling matrices for NURBS manipulation
Parameter Description modelMatrix A modelview matrix projMatrix A projection matrix viewport A viewport
- Throws: OpenGLException
- General OpenGL error
· getNurbsProperty | Summary | Top |
public native float getNurbsProperty(int property)
Queries a NURBS object for the given property value
Parameter Description nurb A GLUNurbs object property The property to query the value of
- Throws: OpenGLException
- General OpenGL error
· beginSurface | Summary | Top |
public native void beginSurface()
Signifies the beginning of a NURBS surface definition
- Throws: OpenGLException
- General OpenGL error
· endSurface | Summary | Top |
public native void endSurface()
Signifies the end of a NURBS surface definition
- Throws: OpenGLException
- General OpenGL error
· nurbsSurface | Summary | Top |
public void nurbsSurface(int uknot_count, float[] uknot, int vknot_count, float[] vknot, int u_stride, int v_stride, float[][][] ctlarray, int uorder, int vorder, int type)
Definition of a NURBS surface
Parameter Description nurb A GLUNurbs object uknot_count Specifies the number of knots in the parametric u direction uknot The knot data vknot_count Specifies the number of knots in the parametric v direction vknot The knot data u_stride Specifies the offset between successive control points in the parametric u direction v_stride Specifies the offset between successive control points in the parametric v direction ctlarray An array of control points uorder Specifies the order of the NURBS surface in the parametric u direction vorder Specifies the order of the NURBS surface in the parametric v direction type Specifies the type of the surface
- Throws: OpenGLException
- General OpenGL error
· beginCurve | Summary | Top |
public native void beginCurve()
Signifies the beginning of a NURBS curve
- Throws: OpenGLException
- General OpenGL error
· endCurve | Summary | Top |
public native void endCurve()
Signifies the end of a NURBS curve definition
- Throws: OpenGLException
- General OpenGL error
· nurbsCurve | Summary | Top |
public void nurbsCurve(int uknot_count, float[] uknot, int ustride, float[][] ctlarray, int uorder, int type)
Definition of a NURBS curve
Parameter Description uknot_count The number of knots in the curve uknot The knot data ustride Offset between successive control points ctlarray The control points for the curve uorder The order of the NURBS curve type Specifies the type of the curve
- Throws: OpenGLException
- General OpenGL error
· beginTrim | Summary | Top |
public native void beginTrim()
Signifies the beginning of a trim curve
- Throws: OpenGLException
- General OpenGL error
· endTrim | Summary | Top |
public native void endTrim()
Signifies the end of a trim curve definition
- Throws: OpenGLException
- General OpenGL error
· pwlCurve | Summary | Top |
public void pwlCurve(int count, float[][] array, int stride, int type)
Definition of a piecewise linear curve
Parameter Description count The number of points on the curve array Specifies an array containing the curve point stride Offset between each control point type Specifies the type of curve
- Throws: OpenGLException
- General OpenGL error
· destroy | Summary | Top |
public native synchronized void destroy()
Destroys a NURBS object
- Throws: OpenGLException
- General OpenGL error
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7