Module math

Class BSplineOfVertices

All Implemented Interfaces:
ContextDependent, BSplineCurve, KnotVector, VertexList, VertexSet, Manageable, Shareable

public class BSplineOfVertices extends ContextDependentBase implements BSplineCurve
  • Field Details

  • Constructor Details

    • BSplineOfVertices

      public BSplineOfVertices()
    • BSplineOfVertices

      public BSplineOfVertices(VertexList vertices, int degree, boolean periodic, boolean bezier)
  • Method Details

    • getManageableType

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

      public boolean isPeriodic()
    • setPeriodic

      public void setPeriodic(boolean value)
    • isRational

      public boolean isRational()
    • setRational

      public void setRational(boolean value)
    • isBezier

      public boolean isBezier()
    • setBezier

      public void setBezier(boolean value)
    • getDegree

      public int getDegree()
    • setDegree

      public void setDegree(int value)
    • getSize

      public int getSize()
    • setSize

      public void setSize(int value)
    • getVertices

      public VertexList getVertices()
    • setVertices

      public void setVertices(VertexList value)
    • getKnots

      public float[] getKnots()
    • setKnots

      public void setKnots(float[] value)
    • 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
    • writeStamp

      public void writeStamp(Cache.Entry cache, GraphState gs)
      Description copied from interface: ContextDependent
      Writes a stamp of the context into cache. Based on this stamp, a cache detects whether the context of this object has changed or not.
      Specified by:
      writeStamp in interface ContextDependent
      Overrides:
      writeStamp in class ContextDependentBase
      Parameters:
      cache - a cache entry to write the stamp
      gs - the current graph state
    • getVertex

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

      public int getSize(GraphState gs)
      Specified by:
      getSize in interface VertexList
    • 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
    • isRational

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

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