de.grogra.math
Class BSplineSurfaceImpl
java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.impl.ContextDependentBase
de.grogra.math.VertexSetBase
de.grogra.math.VertexGridImpl
de.grogra.math.BSplineSurfaceImpl
- All Implemented Interfaces:
- ContextDependent, BSplineSurface, KnotVector, VertexGrid, VertexSet, Manageable, Shareable
public class BSplineSurfaceImpl
- extends VertexGridImpl
- implements BSplineSurface
Method Summary |
static BSplineSurfaceImpl |
create(float[] controlPoints,
int uCount,
int dimension,
int uDegree,
boolean uClamp,
boolean uPeriodic,
int vDegree,
boolean vClamp,
boolean vPeriodic)
|
float |
getKnot(int dim,
int index,
GraphState gs)
|
ManageableType |
getManageableType()
|
int |
getUDegree()
|
int |
getUDegree(GraphState gs)
|
int |
getUSize(GraphState gs)
|
protected int |
getVCount()
|
int |
getVDegree()
|
int |
getVDegree(GraphState gs)
|
int |
getVertexIndex(int u,
int v,
GraphState gs)
|
int |
getVSize(GraphState gs)
|
boolean |
isRational()
|
boolean |
isRational(GraphState gs)
|
boolean |
isUPeriodic()
|
boolean |
isVPeriodic()
|
void |
setRational(boolean value)
|
void |
setUDegree(int value)
|
void |
setUPeriodic(boolean value)
|
void |
setVDegree(int value)
|
void |
setVPeriodic(boolean value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
$TYPE
public static final BSplineSurfaceImpl.Type $TYPE
rational$FIELD
public static final SCOType.Field rational$FIELD
uDegree$FIELD
public static final SCOType.Field uDegree$FIELD
uPeriodic$FIELD
public static final SCOType.Field uPeriodic$FIELD
vDegree$FIELD
public static final SCOType.Field vDegree$FIELD
vPeriodic$FIELD
public static final SCOType.Field vPeriodic$FIELD
BSplineSurfaceImpl
public BSplineSurfaceImpl()
BSplineSurfaceImpl
public BSplineSurfaceImpl(float[] data,
int dimension,
int uCount,
int uDegree,
boolean uPeriodic,
int vDegree,
boolean vPeriodic)
create
public static BSplineSurfaceImpl create(float[] controlPoints,
int uCount,
int dimension,
int uDegree,
boolean uClamp,
boolean uPeriodic,
int vDegree,
boolean vClamp,
boolean vPeriodic)
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 VertexGridImpl
getUDegree
public int getUDegree()
getUDegree
public int getUDegree(GraphState gs)
- Specified by:
getUDegree
in interface BSplineSurface
getUSize
public int getUSize(GraphState gs)
- Specified by:
getUSize
in interface VertexGrid
- Overrides:
getUSize
in class VertexGridImpl
getVCount
protected int getVCount()
getVDegree
public int getVDegree()
getVDegree
public int getVDegree(GraphState gs)
- Specified by:
getVDegree
in interface BSplineSurface
getVertexIndex
public int getVertexIndex(int u,
int v,
GraphState gs)
- Specified by:
getVertexIndex
in interface VertexGrid
- Overrides:
getVertexIndex
in class VertexGridImpl
getVSize
public int getVSize(GraphState gs)
- Specified by:
getVSize
in interface VertexGrid
- Overrides:
getVSize
in class VertexGridImpl
isRational
public boolean isRational()
isRational
public boolean isRational(GraphState gs)
- Specified by:
isRational
in interface VertexSet
- Overrides:
isRational
in class VertexSetBase
isUPeriodic
public boolean isUPeriodic()
isVPeriodic
public boolean isVPeriodic()
setRational
public void setRational(boolean value)
setUDegree
public void setUDegree(int value)
setUPeriodic
public void setUPeriodic(boolean value)
setVDegree
public void setVDegree(int value)
setVPeriodic
public void setVPeriodic(boolean value)