de.grogra.math
Class StraightLine

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

public class StraightLine
extends ContextDependentBase
implements BSplineCurve


Nested Class Summary
static class StraightLine.Type
           
 
Field Summary
static StraightLine.Type $TYPE
           
static SCOType.Field length$FIELD
           
static SCOType.Field plane$FIELD
           
 
Constructor Summary
StraightLine()
           
StraightLine(float length)
           
 
Method Summary
 boolean dependsOnContext()
          Determines whether this object actually depends on context.
 int getDegree(GraphState gs)
           
 int getDimension(GraphState gs)
           
 float getKnot(int dim, int index, GraphState gs)
           
 float getLength()
           
 ManageableType getManageableType()
           
 int getPlane()
           
 int getSize(GraphState gs)
           
 int getVertex(float[] out, int index, GraphState gs)
           
 boolean isRational(GraphState gs)
           
 void setLength(float value)
           
 void setPlane(int 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 Detail

$TYPE

public static final StraightLine.Type $TYPE

length$FIELD

public static final SCOType.Field length$FIELD

plane$FIELD

public static final SCOType.Field plane$FIELD
Constructor Detail

StraightLine

public StraightLine()

StraightLine

public StraightLine(float length)
Method Detail

dependsOnContext

public boolean dependsOnContext()
Description copied from interface: ContextDependent
Determines whether this object actually depends on context.

Specified by:
dependsOnContext in interface ContextDependent
Returns:
true iff this object depends on context

getDegree

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

getDimension

public int getDimension(GraphState gs)
Specified by:
getDimension in interface VertexSet

getKnot

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

getLength

public float getLength()

getManageableType

public ManageableType getManageableType()
Specified by:
getManageableType in interface Manageable

getPlane

public int getPlane()

getSize

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

getVertex

public int getVertex(float[] out,
                     int index,
                     GraphState gs)
Specified by:
getVertex in interface VertexSet

isRational

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

setLength

public void setLength(float value)

setPlane

public void setPlane(int value)