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

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

public class Knotspec
extends Object

Knot vector specification

Author:
Tomas Hrasky

Field Summary
 CArrayOfFloats inkbegin
          Begin of input knots
 CArrayOfFloats inkend
          End of input knots
 boolean istransformed
          Tell whether knotspec has already benn transformed
 CArrayOfFloats klast
          Last knot
 Knotspec kspectotrans
          Knotspec to be transformed
 int ncoords
          Number of control points' coordinates
 Knotspec next
          Next knot specification in linked list (used in surfaces)
 int order
          Curve order
 int poststride
          Number of control points' coordinates after knot operations
 int prestride
          Stride before knot operations
 
Constructor Summary
Knotspec()
           
 
Method Summary
 void copy(CArrayOfFloats _inpt, CArrayOfFloats _outpt)
          Copies control points
 void preselect()
          Finds knot border of knot insertion and required multiplicities
 void select()
          Perpares knotspec for transformation
 void transform(CArrayOfFloats _p)
          Inserts a knot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inkbegin

public CArrayOfFloats inkbegin
Begin of input knots


inkend

public CArrayOfFloats inkend
End of input knots


prestride

public int prestride
Stride before knot operations


order

public int order
Curve order


next

public Knotspec next
Next knot specification in linked list (used in surfaces)


klast

public CArrayOfFloats klast
Last knot


poststride

public int poststride
Number of control points' coordinates after knot operations


ncoords

public int ncoords
Number of control points' coordinates


istransformed

public boolean istransformed
Tell whether knotspec has already benn transformed


kspectotrans

public Knotspec kspectotrans
Knotspec to be transformed

Constructor Detail

Knotspec

public Knotspec()
Method Detail

preselect

public void preselect()
Finds knot border of knot insertion and required multiplicities


select

public void select()
Perpares knotspec for transformation


copy

public void copy(CArrayOfFloats _inpt,
                 CArrayOfFloats _outpt)
Copies control points

Parameters:
_inpt - input control points
_outpt - output control points

transform

public void transform(CArrayOfFloats _p)
Inserts a knot

Parameters:
_p - inserted knot


Copyright 2010 JogAmp Community.