Go to the documentation of this file.
33 #include <ArmarXGui/interface/RemoteGuiInterface.h>
44 static const std::string PROPERTY_NAME =
"RemoteGuiName";
50 parent<Component>().usingProxyFromProperty(PROPERTY_NAME);
58 remoteGuiObject = parent<Component>().getProxyFromProperty<RemoteGuiInterfacePrx>(PROPERTY_NAME);
80 if (!properties->hasDefinition(PROPERTY_NAME))
82 properties->defineOptionalProperty<std::string>(
85 "Name of the remote gui provider");
96 std::string
const& name,
102 throw armarx::LocalException()
103 <<
"You tried to create a RemoteGui tab before the component was initialized.\n"
104 <<
"You can start creating tabs once you have entered your onConnectComponent().";
114 throw armarx::LocalException()
115 <<
"There is already a RunningTask which has not been stopped.";
120 runningTask->start();
143 tab.second->receiveUpdates();
148 tab.second->sendUpdates();
150 c.waitForCycleDuration();
bool RemoteGui_isRunning()
std::map< std::string, RemoteGui::TabProxy * > tabs
void preOnInitComponent() override
Ice::ObjectPrx remoteGuiObject
int RemoteGui_updatePeriodInMS
plugins::LightweightRemoteGuiComponentPlugin * plugin
void postOnConnectComponent() override
This util class helps with keeping a cycle time during a control cycle.
std::unique_ptr< TabImpl > impl
PluginT * addPlugin(const std::string prefix="", ParamsT &&...params)
void preOnConnectComponent() override
void preOnDisconnectComponent() override
void create(std::string const &name, Ice::ObjectPrx const &remoteGuiObject, Widget const &rootWidget)
virtual void RemoteGui_update()=0
void RemoteGui_startRunningTask()
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
void RemoteGui_createTab(std::string const &name, RemoteGui::Client::Widget const &rootWidget, RemoteGui::Client::Tab *tab)
RunningTask< LightweightRemoteGuiComponentPluginUser > RunningTaskT
IceUtil::Handle< RunningTask< T > > pointer_type
Shared pointer type for convenience.
LightweightRemoteGuiComponentPluginUser()
void postOnDisconnectComponent() override
IceUtil::Handle< IceUtil::Shared > runningTask
This file offers overloads of toIce() and fromIce() functions for STL container types.