Class UIDisk

All Implemented Interfaces:
Pickable, Hintable, Renderable, Savable

public class UIDisk extends Mesh
  • Field Details

    • _radialSamples

      protected int _radialSamples
    • _radius

      protected double _radius
    • _innerRadius

      protected double _innerRadius
  • Constructor Details

    • UIDisk

      public UIDisk()
    • UIDisk

      public UIDisk(String name, int radialSamples, double radius)
      Creates a flat disk (circle) at the origin flat along the Z. Usually, a higher sample number creates a better looking disk, but at the cost of more vertex information.
      Parameters:
      name - The name of the disk.
      radialSamples - The number of radial samples.
      radius - The outer radius of the disk.
    • UIDisk

      public UIDisk(String name, int radialSamples, 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 disk, but at the cost of more vertex information.
      Parameters:
      name - The name of the disk.
      radialSamples - The number of radial samples.
      radius - The outer radius of the disk.
      innerRadius - The inner radius of the disk. If greater than 0, the center of the disk has a hole of this size.
  • Method Details

    • resetGeometry

      public void resetGeometry(double radius, double innerRadius, SubTex subTex)
    • getRadialSamples

      public int getRadialSamples()
    • getRadius

      public double getRadius()
    • getInnerRadius

      public double getInnerRadius()