de.grogra.math
Class BezierCurve

java.lang.Object
  extended by de.grogra.persistence.ShareableBase
      extended by de.grogra.graph.impl.ContextDependentBase
          extended by de.grogra.math.VertexSetBase
              extended by de.grogra.math.VertexListImpl
                  extended by de.grogra.math.BezierCurve
All Implemented Interfaces:
ContextDependent, BSplineCurve, KnotVector, VertexList, VertexSet, Manageable, Shareable

public class BezierCurve
extends VertexListImpl
implements BSplineCurve


Nested Class Summary
static class BezierCurve.Type
           
 
Field Summary
static BezierCurve.Type $TYPE
           
static SCOType.Field rational$FIELD
           
 
Fields inherited from class de.grogra.math.VertexSetBase
data, data$FIELD, dimension, dimension$FIELD
 
Constructor Summary
BezierCurve()
           
BezierCurve(float[] data, int dimension)
           
 
Method Summary
 int getDegree(GraphState gs)
           
 float getKnot(int dim, int index, GraphState gs)
           
 ManageableType getManageableType()
           
 int getSize(GraphState gs)
           
 boolean isRational()
           
 boolean isRational(GraphState gs)
           
 void setRational(boolean value)
           
 
Methods inherited from class de.grogra.math.VertexSetBase
dependsOnContext, getData, getDimension, getDimension, getVertex, getVertexIndex, setData, setDimension
 
Methods inherited from class de.grogra.graph.impl.ContextDependentBase
writeStamp
 
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.grogra.math.VertexSet
getDimension, getVertex
 
Methods inherited from interface de.grogra.graph.ContextDependent
dependsOnContext, writeStamp
 

Field Detail

$TYPE

public static final BezierCurve.Type $TYPE

rational$FIELD

public static final SCOType.Field rational$FIELD
Constructor Detail

BezierCurve

public BezierCurve()

BezierCurve

public BezierCurve(float[] data,
                   int dimension)
Method Detail

getDegree

public int getDegree(GraphState gs)
Specified by:
getDegree in interface BSplineCurve

getKnot

public float getKnot(int dim,
                     int index,
                     GraphState gs)
Specified by:
getKnot in interface KnotVector

getManageableType

public ManageableType getManageableType()
Specified by:
getManageableType in interface Manageable
Overrides:
getManageableType in class VertexListImpl

getSize

public int getSize(GraphState gs)
Specified by:
getSize in interface VertexList
Overrides:
getSize in class VertexListImpl

isRational

public boolean isRational()

isRational

public boolean isRational(GraphState gs)
Specified by:
isRational in interface VertexSet
Overrides:
isRational in class VertexSetBase

setRational

public void setRational(boolean value)