com.jogamp.opengl.impl.glu.nurbs
Interface SurfaceEvaluator


public interface SurfaceEvaluator

Class rendering surfaces with OpenGL

Author:
Tomas Hrasky

Method Summary
 void bgnmap2f()
          Pushes eval bit
 void domain2f(float ulo, float uhi, float vlo, float vhi)
          Empty method
 void enable(int type)
          Calls opengl enable
 void endmap2f()
          Pops all attributes
 void map2f(int type, float ulo, float uhi, int ustride, int uorder, float vlo, float vhi, int vstride, int vorder, CArrayOfFloats pts)
          Initializes evaluator
 void mapgrid2f(int nu, float u0, float u1, int nv, float v0, float v1)
          Defines 2D mesh
 void mapmesh2f(int style, int umin, int umax, int vmin, int vmax)
          Evaluates surface
 void polymode(int style)
          Sets glPolygonMode
 

Method Detail

bgnmap2f

void bgnmap2f()
Pushes eval bit


polymode

void polymode(int style)
Sets glPolygonMode

Parameters:
style - polygon mode (N_MESHFILL/N_MESHLINE/N_MESHPOINT)

endmap2f

void endmap2f()
Pops all attributes


domain2f

void domain2f(float ulo,
              float uhi,
              float vlo,
              float vhi)
Empty method

Parameters:
ulo -
uhi -
vlo -
vhi -

mapgrid2f

void mapgrid2f(int nu,
               float u0,
               float u1,
               int nv,
               float v0,
               float v1)
Defines 2D mesh

Parameters:
nu - number of steps in u direction
u0 - lowest u
u1 - highest u
nv - number of steps in v direction
v0 - lowest v
v1 - highest v

mapmesh2f

void mapmesh2f(int style,
               int umin,
               int umax,
               int vmin,
               int vmax)
Evaluates surface

Parameters:
style - surface style
umin - minimum U
umax - maximum U
vmin - minimum V
vmax - maximum V

map2f

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 - surface type
ulo - lowest u
uhi - highest u
ustride - number of objects between control points in u direction
uorder - surface order in u direction
vlo - lowest v
vhi - highest v
vstride - number of control points' coords
vorder - surface order in v direction
pts - control points

enable

void enable(int type)
Calls opengl enable

Parameters:
type - what to enable


Copyright 2010 JogAmp Community.