com.jogamp.opengl.impl.glu.nurbs
Class Mapdesc

java.lang.Object
  extended by com.jogamp.opengl.impl.glu.nurbs.Mapdesc

public class Mapdesc
extends Object

Class holding properties of OpenGL map

Author:
Tomas Hrasky

Field Summary
 int isrational
          Is map rational
 int ncoords
          Number of control point coords
 Mapdesc next
          Next description in list
 
Constructor Summary
Mapdesc(int type, int rational, int ncoords, Backend backend)
          Makes new mapdesc
 
Method Summary
 int getNCoords()
          Returns number of control points' coords
 float getProperty(int tag)
          Returns property of specified tag value
 int getType()
          Returns map type
 boolean isConstantSampling()
          Tells whether map is constantly sampling
 boolean isCulling()
          Tells whether map is culling
 boolean isDomainSampling()
          Tells whether map is domain sampling
 boolean isProperty(int tag)
          Tells whether tag is property tag
 boolean isRangeSampling()
          Tells whether map is range sampling
 void setProperty(int tag, float value)
          Sets property with given tag
 void xformSampling(CArrayOfFloats pts, int order, int stride, float[] sp, int outstride)
          Samples curve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

next

public Mapdesc next
Next description in list


isrational

public int isrational
Is map rational


ncoords

public int ncoords
Number of control point coords

Constructor Detail

Mapdesc

public Mapdesc(int type,
               int rational,
               int ncoords,
               Backend backend)
Makes new mapdesc

Parameters:
type - map type
rational - is rational
ncoords - number of control points coords
backend - backend object
Method Detail

isProperty

public boolean isProperty(int tag)
Tells whether tag is property tag

Parameters:
tag - property tag
Returns:
is/is not property

getNCoords

public int getNCoords()
Returns number of control points' coords

Returns:
number of control points' coords

getType

public int getType()
Returns map type

Returns:
map type

isRangeSampling

public boolean isRangeSampling()
Tells whether map is range sampling

Returns:
is map range sampling

isCulling

public boolean isCulling()
Tells whether map is culling

Returns:
is map culling

isConstantSampling

public boolean isConstantSampling()
Tells whether map is constantly sampling

Returns:
is map constant sampling

isDomainSampling

public boolean isDomainSampling()
Tells whether map is domain sampling

Returns:
is map domain sampling

getProperty

public float getProperty(int tag)
Returns property of specified tag value

Parameters:
tag - property tag
Returns:
property value

setProperty

public void setProperty(int tag,
                        float value)
Sets property with given tag

Parameters:
tag - property tag
value - desired value

xformSampling

public void xformSampling(CArrayOfFloats pts,
                          int order,
                          int stride,
                          float[] sp,
                          int outstride)
Samples curve

Parameters:
pts - control points
order - curve order
stride - number of control points' coordinates
sp - breakpoints
outstride - output number of control points' coordinates


Copyright 2010 JogAmp Community.