7 static const std::string ARVIZ_TOPIC_PROPERTY_NAME =
"ArVizTopicName";
8 static const std::string ARVIZ_TOPIC_PROPERTY_DEFAULT =
"ArVizTopic";
10 static const std::string ARVIZ_STORAGE_PROPERTY_NAME =
"ArVizStorageName";
11 static const std::string ARVIZ_STORAGE_PROPERTY_DEFAULT =
"ArVizStorage";
13 static const std::string EVENT_TOPIC_PROPERTY_NAME =
"VisManEventTopicName";
14 static const std::string EVENT_TOPIC_PROPERTY_DEFAULT =
"VisManEvents";
21 : ARVIZ_TOPIC_PROPERTY_DEFAULT;
29 : ARVIZ_STORAGE_PROPERTY_DEFAULT;
36 : EVENT_TOPIC_PROPERTY_DEFAULT;
61 properties->defineOptionalProperty<std::string>(
63 ARVIZ_TOPIC_PROPERTY_DEFAULT,
64 "Name of the ArViz topic");
66 if (!properties->hasDefinition(
makePropertyName(ARVIZ_STORAGE_PROPERTY_NAME)))
68 properties->defineOptionalProperty<std::string>(
70 ARVIZ_STORAGE_PROPERTY_DEFAULT,
71 "Name of the ArViz storage");
75 properties->topic(
eventTopicPrx, EVENT_TOPIC_PROPERTY_DEFAULT, EVENT_TOPIC_PROPERTY_NAME,
"Name of the Event Topic to publish events to");
97 return plugin->createClient();
102 plugin->eventTopicPrx->reportEvent(eventName);
void publishEvent(std::string eventName)
ArVizComponentPluginUser()
armarx::viz::Client createArVizClient()
bool parentDerives() const
ManagedIceObject & parent()
std::string makePropertyName(const std::string &name)
void offeringTopic(const std::string &name)
Registers a topic for retrival after initialization.
bool usingProxy(const std::string &name, const std::string &endpoints="")
Registers a proxy for retrieval after initialization and adds it to the dependency list.
PluginT * addPlugin(const std::string prefix="", ParamsT &&... params)
void preOnInitComponent() override
void preOnConnectComponent() override
void postCreatePropertyDefinitions(PropertyDefinitionsPtr &properties) override
std::string getEventTopicName()
std::string getStorageName()
armarx::viz::Client createClient()
std::string getTopicName()
visman::components::visman_core::VISManEventTopicListenerPrx eventTopicPrx
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.