Class LineStripInterpolated

All Implemented Interfaces:
IMultiColorable, ISingleColorable, IGLBindedResource, IGLRenderer, ISortableDraw

public class LineStripInterpolated extends Composite
Creates an interpolated line to make a smooth 3d curve based on control points.
Author:
martin
  • Field Details

    • line

      protected LineStrip line
    • controlPoints

      protected List<Point> controlPoints
    • interpolatedPoints

      protected List<Point> interpolatedPoints
    • controlCoords

      protected List<Coord3d> controlCoords
    • interpolatedCoords

      protected List<Coord3d> interpolatedCoords
    • resolution

      protected int resolution
  • Constructor Details

    • LineStripInterpolated

      protected LineStripInterpolated()
    • LineStripInterpolated

      public LineStripInterpolated(List<Coord3d> controlPoints, int resolution)
    • LineStripInterpolated

      public LineStripInterpolated(IInterpolator interpolator, List<Coord3d> controlPoints, int resolution)
    • LineStripInterpolated

      public LineStripInterpolated(IInterpolator interpolator, List<Coord3d> controlPoints, int resolution, boolean drawPoints)
  • Method Details

    • toPoint

      protected Point toPoint(Coord3d coord, Color color, float width)
    • toPoints

      protected List<Point> toPoints(List<Coord3d> coords, Color color, float width)
    • getLine

      public LineStrip getLine()
    • getControlPoints

      public List<Point> getControlPoints()
    • getInterpolatedPoints

      public List<Point> getInterpolatedPoints()
    • getControlCoords

      public List<Coord3d> getControlCoords()
    • getInterpolatedCoords

      public List<Coord3d> getInterpolatedCoords()
    • getResolution

      public int getResolution()