armarx::RemoteGui Namespace Reference

Namespaces

namespace  Client
 
namespace  detail
 

Classes

struct  ButtonHandler
 
class  ButtonProxy
 
struct  CheckBoxHandler
 
struct  ComboBoxHandler
 
struct  EmptyWidgetHandler
 
struct  FloatSliderHandler
 
struct  FloatSpinBoxHandler
 
struct  GridLayoutHandler
 
struct  GroupBoxHandler
 
struct  HBoxLayoutHandler
 
struct  HLineHandler
 
struct  HSpacerHandler
 
struct  IntSliderHandler
 
struct  IntSpinBoxHandler
 
struct  LabelHandler
 
struct  LineEditHandler
 
struct  PosRPYSpinBoxesHandler
 
class  RemoteGuiBase
 
struct  SimpleGridLayoutHandler
 
struct  SimpleGridLayoutSpanningChildHandler
 
struct  Storage
 
struct  Storage< VALUE_VARIANT_BOOL >
 
struct  Storage< VALUE_VARIANT_FLOAT >
 
struct  Storage< VALUE_VARIANT_INT >
 
struct  Storage< VALUE_VARIANT_MATRIX4 >
 
struct  Storage< VALUE_VARIANT_STRING >
 
struct  Storage< VALUE_VARIANT_VECTOR3 >
 
class  TabProxy
 
struct  ToggleButtonHandler
 
struct  TypedWidget
 
struct  TypedWidget< RemoteWidgetT_, QWidgetT_, RemoteGui::VALUE_VARIANT_EMPTY >
 
struct  TypedWidgetHandler
 
class  ValueProxy
 
struct  VBoxLayoutHandler
 
struct  Vector3fSpinBoxesHandler
 
struct  VLineHandler
 
struct  VSpacerHandler
 
struct  WidgetHandler
 
class  WidgetProxy
 

Typedefs

using CreateWidgetCallback = std::function<QWidgetPtr(WidgetPtr const&)>
 
using QWidgetPtr = QWidget*
 
using ValueMap = std::map<std::string, ValueVariant>
 
typedef std::map< std::type_index, WidgetHandler * > WidgetRegister
 

Functions

bool buttonClicked (RemoteGui::ValueMap const &newValues, RemoteGui::ValueMap const &oldValues, std::string const &name)
 
WidgetRegister createWidgetRegister ()
 
Eigen::Vector3f fromIce (Vector3f v)
 
Eigen::Vector3i fromIce (Vector3i v)
 
template<typename T>
T getAndReturnValue (ValueMap const &values, std::string const &name)
 
template<typename T>
T getSingleValue (ValueVariant const &value, const std::string &name="")
 
template<>
bool getSingleValue< bool > (ValueVariant const &value, const std::string &name)
 
template<>
Eigen::Matrix4f getSingleValue< Eigen::Matrix4f > (ValueVariant const &value, const std::string &name)
 
template<>
Eigen::Vector3f getSingleValue< Eigen::Vector3f > (ValueVariant const &value, const std::string &name)
 
template<>
float getSingleValue< float > (ValueVariant const &value, const std::string &name)
 
template<>
int getSingleValue< int > (ValueVariant const &value, const std::string &name)
 
template<>
std::nullptr_t getSingleValue< std::nullptr_t > (RemoteGui::ValueVariant const &value, const std::string &name)
 
template<>
std::string getSingleValue< std::string > (ValueVariant const &value, const std::string &name)
 
void getValueFromMap (bool &val, const ValueMap &values, const std::string &name)
 
void getValueFromMap (CartesianWaypointControllerConfig &cfg, RemoteGui::ValueMap const &values, std::string const &name)
 
void getValueFromMap (Eigen::Matrix4f &val, const ValueMap &values, const std::string &name)
 
void getValueFromMap (Eigen::Vector3f &val, const ValueMap &values, const std::string &name)
 
void getValueFromMap (float &val, const ValueMap &values, const std::string &name)
 
void getValueFromMap (int &val, const ValueMap &values, const std::string &name)
 
void getValueFromMap (long unsigned int &val, ValueMap const &values, std::string const &name)
 
void getValueFromMap (NJointCartesianWaypointControllerRuntimeConfig &cfg, RemoteGui::ValueMap const &values, std::string const &name)
 
void getValueFromMap (std::string &val, const ValueMap &values, const std::string &name)
 
template<class T>
std::enable_if_t< meta::cfg::gui_definition_enabled_v< T >, void > getValueFromMap (T &cfg, RemoteGui::ValueMap const &values, std::string const &name)
 
template<class T>
simox::meta::enable_if_enum_adapted_t< TgetValueFromMap (T &cfg, RemoteGui::ValueMap const &values, std::string const &name)
 
const char * getVariantTypeName (ValueVariantType type)
 
const WidgetHandlergetWidgetHandler (WidgetPtr const &desc)
 
detail::ButtonBuilder makeButton (std::string const &name)
 
detail::CheckBoxBuilder makeCheckBox (std::string const &name)
 
detail::ComboBoxBuilder makeComboBox (std::string const &name)
 
template<typename AronStructT>
requires isAronGenerated<AronStructT>
detail::GroupBoxBuilder makeConfigGui (const std::string &name, const AronStructT &val)
 
detail::GroupBoxBuilder makeConfigGui (const std::string &name, const CartesianWaypointControllerConfig &val)
 
detail::GroupBoxBuilder makeConfigGui (const std::string &name, const NJointCartesianWaypointControllerRuntimeConfig &val)
 
detail::FloatSliderBuilder makeFloatSlider (std::string const &name)
 
detail::FloatSpinBoxBuilder makeFloatSpinBox (std::string const &name)
 
detail::GridLayoutBuilder makeGridLayout (std::string const &name="")
 
detail::GroupBoxBuilder makeGroupBox (std::string const &name="")
 
template<class T>
RemoteGui::WidgetPtr MakeGuiConfig (const std::string &name, const T &val)
 
detail::HBoxLayoutBuilder makeHBoxLayout (std::string const &name="")
 
detail::IntSliderBuilder makeIntSlider (std::string const &name)
 
detail::IntSpinBoxBuilder makeIntSpinBox (std::string const &name)
 
detail::LabelBuilder makeLabel (std::string const &name)
 
detail::LineEditBuilder makeLineEdit (std::string const &name)
 
detail::PosRPYSpinBoxesBuilder makePosRPYSpinBoxes (std::string const &name, float limpos=1000, float limrpy=M_PI)
 
detail::SimpleGridLayoutBuilder makeSimpleGridLayout (std::string const &name="")
 
detail::LabelBuilder makeTextLabel (std::string const &text)
 
detail::ToggleButtonBuilder makeToggleButton (std::string const &name)
 
ValueVariant makeValue (bool value)
 
ValueVariant makeValue (const Eigen::Matrix4f &value)
 
ValueVariant makeValue (const Eigen::Vector3f &value)
 
ValueVariant makeValue (float value)
 
ValueVariant makeValue (int value)
 
ValueVariant makeValue (std::string value)
 
detail::VBoxLayoutBuilder makeVBoxLayout (std::string const &name="")
 
detail::Vector3fSpinBoxesBuilder makeVector3fSpinBoxes (std::string const &name, float limpos=1000)
 
bool operator!= (const ValueVariant &left, const ValueVariant &right)
 
bool operator== (const ValueVariant &left, const ValueVariant &right)
 
template<typename HandlerT>
void registerHandler (WidgetRegister &register_)
 
Vector3f toIceF (Eigen::Vector3f v)
 
Vector3i toIceI (Eigen::Vector3i v)
 
QString toQString (std::string const &string)
 
std::string toUtf8 (QString const &qstring)
 

Typedef Documentation

◆ CreateWidgetCallback

using CreateWidgetCallback = std::function<QWidgetPtr(WidgetPtr const&)>

Definition at line 20 of file WidgetHandler.h.

◆ QWidgetPtr

using QWidgetPtr = QWidget*

Definition at line 19 of file WidgetHandler.h.

◆ ValueMap

using ValueMap = std::map<std::string, ValueVariant>

Definition at line 41 of file RemoteGuiVisitors.h.

◆ WidgetRegister

typedef std::map<std::type_index, WidgetHandler*> WidgetRegister

Definition at line 18 of file WidgetRegister.cpp.

Function Documentation

◆ buttonClicked()

bool buttonClicked ( RemoteGui::ValueMap const & newValues,
RemoteGui::ValueMap const & oldValues,
std::string const & name )

Definition at line 7 of file Storage.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ createWidgetRegister()

WidgetRegister createWidgetRegister ( )

Definition at line 30 of file WidgetRegister.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromIce() [1/2]

Eigen::Vector3f fromIce ( Vector3f v)

Definition at line 100 of file Storage.cpp.

+ Here is the caller graph for this function:

◆ fromIce() [2/2]

Eigen::Vector3i fromIce ( Vector3i v)

Definition at line 110 of file Storage.cpp.

◆ getAndReturnValue()

template<typename T>
T getAndReturnValue ( ValueMap const & values,
std::string const & name )

Definition at line 190 of file Storage.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSingleValue()

template<typename T>
T getSingleValue ( ValueVariant const & value,
const std::string & name = "" )
+ Here is the caller graph for this function:

◆ getSingleValue< bool >()

template<>
bool getSingleValue< bool > ( ValueVariant const & value,
const std::string & name )
inline

Definition at line 88 of file Storage.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSingleValue< Eigen::Matrix4f >()

template<>
Eigen::Matrix4f getSingleValue< Eigen::Matrix4f > ( ValueVariant const & value,
const std::string & name )
inline

Definition at line 164 of file Storage.h.

+ Here is the call graph for this function:

◆ getSingleValue< Eigen::Vector3f >()

template<>
Eigen::Vector3f getSingleValue< Eigen::Vector3f > ( ValueVariant const & value,
const std::string & name )
inline

Definition at line 144 of file Storage.h.

+ Here is the call graph for this function:

◆ getSingleValue< float >()

template<>
float getSingleValue< float > ( ValueVariant const & value,
const std::string & name )
inline

Definition at line 116 of file Storage.h.

+ Here is the call graph for this function:

◆ getSingleValue< int >()

template<>
int getSingleValue< int > ( ValueVariant const & value,
const std::string & name )
inline

Definition at line 102 of file Storage.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getSingleValue< std::nullptr_t >()

template<>
std::nullptr_t getSingleValue< std::nullptr_t > ( RemoteGui::ValueVariant const & value,
const std::string & name )
inline

Definition at line 80 of file Storage.h.

◆ getSingleValue< std::string >()

template<>
std::string getSingleValue< std::string > ( ValueVariant const & value,
const std::string & name )
inline

Definition at line 130 of file Storage.h.

+ Here is the call graph for this function:

◆ getValueFromMap() [1/11]

void getValueFromMap ( bool & val,
const ValueMap & values,
const std::string & name )

Definition at line 217 of file Storage.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [2/11]

void getValueFromMap ( CartesianWaypointControllerConfig & cfg,
RemoteGui::ValueMap const & values,
std::string const & name )

Definition at line 132 of file RemoteGui.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [3/11]

void getValueFromMap ( Eigen::Matrix4f & val,
const ValueMap & values,
const std::string & name )

Definition at line 247 of file Storage.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [4/11]

void getValueFromMap ( Eigen::Vector3f & val,
const ValueMap & values,
const std::string & name )

Definition at line 241 of file Storage.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [5/11]

void getValueFromMap ( float & val,
const ValueMap & values,
const std::string & name )

Definition at line 229 of file Storage.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [6/11]

void getValueFromMap ( int & val,
const ValueMap & values,
const std::string & name )

Definition at line 223 of file Storage.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [7/11]

void getValueFromMap ( long unsigned int & val,
ValueMap const & values,
std::string const & name )
inline

Definition at line 46 of file GetValue.h.

+ Here is the call graph for this function:

◆ getValueFromMap() [8/11]

void getValueFromMap ( NJointCartesianWaypointControllerRuntimeConfig & cfg,
RemoteGui::ValueMap const & values,
std::string const & name )

Definition at line 55 of file RemoteGui.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [9/11]

void getValueFromMap ( std::string & val,
const ValueMap & values,
const std::string & name )

Definition at line 235 of file Storage.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [10/11]

template<class T>
std::enable_if_t< meta::cfg::gui_definition_enabled_v< T >, void > getValueFromMap ( T & cfg,
RemoteGui::ValueMap const & values,
std::string const & name )

Definition at line 12 of file GetValue.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getValueFromMap() [11/11]

template<class T>
simox::meta::enable_if_enum_adapted_t< T > getValueFromMap ( T & cfg,
RemoteGui::ValueMap const & values,
std::string const & name )

Definition at line 39 of file GetValue.h.

+ Here is the call graph for this function:

◆ getVariantTypeName()

const char * getVariantTypeName ( ValueVariantType type)

Definition at line 120 of file Storage.cpp.

+ Here is the caller graph for this function:

◆ getWidgetHandler()

WidgetHandler const & getWidgetHandler ( WidgetPtr const & desc)

Definition at line 66 of file WidgetRegister.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeButton()

detail::ButtonBuilder makeButton ( std::string const & name)
inline

Definition at line 52 of file IntegerWidgets.h.

+ Here is the caller graph for this function:

◆ makeCheckBox()

detail::CheckBoxBuilder makeCheckBox ( std::string const & name)
inline

Definition at line 27 of file BoolWidgets.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeComboBox()

detail::ComboBoxBuilder makeComboBox ( std::string const & name)
inline

Definition at line 61 of file StringWidgets.h.

+ Here is the caller graph for this function:

◆ makeConfigGui() [1/3]

template<typename AronStructT>
requires isAronGenerated<AronStructT>
detail::GroupBoxBuilder makeConfigGui ( const std::string & name,
const AronStructT & val )

Definition at line 41 of file RemoteGui.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeConfigGui() [2/3]

detail::GroupBoxBuilder makeConfigGui ( const std::string & name,
const CartesianWaypointControllerConfig & val )

Definition at line 28 of file RemoteGui.cpp.

+ Here is the call graph for this function:

◆ makeConfigGui() [3/3]

detail::GroupBoxBuilder makeConfigGui ( const std::string & name,
const NJointCartesianWaypointControllerRuntimeConfig & val )

Definition at line 28 of file RemoteGui.cpp.

+ Here is the call graph for this function:

◆ makeFloatSlider()

detail::FloatSliderBuilder makeFloatSlider ( std::string const & name)
inline

Definition at line 64 of file FloatWidgets.h.

+ Here is the caller graph for this function:

◆ makeFloatSpinBox()

detail::FloatSpinBoxBuilder makeFloatSpinBox ( std::string const & name)
inline

Definition at line 58 of file FloatWidgets.h.

+ Here is the caller graph for this function:

◆ makeGridLayout()

detail::GridLayoutBuilder makeGridLayout ( std::string const & name = "")
inline

Definition at line 280 of file LayoutWidgets.h.

◆ makeGroupBox()

detail::GroupBoxBuilder makeGroupBox ( std::string const & name = "")
inline

Definition at line 292 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ MakeGuiConfig()

template<class T>
RemoteGui::WidgetPtr MakeGuiConfig ( const std::string & name,
const T & val )

Definition at line 9 of file MakeGuiConfig.h.

+ Here is the caller graph for this function:

◆ makeHBoxLayout()

detail::HBoxLayoutBuilder makeHBoxLayout ( std::string const & name = "")
inline

Definition at line 268 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ makeIntSlider()

detail::IntSliderBuilder makeIntSlider ( std::string const & name)
inline

Definition at line 46 of file IntegerWidgets.h.

+ Here is the caller graph for this function:

◆ makeIntSpinBox()

detail::IntSpinBoxBuilder makeIntSpinBox ( std::string const & name)
inline

Definition at line 40 of file IntegerWidgets.h.

+ Here is the caller graph for this function:

◆ makeLabel()

detail::LabelBuilder makeLabel ( std::string const & name)
inline

Definition at line 18 of file StaticWidgets.h.

+ Here is the caller graph for this function:

◆ makeLineEdit()

detail::LineEditBuilder makeLineEdit ( std::string const & name)
inline

Definition at line 55 of file StringWidgets.h.

+ Here is the caller graph for this function:

◆ makePosRPYSpinBoxes()

detail::PosRPYSpinBoxesBuilder makePosRPYSpinBoxes ( std::string const & name,
float limpos = 1000,
float limrpy = M_PI )
inline

Definition at line 87 of file Matrix4fWidgets.h.

+ Here is the caller graph for this function:

◆ makeSimpleGridLayout()

detail::SimpleGridLayoutBuilder makeSimpleGridLayout ( std::string const & name = "")
inline

Definition at line 274 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ makeTextLabel()

detail::LabelBuilder makeTextLabel ( std::string const & text)
inline

Definition at line 24 of file StaticWidgets.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeToggleButton()

detail::ToggleButtonBuilder makeToggleButton ( std::string const & name)
inline

Definition at line 35 of file BoolWidgets.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeValue() [1/6]

ValueVariant makeValue ( bool value)

Definition at line 144 of file Storage.cpp.

+ Here is the caller graph for this function:

◆ makeValue() [2/6]

ValueVariant makeValue ( const Eigen::Matrix4f & value)

Definition at line 192 of file Storage.cpp.

◆ makeValue() [3/6]

ValueVariant makeValue ( const Eigen::Vector3f & value)

Definition at line 180 of file Storage.cpp.

◆ makeValue() [4/6]

ValueVariant makeValue ( float value)

Definition at line 162 of file Storage.cpp.

◆ makeValue() [5/6]

ValueVariant makeValue ( int value)

Definition at line 153 of file Storage.cpp.

◆ makeValue() [6/6]

ValueVariant makeValue ( std::string value)

Definition at line 171 of file Storage.cpp.

◆ makeVBoxLayout()

detail::VBoxLayoutBuilder makeVBoxLayout ( std::string const & name = "")
inline

Definition at line 286 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ makeVector3fSpinBoxes()

detail::Vector3fSpinBoxesBuilder makeVector3fSpinBoxes ( std::string const & name,
float limpos = 1000 )
inline

Definition at line 140 of file Vector3fWidgets.h.

+ Here is the caller graph for this function:

◆ operator!=()

bool operator!= ( const ValueVariant & left,
const ValueVariant & right )

Definition at line 74 of file Storage.cpp.

◆ operator==()

bool operator== ( const ValueVariant & left,
const ValueVariant & right )

Definition at line 41 of file Storage.cpp.

◆ registerHandler()

template<typename HandlerT>
void registerHandler ( WidgetRegister & register_)

Definition at line 22 of file WidgetRegister.cpp.

+ Here is the caller graph for this function:

◆ toIceF()

Vector3f toIceF ( Eigen::Vector3f v)

Definition at line 80 of file Storage.cpp.

+ Here is the caller graph for this function:

◆ toIceI()

Vector3i toIceI ( Eigen::Vector3i v)

Definition at line 90 of file Storage.cpp.

+ Here is the caller graph for this function:

◆ toQString()

QString toQString ( std::string const & string)

Definition at line 14 of file WidgetHandler.cpp.

+ Here is the caller graph for this function:

◆ toUtf8()

std::string toUtf8 ( QString const & qstring)

Definition at line 8 of file WidgetHandler.cpp.

+ Here is the caller graph for this function: