Package frc.spectrumLib.sim
Class Circle
java.lang.Object
frc.spectrumLib.sim.Circle
-
Constructor Summary
ConstructorsConstructorDescriptionCircle
(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 TypeMethodDescriptionvoid
void
drawViz()
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)
-
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
- Returns:
this
.
-
setName
- Returns:
this
.
-