|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.hermetica.magician.GLUNurbs
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.
GLU| Field Summary | |
static java.lang.String |
VERSION
Version information |
| Constructor Summary | |
GLUNurbs()
Constructs a new NURBS generator |
|
| Method Summary | |
void |
beginCurve()
Signifies the beginning of a NURBS curve |
void |
beginSurface()
Signifies the beginning of a NURBS surface definition |
void |
beginTrim()
Signifies the beginning of a trim curve |
void |
destroy()
Destroys a NURBS object |
void |
endCurve()
Signifies the end of a NURBS curve definition |
void |
endSurface()
Signifies the end of a NURBS surface definition |
void |
endTrim()
Signifies the end of a trim curve definition |
float |
getNurbsProperty(int property)
Queries a NURBS object for the given property value |
void |
loadSamplingMatrices(float[] modelMatrix,
float[] projMatrix,
int[] viewport)
Loads sampling matrices for NURBS manipulation |
void |
nurbsCurve(int uknot_count,
float[] uknot,
int ustride,
float[][] ctlarray,
int uorder,
int type)
Definition of a NURBS curve |
void |
nurbsProperty(int property,
float value)
Sets a NURBS property |
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 |
void |
pwlCurve(int count,
float[][] array,
int stride,
int type)
Definition of a piecewise linear curve |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final java.lang.String VERSION
| Constructor Detail |
public GLUNurbs()
| Method Detail |
public void nurbsProperty(int property,
float value)
property - The NURBS property to setvalue - The value to set the property to
public void loadSamplingMatrices(float[] modelMatrix,
float[] projMatrix,
int[] viewport)
modelMatrix - A modelview matrixprojMatrix - A projection matrixviewport - A viewportpublic float getNurbsProperty(int property)
nurb - A GLUNurbs objectproperty - The property to query the value ofpublic void beginSurface()
public void endSurface()
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)
nurb - A GLUNurbs objectuknot_count - Specifies the number of knots in the parametric u directionuknot - The knot datavknot_count - Specifies the number of knots in the parametric v directionvknot - The knot datau_stride - Specifies the offset between successive control points in the parametric u directionv_stride - Specifies the offset between successive control points in the parametric v directionctlarray - An array of control pointsuorder - Specifies the order of the NURBS surface in the parametric u directionvorder - Specifies the order of the NURBS surface in the parametric v directiontype - Specifies the type of the surfacepublic void beginCurve()
public void endCurve()
public void nurbsCurve(int uknot_count,
float[] uknot,
int ustride,
float[][] ctlarray,
int uorder,
int type)
uknot_count - The number of knots in the curveuknot - The knot dataustride - Offset between successive control pointsctlarray - The control points for the curveuorder - The order of the NURBS curvetype - Specifies the type of the curvepublic void beginTrim()
public void endTrim()
public void pwlCurve(int count,
float[][] array,
int stride,
int type)
count - The number of points on the curvearray - Specifies an array containing the curve pointstride - Offset between each control pointtype - Specifies the type of curvepublic void destroy()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||