java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.graph.impl.ContextDependentBase
de.grogra.math.RegularPolygon
- All Implemented Interfaces:
ContextDependent
,BSplineCurve
,KnotVector
,VertexList
,VertexSet
,Manageable
,Shareable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RegularPolygon.Type
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with fixed side countRegularPolygon
(int value) Constructor with side count as parameter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines whether this object actually depends on context.float
int
getDegree
(GraphState gs) int
float
getKnot
(int dim, int index, GraphState gs) int
getPlane()
int
int
getSize
(GraphState gs) float
int
getVertex
(float[] out, int index, GraphState gs) boolean
isRational
(GraphState gs) boolean
boolean
void
setCircumradius
(float value) void
setPlane
(int value) void
setReverse
(boolean value) void
setSideCount
(int value) void
setStarness
(float value) void
setTopHorizontal
(boolean value) 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
writeStamp
-
Field Details
-
$TYPE
-
circumradius$FIELD
-
sideCount$FIELD
-
topHorizontal$FIELD
-
starness$FIELD
-
plane$FIELD
-
reverse$FIELD
-
-
Constructor Details
-
RegularPolygon
public RegularPolygon(int value) Constructor with side count as parameter.- Parameters:
side
- count
-
RegularPolygon
public RegularPolygon()Constructor with fixed side count
-
-
Method Details
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
isTopHorizontal
public boolean isTopHorizontal() -
setTopHorizontal
public void setTopHorizontal(boolean value) -
isReverse
public boolean isReverse() -
setReverse
public void setReverse(boolean value) -
getSideCount
public int getSideCount() -
setSideCount
public void setSideCount(int value) -
getPlane
public int getPlane() -
setPlane
public void setPlane(int value) -
getCircumradius
public float getCircumradius() -
setCircumradius
public void setCircumradius(float value) -
getStarness
public float getStarness() -
setStarness
public void setStarness(float value) -
dependsOnContext
public boolean dependsOnContext()Description copied from interface:ContextDependent
Determines whether this object actually depends on context.- Specified by:
dependsOnContext
in interfaceContextDependent
- Returns:
true
iff this object depends on context
-
isRational
- Specified by:
isRational
in interfaceVertexSet
-
getDimension
- Specified by:
getDimension
in interfaceVertexSet
-
getDegree
- Specified by:
getDegree
in interfaceBSplineCurve
-
getSize
- Specified by:
getSize
in interfaceVertexList
-
getKnot
- Specified by:
getKnot
in interfaceKnotVector
-
getVertex
-