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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BSplineCurveImpl.Type
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
Fields inherited from class de.grogra.math.VertexSetBase
data, data$FIELD, dimension, dimension$FIELD
-
Constructor Summary
ConstructorsConstructorDescriptionBSplineCurveImpl
(float[] data, int dimension, int degree, boolean periodic, boolean rational) -
Method Summary
Modifier and TypeMethodDescriptionstatic BSplineCurveImpl
create
(float[] controlPoints, int dimension, int degree, boolean clamp, boolean periodic) protected int
getCount()
int
int
getDegree
(GraphState gs) float
getKnot
(int dim, int index, GraphState gs) protected int
getKnotIndex
(int knot) int
getSize
(GraphState gs) int
getVertex
(float[] out, int index, GraphState gs) boolean
boolean
boolean
isRational
(GraphState gs) void
setDegree
(int value) void
setPeriodic
(boolean value) void
setRational
(boolean value) Methods inherited from class de.grogra.math.VertexSetBase
dependsOnContext, getData, getDimension, getDimension, 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.graph.ContextDependent
dependsOnContext, writeStamp
Methods inherited from interface de.grogra.math.VertexSet
getDimension
-
Field Details
-
$TYPE
-
degree$FIELD
-
periodic$FIELD
-
rational$FIELD
-
-
Constructor Details
-
BSplineCurveImpl
public BSplineCurveImpl() -
BSplineCurveImpl
public BSplineCurveImpl(float[] data, int dimension, int degree, boolean periodic, boolean rational)
-
-
Method Details
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
- Overrides:
getManageableType
in classVertexListImpl
-
isPeriodic
public boolean isPeriodic() -
setPeriodic
public void setPeriodic(boolean value) -
isRational
public boolean isRational() -
setRational
public void setRational(boolean value) -
getDegree
public int getDegree() -
setDegree
public void setDegree(int value) -
create
public static BSplineCurveImpl create(float[] controlPoints, int dimension, int degree, boolean clamp, boolean periodic) -
getCount
protected int getCount() -
getVertex
- Specified by:
getVertex
in interfaceVertexSet
- Overrides:
getVertex
in classVertexSetBase
-
getSize
- Specified by:
getSize
in interfaceVertexList
- Overrides:
getSize
in classVertexListImpl
-
getDegree
- Specified by:
getDegree
in interfaceBSplineCurve
-
getKnot
- Specified by:
getKnot
in interfaceKnotVector
-
getKnotIndex
protected int getKnotIndex(int knot) -
isRational
- Specified by:
isRational
in interfaceVertexSet
- Overrides:
isRational
in classVertexSetBase
-