de.grogra.math
Class BSplineCurveImpl
java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.impl.ContextDependentBase
de.grogra.math.VertexSetBase
de.grogra.math.VertexListImpl
de.grogra.math.BSplineCurveImpl
- All Implemented Interfaces:
- ContextDependent, BSplineCurve, KnotVector, VertexList, VertexSet, Manageable, Shareable
public class BSplineCurveImpl
- extends VertexListImpl
- implements BSplineCurve
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$TYPE
public static final BSplineCurveImpl.Type $TYPE
degree$FIELD
public static final SCOType.Field degree$FIELD
periodic$FIELD
public static final SCOType.Field periodic$FIELD
rational$FIELD
public static final SCOType.Field rational$FIELD
BSplineCurveImpl
public BSplineCurveImpl()
BSplineCurveImpl
public BSplineCurveImpl(float[] data,
int dimension,
int degree,
boolean periodic,
boolean rational)
create
public static BSplineCurveImpl create(float[] controlPoints,
int dimension,
int degree,
boolean clamp,
boolean periodic)
getCount
protected int getCount()
getDegree
public int getDegree()
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
getKnotIndex
protected int getKnotIndex(int knot)
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
getVertex
public int getVertex(float[] out,
int index,
GraphState gs)
- Specified by:
getVertex
in interface VertexSet
- Overrides:
getVertex
in class VertexSetBase
isPeriodic
public boolean isPeriodic()
isRational
public boolean isRational()
isRational
public boolean isRational(GraphState gs)
- Specified by:
isRational
in interface VertexSet
- Overrides:
isRational
in class VertexSetBase
setDegree
public void setDegree(int value)
setPeriodic
public void setPeriodic(boolean value)
setRational
public void setRational(boolean value)