Class Circle

java.lang.Object
frc.spectrumLib.sim.Circle

public class Circle extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Circle(int backgroundLines, double diameterInches, String name, edu.wpi.first.wpilibj.smartdashboard.MechanismRoot2d root, edu.wpi.first.wpilibj.smartdashboard.Mechanism2d mech)
     
    Circle(edu.wpi.first.wpilibj.smartdashboard.Mechanism2d mech, int backgroundLines, double diameterInches, String name, edu.wpi.first.wpilibj.smartdashboard.MechanismRoot2d root, edu.wpi.first.wpilibj.util.Color8Bit color)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
     
    int
     
    edu.wpi.first.wpilibj.smartdashboard.MechanismLigament2d[]
     
    void
    setBackgroundColor(edu.wpi.first.wpilibj.util.Color8Bit color)
     
    setColor(edu.wpi.first.wpilibj.util.Color8Bit color)
     
    void
    setHalfBackground(edu.wpi.first.wpilibj.util.Color8Bit color8Bit, edu.wpi.first.wpilibj.util.Color8Bit color8Bit2)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Circle

      public Circle(int backgroundLines, double diameterInches, String name, edu.wpi.first.wpilibj.smartdashboard.MechanismRoot2d root, edu.wpi.first.wpilibj.smartdashboard.Mechanism2d mech)
    • Circle

      public Circle(edu.wpi.first.wpilibj.smartdashboard.Mechanism2d mech, int backgroundLines, double diameterInches, String name, edu.wpi.first.wpilibj.smartdashboard.MechanismRoot2d root, edu.wpi.first.wpilibj.util.Color8Bit color)
  • Method Details

    • drawCircle

      public void drawCircle()
    • drawViz

      public void drawViz()
    • setBackgroundColor

      public void setBackgroundColor(edu.wpi.first.wpilibj.util.Color8Bit color)
    • setHalfBackground

      public void setHalfBackground(edu.wpi.first.wpilibj.util.Color8Bit color8Bit, edu.wpi.first.wpilibj.util.Color8Bit color8Bit2)
    • getCircleBackground

      public edu.wpi.first.wpilibj.smartdashboard.MechanismLigament2d[] getCircleBackground()
    • getBackgroundLines

      public int getBackgroundLines()
    • setColor

      public Circle setColor(edu.wpi.first.wpilibj.util.Color8Bit color)
      Returns:
      this.
    • setName

      public Circle setName(String name)
      Returns:
      this.