armarx::RemoteGui Namespace Reference

Namespaces

 Client
 
 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 (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)
 

Variables

template<typename T >
concept isAronGenerated = std::is_base_of<armarx::aron::cpp::AronGeneratedClass, T>::value
 

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 15 of file WidgetRegister.cpp.

Function Documentation

◆ buttonClicked()

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

Definition at line 6 of file Storage.cpp.

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

◆ createWidgetRegister()

WidgetRegister armarx::RemoteGui::createWidgetRegister ( )

Definition at line 25 of file WidgetRegister.cpp.

+ Here is the caller graph for this function:

◆ fromIce() [1/2]

Eigen::Vector3f fromIce ( Vector3f  v)

Definition at line 91 of file Storage.cpp.

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

◆ fromIce() [2/2]

Eigen::Vector3i fromIce ( Vector3i  v)

Definition at line 100 of file Storage.cpp.

+ Here is the call graph for this function:

◆ getAndReturnValue()

T armarx::RemoteGui::getAndReturnValue ( ValueMap const &  values,
std::string const &  name 
)

Definition at line 184 of file Storage.h.

+ Here is the call graph for this function:

◆ getSingleValue()

T armarx::RemoteGui::getSingleValue ( ValueVariant const &  value,
const std::string &  name = "" 
)

◆ getSingleValue< bool >()

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

Definition at line 89 of file Storage.h.

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

◆ getSingleValue< Eigen::Matrix4f >()

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

Definition at line 160 of file Storage.h.

+ Here is the call graph for this function:

◆ getSingleValue< Eigen::Vector3f >()

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

Definition at line 141 of file Storage.h.

+ Here is the call graph for this function:

◆ getSingleValue< float >()

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

Definition at line 115 of file Storage.h.

+ Here is the call graph for this function:

◆ getSingleValue< int >()

int armarx::RemoteGui::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 >()

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

Definition at line 82 of file Storage.h.

◆ getSingleValue< std::string >()

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

Definition at line 128 of file Storage.h.

+ Here is the call graph for this function:

◆ getValueFromMap() [1/10]

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

Definition at line 200 of file Storage.cpp.

◆ getValueFromMap() [2/10]

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/10]

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

Definition at line 225 of file Storage.cpp.

◆ getValueFromMap() [4/10]

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

Definition at line 220 of file Storage.cpp.

◆ getValueFromMap() [5/10]

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

Definition at line 205 of file Storage.cpp.

◆ getValueFromMap() [6/10]

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

Definition at line 49 of file GetValue.h.

+ Here is the call graph for this function:

◆ getValueFromMap() [7/10]

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

Definition at line 54 of file RemoteGui.cpp.

+ Here is the call graph for this function:

◆ getValueFromMap() [8/10]

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

Definition at line 215 of file Storage.cpp.

◆ getValueFromMap() [9/10]

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

Definition at line 13 of file GetValue.h.

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

◆ getValueFromMap() [10/10]

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

Definition at line 41 of file GetValue.h.

◆ getVariantTypeName()

const char * getVariantTypeName ( ValueVariantType  type)

Definition at line 109 of file Storage.cpp.

+ Here is the caller graph for this function:

◆ getWidgetHandler()

WidgetHandler const & getWidgetHandler ( WidgetPtr const &  desc)

Definition at line 60 of file WidgetRegister.cpp.

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

◆ makeButton()

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

Definition at line 48 of file IntegerWidgets.h.

+ Here is the caller graph for this function:

◆ makeCheckBox()

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

Definition at line 26 of file BoolWidgets.h.

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

◆ makeComboBox()

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

Definition at line 58 of file StringWidgets.h.

+ Here is the caller graph for this function:

◆ makeConfigGui() [1/3]

requires isAronGenerated<AronStructT> detail::GroupBoxBuilder armarx::RemoteGui::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 27 of file RemoteGui.cpp.

+ Here is the call graph for this function:

◆ makeFloatSlider()

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

Definition at line 57 of file FloatWidgets.h.

+ Here is the caller graph for this function:

◆ makeFloatSpinBox()

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

Definition at line 52 of file FloatWidgets.h.

+ Here is the caller graph for this function:

◆ makeGridLayout()

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

Definition at line 240 of file LayoutWidgets.h.

◆ makeGroupBox()

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

Definition at line 250 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ MakeGuiConfig()

RemoteGui::WidgetPtr armarx::RemoteGui::MakeGuiConfig ( const std::string &  name,
const T val 
)

Definition at line 8 of file MakeGuiConfig.h.

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

◆ makeHBoxLayout()

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

Definition at line 230 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ makeIntSlider()

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

Definition at line 43 of file IntegerWidgets.h.

+ Here is the caller graph for this function:

◆ makeIntSpinBox()

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

Definition at line 38 of file IntegerWidgets.h.

+ Here is the caller graph for this function:

◆ makeLabel()

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

Definition at line 17 of file StaticWidgets.h.

+ Here is the caller graph for this function:

◆ makeLineEdit()

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

Definition at line 53 of file StringWidgets.h.

+ Here is the caller graph for this function:

◆ makePosRPYSpinBoxes()

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

Definition at line 74 of file Matrix4fWidgets.h.

+ Here is the caller graph for this function:

◆ makeSimpleGridLayout()

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

Definition at line 235 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ makeTextLabel()

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

Definition at line 22 of file StaticWidgets.h.

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

◆ makeToggleButton()

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

Definition at line 33 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 133 of file Storage.cpp.

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

◆ makeValue() [2/6]

ValueVariant makeValue ( const Eigen::Matrix4f &  value)

Definition at line 176 of file Storage.cpp.

+ Here is the call graph for this function:

◆ makeValue() [3/6]

ValueVariant makeValue ( const Eigen::Vector3f &  value)

Definition at line 165 of file Storage.cpp.

+ Here is the call graph for this function:

◆ makeValue() [4/6]

ValueVariant makeValue ( float  value)

Definition at line 149 of file Storage.cpp.

+ Here is the call graph for this function:

◆ makeValue() [5/6]

ValueVariant makeValue ( int  value)

Definition at line 141 of file Storage.cpp.

+ Here is the call graph for this function:

◆ makeValue() [6/6]

ValueVariant makeValue ( std::string  value)

Definition at line 157 of file Storage.cpp.

+ Here is the call graph for this function:

◆ makeVBoxLayout()

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

Definition at line 245 of file LayoutWidgets.h.

+ Here is the caller graph for this function:

◆ makeVector3fSpinBoxes()

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

Definition at line 113 of file Vector3fWidgets.h.

+ Here is the caller graph for this function:

◆ operator!=()

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

Definition at line 68 of file Storage.cpp.

◆ operator==()

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

Definition at line 36 of file Storage.cpp.

◆ registerHandler()

void armarx::RemoteGui::registerHandler ( WidgetRegister register_)

Definition at line 18 of file WidgetRegister.cpp.

◆ toIceF()

Vector3f toIceF ( Eigen::Vector3f  v)

Definition at line 73 of file Storage.cpp.

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

◆ toIceI()

Vector3i toIceI ( Eigen::Vector3i  v)

Definition at line 82 of file Storage.cpp.

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

◆ toQString()

QString toQString ( std::string const &  string)

Definition at line 12 of file WidgetHandler.cpp.

+ Here is the caller graph for this function:

◆ toUtf8()

std::string toUtf8 ( QString const &  qstring)

Definition at line 7 of file WidgetHandler.cpp.

+ Here is the caller graph for this function:

Variable Documentation

◆ isAronGenerated

concept isAronGenerated = std::is_base_of<armarx::aron::cpp::AronGeneratedClass, T>::value

Definition at line 36 of file RemoteGui.h.