Class UIArc

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class UIArc extends Mesh
  • Field Details

    • _sampleRate

      protected double _sampleRate
    • _radius

      protected double _radius
    • _innerRadius

      protected double _innerRadius
    • _arcLength

      protected double _arcLength
  • Constructor Details

    • UIArc

      public UIArc()
    • UIArc

      public UIArc(String name, double sampleRate, double radius, double innerRadius)
      Creates a flat disk (circle) at the origin flat along the Z. Usually, a higher sample number creates a better looking cylinder, but at the cost of more vertex information.
      Parameters:
      name - The name of the arc.
      sampleRate - The number of radial samples per radian.
      radius - The radius of the arc.
      innerRadius - The innerRadius of the arc.
  • Method Details

    • resetGeometry

      public void resetGeometry(double startAngle, double arcLength, double radius, double innerRadius, SubTex subTex, boolean ignoreArcEdges)
    • getSampleRate

      public double getSampleRate()
    • getRadius

      public double getRadius()
    • getInnerRadius

      public double getInnerRadius()