|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.opengl.impl.glu.gl2.nurbs.GLUgl2nurbsImpl
public class GLUgl2nurbsImpl
Base object for working with NURBS curves and surfaces
Field Summary | |
---|---|
static int |
CT_NONE
Curve type - no type |
static int |
CT_NPWLCURVE
Curve type - picewise linear curve |
static int |
CT_NURBSCURVE
Curve type - NURBS curve |
Constructor Summary | |
---|---|
GLUgl2nurbsImpl()
Initializes default GLUgl2nurbs object |
Method Summary | |
---|---|
void |
bgncurve()
Begins new NURBS curve |
void |
bgnsurface()
Begin new surface |
void |
defineMap(int type,
int rational,
int ncoords)
Define a map of given properties |
void |
do_bgncurve(O_curve o_curve)
Begins a NURBS curve |
void |
do_bgnsurface(O_surface o_surface)
Begins new surface |
boolean |
do_check_knots(Knotvector knots,
String msg)
Check knot vector specification |
void |
do_endcurve()
Ends a curve |
void |
do_endsurface()
Ends surface |
void |
do_nurbscurve(O_nurbscurve o_nurbscurve)
Draw a curve |
void |
do_nurbssurface(O_nurbssurface o_nurbssurface)
Draw NURBS surface |
void |
do_setnurbsproperty(Property prop)
Set given property to rendering hints |
void |
do_setnurbsproperty2(Property prop)
Set parameters of existing property |
void |
endcurve()
End a curve |
void |
endsurface()
End current surface |
void |
nurbscurve(int nknots,
float[] knot,
int stride,
float[] ctlarray,
int order,
int realType)
Make a NURBS curve |
void |
nurbssurface(int sknot_count,
float[] sknot,
int tknot_count,
float[] tknot,
int s_stride,
int t_stride,
float[] ctlarray,
int sorder,
int torder,
int type)
Make NURBS surface |
void |
redefineMaps()
(Re)Inicialize maps |
void |
set_is_domain_distance_sampling(int i)
Sets wheteher we use domain distance sampling |
void |
setnurbsproperty(int type,
int tag,
float value)
Set NURBS property |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CT_NONE
public static final int CT_NURBSCURVE
public static final int CT_NPWLCURVE
Constructor Detail |
---|
public GLUgl2nurbsImpl()
Method Detail |
---|
public void bgncurve()
public void do_bgncurve(O_curve o_curve)
o_curve
- curve objectpublic void do_bgnsurface(O_surface o_surface)
o_surface
- surface objectpublic void endcurve()
public void do_endsurface()
public void do_endcurve()
public void nurbscurve(int nknots, float[] knot, int stride, float[] ctlarray, int order, int realType)
nknots
- number of knots in knot vectorknot
- knot vectorstride
- number of control points coordinatesctlarray
- control pointsorder
- order of the curverealType
- type of the curvepublic boolean do_check_knots(Knotvector knots, String msg)
knots
- knot vectormsg
- error message
public void do_nurbscurve(O_nurbscurve o_nurbscurve)
o_nurbscurve
- NURBS curve objectpublic void do_nurbssurface(O_nurbssurface o_nurbssurface)
o_nurbssurface
- NURBS surface objectpublic void redefineMaps()
public void defineMap(int type, int rational, int ncoords)
type
- map typerational
- is rationalncoords
- number of control point coordinatespublic void setnurbsproperty(int type, int tag, float value)
type
- property typetag
- property tagvalue
- property valuepublic void do_setnurbsproperty2(Property prop)
prop
- propertypublic void do_setnurbsproperty(Property prop)
prop
- property to be setpublic void set_is_domain_distance_sampling(int i)
i
- domain distance sampling flagpublic void bgnsurface()
public void endsurface()
public void nurbssurface(int sknot_count, float[] sknot, int tknot_count, float[] tknot, int s_stride, int t_stride, float[] ctlarray, int sorder, int torder, int type)
sknot_count
- number of knots in s directionsknot
- knot vector in s directiontknot_count
- number of knots in t directiontknot
- knot vector in t directions_stride
- number of coords of control points in s directiont_stride
- number of coords of control points in t directionctlarray
- control pointssorder
- order of curve in s directiontorder
- order of curve in t directiontype
- NURBS surface type (rational,...)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |