Top Description Fields Constructors Methods
jogamp.opengl.glu.nurbs

public Class Curve

extends Object
Class Inheritance

Class holding curve definition
Author
Tomáš Hráský

Field Summary

Modifier and TypeField and Description
private final int
cullval

Culling

private final Mapdesc
mapdesc

OpenGL maps

private static final int
MAXCOORDS

Maximum coordinates per control point

private static final int
MAXORDER

Max curve order

private float
minstepsize

Minimal subdivision stepsize

private final boolean
needsSampling

Does the curve need sampling

public Curve
next

Next curve in linked list

private final int
order

Curve order

private final float[]
range

Holds conversion range borders

pack-priv float[]
spts

Sampling points

public float
stepsize

Subdivision stepsize

private final int
stride

Number of coords

Constructor Summary

AccessConstructor and Description
public
Curve(final Quilt geo, final float[] pta, final float[] ptb, final Curve
next curve in linked list
c
)

Makes new Curve

Method Summary

Modifier and TypeMethod and Description
public void
clamp()

Clamps the curve

public int

Returns:

Subdivider.CULL_ACCEPT
cullCheck
()

Checks culling type

public void
getStepSize()

Computes subdivision step size

public boolean

Returns:

curve needs subdivison
needsSamplingSubdivision
()

Tells whether curve needs subdivision

private void
setstepsize(final float
maximum subdivision step size
max
)

Sets maximum subdivision step size

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cullvalback to summary
private final int cullval

Culling

mapdescback to summary
private final Mapdesc mapdesc

OpenGL maps

MAXCOORDSback to summary
private static final int MAXCOORDS

Maximum coordinates per control point

MAXORDERback to summary
private static final int MAXORDER

Max curve order

minstepsizeback to summary
private float minstepsize

Minimal subdivision stepsize

needsSamplingback to summary
private final boolean needsSampling

Does the curve need sampling

nextback to summary
public Curve next

Next curve in linked list

orderback to summary
private final int order

Curve order

rangeback to summary
private final float[] range

Holds conversion range borders

sptsback to summary
pack-priv float[] spts

Sampling points

stepsizeback to summary
public float stepsize

Subdivision stepsize

strideback to summary
private final int stride

Number of coords

Constructor Detail

Curveback to summary
public Curve(final Quilt geo, final float[] pta, final float[] ptb, final Curve c)

Makes new Curve

Parameters
c:Curve

next curve in linked list

Method Detail

clampback to summary
public void clamp()

Clamps the curve

cullCheckback to summary
public int cullCheck()

Checks culling type

Returns:int

Subdivider.CULL_ACCEPT

getStepSizeback to summary
public void getStepSize()

Computes subdivision step size

needsSamplingSubdivisionback to summary
public boolean needsSamplingSubdivision()

Tells whether curve needs subdivision

Returns:boolean

curve needs subdivison

setstepsizeback to summary
private void setstepsize(final float max)

Sets maximum subdivision step size

Parameters
max:float

maximum subdivision step size