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

pack-priv Class GL2SurfaceEvaluator

extends Object
implements SurfaceEvaluator
Class Inheritance
All Implemented Interfaces
jogamp.opengl.glu.nurbs.SurfaceEvaluator
Imports
jogamp.opengl.glu.nurbs.*, com.jogamp.opengl.GL, .GL2, .GL2GL3, com.jogamp.opengl.glu.GLU, com.jogamp.opengl.glu.gl2.GLUgl2

Class rendering surfaces with OpenGL
Author
Tomas Hrasky

Field Summary

Modifier and TypeField and Description
private final GL2
gl

JOGL OpenGL object

private boolean
output_triangles

Output triangles (callback)

private int
poradi

Number of patch - used for distinguishing bezier plates forming NURBS surface with different colors

Constructor Summary

AccessConstructor and Description
public
GL2SurfaceEvaluator()

Creates new evaluator

Method Summary

Modifier and TypeMethod and Description
public void
public void
domain2f(final float ulo, final float uhi, final float vlo, final float vhi)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.domain2f.

Empty method
public void
enable(final int
what to enable
type
)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.enable.

Calls opengl enable
public void
public void
map2f(final int
surface type
type
,
final float
lowest u
ulo
,
final float
highest u
uhi
,
final int
number of objects between control points in u direction
ustride
,
final int
surface order in u direction
uorder
,
final float
lowest v
vlo
,
final float
highest v
vhi
,
final int
number of control points' coords
vstride
,
final int
surface order in v direction
vorder
,
final CArrayOfFloats
control points
pts
)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.map2f.

Initializes evaluator
public void
mapgrid2f(final int
number of steps in u direction
nu
,
final float
lowest u
u0
,
final float
highest u
u1
,
final int
number of steps in v direction
nv
,
final float
lowest v
v0
,
final float
highest v
v1
)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.mapgrid2f.

Defines 2D mesh
public void
mapmesh2f(final int
surface style
style
,
final int
minimum U
umin
,
final int
maximum U
umax
,
final int
minimum V
vmin
,
final int
maximum V
vmax
)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.mapmesh2f.

Evaluates surface
public void
polymode(final int
polygon mode (N_MESHFILL/N_MESHLINE/N_MESHPOINT)
style
)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.polymode.

Sets glPolygonMode
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

glback to summary
private final GL2 gl

JOGL OpenGL object

output_trianglesback to summary
private boolean output_triangles

Output triangles (callback)

poradiback to summary
private int poradi

Number of patch - used for distinguishing bezier plates forming NURBS surface with different colors

Constructor Detail

GL2SurfaceEvaluatorback to summary
public GL2SurfaceEvaluator()

Creates new evaluator

Method Detail

bgnmap2fback to summary
public void bgnmap2f()

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.bgnmap2f.

Pushes eval bit

Annotations
@Override
domain2fback to summary
public void domain2f(final float ulo, final float uhi, final float vlo, final float vhi)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.domain2f.

Empty method

Annotations
@Override
enableback to summary
public void enable(final int type)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.enable.

Calls opengl enable

Parameters
type:int

what to enable

Annotations
@Override
endmap2fback to summary
public void endmap2f()

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.endmap2f.

Pops all attributes

Annotations
@Override
map2fback to summary
public void map2f(final int type, final float ulo, final float uhi, final int ustride, final int uorder, final float vlo, final float vhi, final int vstride, final int vorder, final CArrayOfFloats pts)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.map2f.

Initializes evaluator

Parameters
type:int

surface type

ulo:float

lowest u

uhi:float

highest u

ustride:int

number of objects between control points in u direction

uorder:int

surface order in u direction

vlo:float

lowest v

vhi:float

highest v

vstride:int

number of control points' coords

vorder:int

surface order in v direction

pts:CArrayOfFloats

control points

Annotations
@Override
mapgrid2fback to summary
public void mapgrid2f(final int nu, final float u0, final float u1, final int nv, final float v0, final float v1)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.mapgrid2f.

Defines 2D mesh

Parameters
nu:int

number of steps in u direction

u0:float

lowest u

u1:float

highest u

nv:int

number of steps in v direction

v0:float

lowest v

v1:float

highest v

Annotations
@Override
mapmesh2fback to summary
public void mapmesh2f(final int style, final int umin, final int umax, final int vmin, final int vmax)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.mapmesh2f.

Evaluates surface

Parameters
style:int

surface style

umin:int

minimum U

umax:int

maximum U

vmin:int

minimum V

vmax:int

maximum V

Annotations
@Override
polymodeback to summary
public void polymode(final int style)

Implements jogamp.opengl.glu.nurbs.SurfaceEvaluator.polymode.

Sets glPolygonMode

Parameters
style:int

polygon mode (N_MESHFILL/N_MESHLINE/N_MESHPOINT)

Annotations
@Override