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

public Class Mapdesc

extends Object
Class Inheritance

Class holding properties of OpenGL map
Author
Tomas Hrasky

Field Summary

Modifier and TypeField and Description
private float
bbox_subdividing

Value of N_BBOX_SUBDIVIDING property

private final float[]
bboxsize

Not used

private final float[][]
bmat

Not used

pack-priv float
clampfactor

Value of N_CLAMPFACTOR property

private final float[][]
cmat

Not used

private float
culling_method

Value of N_CULLING property

private float
error_tolerance

Value of N_ERROR_TOLERANCE property

private final int
hcoords

Number of homogenous coords

private final int
inhcoords

Number of inhomogenous coords

public int
isrational

Is map rational

private final int
mask

Not used

private static final int
MAXCOORDS

Maximum control point coords

pack-priv float
maxrate

Maximal step

private float
maxsrate

Maximal u direction step

private float
maxtrate

Maximal v direction step

private float
minsavings

Value of N_MINSAVINGS property

public int
ncoords

Number of control point coords

public Mapdesc
next

Next description in list

private float
pixel_tolerance

Value of N_PIXEL_TOLERANCE property

private float
s_steps

Steps in u direction

private float
sampling_method

Value of N_SAMPLINGMETHOD property

private final float[][]
smat

Sampling matrix

private float
t_steps

Steps in v direction

private final int
type

Map type

Constructor Summary

AccessConstructor and Description
public
Mapdesc(final int
map type
type
,
final int
is rational
rational
,
final int
number of control points coords
ncoords
)

Makes new mapdesc

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

number of control points' coords
getNCoords
()

Returns number of control points' coords

public float

Returns:

property value
getProperty
(final int
property tag
tag
)

Returns property of specified tag value

public int

Returns:

map type
getType
()

Returns map type

private void
identify(final float[][]
matrix
arr
)

Make matrix identity matrix

public boolean

Returns:

is map constant sampling
isConstantSampling
()

Tells whether map is constantly sampling

public boolean

Returns:

is map culling
isCulling
()

Tells whether map is culling

public boolean

Returns:

is map domain sampling
isDomainSampling
()

Tells whether map is domain sampling

private boolean

Returns:

is map object space parasampling
isObjectSpaceParaSampling
()

Tells whether map is object space parasampling

private boolean

Returns:

is map object space sampling
isObjectSpacePathSampling
()

Tells whether map is object space sampling

pack-priv boolean

Returns:

is map parametric distance sampling
isParametricDistanceSampling
()

Tells whether map is parametric distance sampling

pack-priv boolean

Returns:

is map path length sampling
isPathLengthSampling
()

Tells whether map is path length sampling

public boolean

Returns:

is/is not property
isProperty
(final int
property tag
tag
)

Tells whether tag is property tag

public boolean

Returns:

is map range sampling
isRangeSampling
()

Tells whether map is range sampling

private boolean

Returns:

is map area sampling surface
isSurfaceAreaSampling
()

Tells whether map is area sampling surface

public void
setProperty(final int
property tag
tag
,
float
desired value
value
)

Sets property with given tag

private void
xFormMat(final float[][]
sampling matrix
mat
,
final CArrayOfFloats
ontrol points
pts
,
final int
curve order
order
,
final int
number of control points' coordinates
stride
,
final float[]
breakpoints
cp
,
final int
output number of control points' coordinates
outstride
)

Empty method

public void
xformSampling(final CArrayOfFloats
control points
pts
,
final int
curve order
order
,
final int
number of control points' coordinates
stride
,
final float[]
breakpoints
sp
,
final int
output number of control points' coordinates
outstride
)

Samples curve

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bbox_subdividingback to summary
private float bbox_subdividing

Value of N_BBOX_SUBDIVIDING property

bboxsizeback to summary
private final float[] bboxsize

Not used

bmatback to summary
private final float[][] bmat

Not used

clampfactorback to summary
pack-priv float clampfactor

Value of N_CLAMPFACTOR property

cmatback to summary
private final float[][] cmat

Not used

culling_methodback to summary
private float culling_method

Value of N_CULLING property

error_toleranceback to summary
private float error_tolerance

Value of N_ERROR_TOLERANCE property

hcoordsback to summary
private final int hcoords

Number of homogenous coords

inhcoordsback to summary
private final int inhcoords

Number of inhomogenous coords

isrationalback to summary
public int isrational

Is map rational

maskback to summary
private final int mask

Not used

MAXCOORDSback to summary
private static final int MAXCOORDS

Maximum control point coords

maxrateback to summary
pack-priv float maxrate

Maximal step

maxsrateback to summary
private float maxsrate

Maximal u direction step

maxtrateback to summary
private float maxtrate

Maximal v direction step

minsavingsback to summary
private float minsavings

Value of N_MINSAVINGS property

ncoordsback to summary
public int ncoords

Number of control point coords

nextback to summary
public Mapdesc next

Next description in list

pixel_toleranceback to summary
private float pixel_tolerance

Value of N_PIXEL_TOLERANCE property

s_stepsback to summary
private float s_steps

Steps in u direction

sampling_methodback to summary
private float sampling_method

Value of N_SAMPLINGMETHOD property

smatback to summary
private final float[][] smat

Sampling matrix

t_stepsback to summary
private float t_steps

Steps in v direction

typeback to summary
private final int type

Map type

Constructor Detail

Mapdescback to summary
public Mapdesc(final int type, final int rational, final int ncoords)

Makes new mapdesc

Parameters
type:int

map type

rational:int

is rational

ncoords:int

number of control points coords

Method Detail

getNCoordsback to summary
public int getNCoords()

Returns number of control points' coords

Returns:int

number of control points' coords

getPropertyback to summary
public float getProperty(final int tag)

Returns property of specified tag value

Parameters
tag:int

property tag

Returns:float

property value

getTypeback to summary
public int getType()

Returns map type

Returns:int

map type

identifyback to summary
private void identify(final float[][] arr)

Make matrix identity matrix

Parameters
arr:float[][]

matrix

isConstantSamplingback to summary
public boolean isConstantSampling()

Tells whether map is constantly sampling

Returns:boolean

is map constant sampling

isCullingback to summary
public boolean isCulling()

Tells whether map is culling

Returns:boolean

is map culling

isDomainSamplingback to summary
public boolean isDomainSampling()

Tells whether map is domain sampling

Returns:boolean

is map domain sampling

isObjectSpaceParaSamplingback to summary
private boolean isObjectSpaceParaSampling()

Tells whether map is object space parasampling

Returns:boolean

is map object space parasampling

isObjectSpacePathSamplingback to summary
private boolean isObjectSpacePathSampling()

Tells whether map is object space sampling

Returns:boolean

is map object space sampling

isParametricDistanceSamplingback to summary
pack-priv boolean isParametricDistanceSampling()

Tells whether map is parametric distance sampling

Returns:boolean

is map parametric distance sampling

isPathLengthSamplingback to summary
pack-priv boolean isPathLengthSampling()

Tells whether map is path length sampling

Returns:boolean

is map path length sampling

isPropertyback to summary
public boolean isProperty(final int tag)

Tells whether tag is property tag

Parameters
tag:int

property tag

Returns:boolean

is/is not property

isRangeSamplingback to summary
public boolean isRangeSampling()

Tells whether map is range sampling

Returns:boolean

is map range sampling

isSurfaceAreaSamplingback to summary
private boolean isSurfaceAreaSampling()

Tells whether map is area sampling surface

Returns:boolean

is map area sampling surface

setPropertyback to summary
public void setProperty(final int tag, float value)

Sets property with given tag

Parameters
tag:int

property tag

value:float

desired value

xFormMatback to summary
private void xFormMat(final float[][] mat, final CArrayOfFloats pts, final int order, final int stride, final float[] cp, final int outstride)

Empty method

Parameters
mat:float[][]

sampling matrix

pts:CArrayOfFloats

ontrol points

order:int

curve order

stride:int

number of control points' coordinates

cp:float[]

breakpoints

outstride:int

output number of control points' coordinates

xformSamplingback to summary
public void xformSampling(final CArrayOfFloats pts, final int order, final int stride, final float[] sp, final int outstride)

Samples curve

Parameters
pts:CArrayOfFloats

control points

order:int

curve order

stride:int

number of control points' coordinates

sp:float[]

breakpoints

outstride:int

output number of control points' coordinates