WPILibC++ 2024.3.2
frc::ShuffleboardTab Class Referencefinal

Represents a tab in the Shuffleboard dashboard. More...

#include <frc/shuffleboard/ShuffleboardTab.h>

Inheritance diagram for frc::ShuffleboardTab:
frc::ShuffleboardContainer frc::ShuffleboardValue

Public Member Functions

 ShuffleboardTab (ShuffleboardRoot &root, std::string_view title)
 
ShuffleboardRootGetRoot ()
 
void BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override
 Builds the entries for this value. More...
 
- Public Member Functions inherited from frc::ShuffleboardContainer
 ShuffleboardContainer (std::string_view title)
 
 ShuffleboardContainer (ShuffleboardContainer &&rhs)=default
 
 ~ShuffleboardContainer () override=default
 
const std::vector< std::unique_ptr< ShuffleboardComponentBase > > & GetComponents () const
 Gets the components that are direct children of this container. More...
 
ShuffleboardLayoutGetLayout (std::string_view title, BuiltInLayouts type)
 Gets the layout with the given type and title, creating it if it does not already exist at the time this method is called. More...
 
ShuffleboardLayoutGetLayout (std::string_view title, const LayoutType &type)
 Gets the layout with the given type and title, creating it if it does not already exist at the time this method is called. More...
 
ShuffleboardLayoutGetLayout (std::string_view title, std::string_view type)
 Gets the layout with the given type and title, creating it if it does not already exist at the time this method is called. More...
 
ShuffleboardLayoutGetLayout (std::string_view title)
 Gets the already-defined layout in this container with the given title. More...
 
ComplexWidgetAdd (std::string_view title, wpi::Sendable &sendable)
 Adds a widget to this container to display the given sendable. More...
 
ComplexWidgetAdd (std::string_view title, const cs::VideoSource &video)
 Adds a widget to this container to display the given video stream. More...
 
ComplexWidgetAddCamera (std::string_view title, std::string_view cameraName, std::span< const std::string > cameraUrls)
 Adds a widget to this container to display a video stream. More...
 
ComplexWidgetAdd (wpi::Sendable &sendable)
 Adds a widget to this container to display the given sendable. More...
 
ComplexWidgetAdd (const cs::VideoSource &video)
 Adds a widget to this container to display the given video stream. More...
 
SimpleWidgetAdd (std::string_view title, const nt::Value &defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, bool defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, double defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, float defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, int defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, std::string_view defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, const char *defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, std::span< const bool > defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, std::span< const double > defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, std::span< const float > defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, std::span< const int64_t > defaultValue)
 Adds a widget to this container to display the given data. More...
 
SimpleWidgetAdd (std::string_view title, std::span< const std::string > defaultValue)
 Adds a widget to this container to display the given data. More...
 
SuppliedValueWidget< std::string > & AddString (std::string_view title, std::function< std::string()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< double > & AddNumber (std::string_view title, std::function< double()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< double > & AddDouble (std::string_view title, std::function< double()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< float > & AddFloat (std::string_view title, std::function< float()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< int64_t > & AddInteger (std::string_view title, std::function< int64_t()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< bool > & AddBoolean (std::string_view title, std::function< bool()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< std::string > > & AddStringArray (std::string_view title, std::function< std::vector< std::string >()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< double > > & AddNumberArray (std::string_view title, std::function< std::vector< double >()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< double > > & AddDoubleArray (std::string_view title, std::function< std::vector< double >()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< float > > & AddFloatArray (std::string_view title, std::function< std::vector< float >()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< int64_t > > & AddIntegerArray (std::string_view title, std::function< std::vector< int64_t >()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< int > > & AddBooleanArray (std::string_view title, std::function< std::vector< int >()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< uint8_t > > & AddRaw (std::string_view title, std::function< std::vector< uint8_t >()> supplier)
 Adds a widget to this container. More...
 
SuppliedValueWidget< std::vector< uint8_t > > & AddRaw (std::string_view title, std::string_view typeString, std::function< std::vector< uint8_t >()> supplier)
 Adds a widget to this container. More...
 
SimpleWidgetAddPersistent (std::string_view title, const nt::Value &defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, bool defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, double defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, float defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, int defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, std::string_view defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, std::span< const bool > defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, std::span< const double > defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, std::span< const float > defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, std::span< const int64_t > defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
SimpleWidgetAddPersistent (std::string_view title, std::span< const std::string > defaultValue)
 Adds a widget to this container to display a simple piece of data. More...
 
void EnableIfActuator () override
 Enables user control of this widget in the Shuffleboard application. More...
 
void DisableIfActuator () override
 Disables user control of this widget in the Shuffleboard application. More...
 
- Public Member Functions inherited from frc::ShuffleboardValue
 ShuffleboardValue (std::string_view title)
 
virtual ~ShuffleboardValue ()=default
 
 ShuffleboardValue (const ShuffleboardValue &)=delete
 
ShuffleboardValueoperator= (const ShuffleboardValue &)=delete
 
const std::string & GetTitle () const
 Gets the title of this Shuffleboard value. More...
 
virtual void BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable)=0
 Builds the entries for this value. More...
 
virtual void EnableIfActuator ()
 Enables user control of this widget in the Shuffleboard application. More...
 
virtual void DisableIfActuator ()
 Disables user control of this widget in the Shuffleboard application. More...
 

Additional Inherited Members

- Protected Attributes inherited from frc::ShuffleboardContainer
bool m_isLayout = false
 

Detailed Description

Represents a tab in the Shuffleboard dashboard.

Widgets can be added to the tab with Add(Sendable), Add(std::string_view, Object), and Add(String, Sendable). Widgets can also be added to layouts with GetLayout(std::string_view, std::string_view); layouts can be nested arbitrarily deep (note that too many levels may make deeper components unusable).

Constructor & Destructor Documentation

◆ ShuffleboardTab()

frc::ShuffleboardTab::ShuffleboardTab ( ShuffleboardRoot root,
std::string_view  title 
)

Member Function Documentation

◆ BuildInto()

void frc::ShuffleboardTab::BuildInto ( std::shared_ptr< nt::NetworkTable parentTable,
std::shared_ptr< nt::NetworkTable metaTable 
)
overridevirtual

Builds the entries for this value.

Parameters
parentTableThe table containing all the data for the parent. Values that require a complex entry or table structure should call parentTable.getSubtable(getTitle()) to get the table to put data into. Values that only use a single entry should call parentTable.getEntry(getTitle()) to get that entry.
metaTableThe table containing all the metadata for this value and its sub-values

Implements frc::ShuffleboardValue.

◆ GetRoot()

ShuffleboardRoot & frc::ShuffleboardTab::GetRoot ( )

The documentation for this class was generated from the following file: