Top Description Methods
jogamp.opengl.glu.nurbs

public Interface SurfaceEvaluator

Known Direct Implementers
jogamp.opengl.glu.gl2.nurbs.GL2SurfaceEvaluator

Class rendering surfaces with OpenGL
Author
Tomas Hrasky

Method Summary

Modifier and TypeMethod and Description
public void
bgnmap2f()

Pushes eval bit

public void
domain2f(float ulo, float uhi, float vlo, float vhi)

Empty method

public void
enable(int
what to enable
type
)

Calls opengl enable

public void
endmap2f()

Pops all attributes

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

Initializes evaluator

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

Defines 2D mesh

public void
mapmesh2f(int
surface style
style
,
int
minimum U
umin
,
int
maximum U
umax
,
int
minimum V
vmin
,
int
maximum V
vmax
)

Evaluates surface

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

Sets glPolygonMode

Method Detail

bgnmap2fback to summary
public void bgnmap2f()

Pushes eval bit

domain2fback to summary
public void domain2f(float ulo, float uhi, float vlo, float vhi)

Empty method

enableback to summary
public void enable(int type)

Calls opengl enable

Parameters
type:int

what to enable

endmap2fback to summary
public void endmap2f()

Pops all attributes

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

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

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

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

mapmesh2fback to summary
public void mapmesh2f(int style, int umin, int umax, int vmin, int vmax)

Evaluates surface

Parameters
style:int

surface style

umin:int

minimum U

umax:int

maximum U

vmin:int

minimum V

vmax:int

maximum V

polymodeback to summary
public void polymode(int style)

Sets glPolygonMode

Parameters
style:int

polygon mode (N_MESHFILL/N_MESHLINE/N_MESHPOINT)