mc_rtc::gui::plot::impl::Ordinate< GetT > Struct Template Reference

#include <mc_rtc/gui/plot/Ordinate.h>

Inheritance diagram for mc_rtc::gui::plot::impl::Ordinate< GetT >:
Collaboration diagram for mc_rtc::gui::plot::impl::Ordinate< GetT >:

Public Member Functions

 Ordinate (std::string_view name, GetT get_fn, Color color, Style style, Side side)
 
void write (mc_rtc::MessagePackBuilder &builder) const
 
void update () const
 
Ordinatestyle (Style style)
 
Ordinateside (Side side)
 

Static Public Attributes

static constexpr Type type = Type::Ordinate
 

Protected Attributes

std::string name_
 
GetT get_fn_
 
Color color_
 
std::vector< double > cache_
 
Style style_
 
Side side_
 

Detailed Description

template<typename GetT>
struct mc_rtc::gui::plot::impl::Ordinate< GetT >

For a given plot, this holds options on the ordinate plot and a callback that returns the current value

Constructor & Destructor Documentation

◆ Ordinate()

template<typename GetT >
mc_rtc::gui::plot::impl::Ordinate< GetT >::Ordinate ( std::string_view  name,
GetT  get_fn,
Color  color,
Style  style,
Side  side 
)
inline

Member Function Documentation

◆ side()

template<typename GetT >
Ordinate& mc_rtc::gui::plot::impl::Ordinate< GetT >::side ( Side  side)
inline

◆ style()

template<typename GetT >
Ordinate& mc_rtc::gui::plot::impl::Ordinate< GetT >::style ( Style  style)
inline

◆ update()

template<typename GetT >
void mc_rtc::gui::plot::impl::Ordinate< GetT >::update ( ) const
inline

◆ write()

template<typename GetT >
void mc_rtc::gui::plot::impl::Ordinate< GetT >::write ( mc_rtc::MessagePackBuilder builder) const
inline

Member Data Documentation

◆ cache_

template<typename GetT >
std::vector<double> mc_rtc::gui::plot::impl::Ordinate< GetT >::cache_
mutableprotected

◆ color_

template<typename GetT >
Color mc_rtc::gui::plot::impl::Ordinate< GetT >::color_
mutableprotected

◆ get_fn_

template<typename GetT >
GetT mc_rtc::gui::plot::impl::Ordinate< GetT >::get_fn_
protected

◆ name_

template<typename GetT >
std::string mc_rtc::gui::plot::impl::Ordinate< GetT >::name_
protected

◆ side_

template<typename GetT >
Side mc_rtc::gui::plot::impl::Ordinate< GetT >::side_
protected

◆ style_

template<typename GetT >
Style mc_rtc::gui::plot::impl::Ordinate< GetT >::style_
protected

◆ type

template<typename GetT >
constexpr Type mc_rtc::gui::plot::impl::Ordinate< GetT >::type = Type::Ordinate
staticconstexpr

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