47 #ifndef _MIRA_VISUALIZATION_H_ 48 #define _MIRA_VISUALIZATION_H_ 99 template <
typename Reflector>
102 r.roproperty(
"Status", &
getStatusManager(),
"The status of this visualization");
103 r.member(
"Enabled", mEnabled,
"Is true if the visualization is enabled and visible");
104 r.member(
"Name", mDisplayedName,
"The name that is shown to the user");
147 virtual void setEnabled(
bool enabled) { mEnabled = enabled; }
152 const std::string&
getName()
const {
return mDisplayedName; }
155 void setName(
const std::string& name) { mDisplayedName = name; }
222 mChannelProperties.insert(connection.
property);
246 template<
typename T,
typename Reflector>
251 mChannelProperties.insert(&channel);
255 r.roproperty(std::string(name+
" Updates").c_str(),
257 "How many data updates were received");
261 std::set<ChannelPropertyBase*> mChannelProperties;
263 std::string mDisplayedName;
virtual DataConnection getDataConnection()
Returns information about the direct data connection for this visualization.
Definition: Visualization.h:203
void reflect(Reflector &r)
Definition: Visualization.h:100
Description of ChannelProperty and related classes.
static void channelProperty(Reflector &r, const std::string &name, ChannelProperty &channel, const std::string &comment, IAuthorityProvider *authorityProvider)
Special property-method that should be called within the reflect method to specify a ChannelProperty...
Definition: ChannelProperty.h:396
void setName(const std::string &name)
Sets the name of this visualization.
Definition: Visualization.h:155
virtual void update(Duration dt)
This method can be implemented in the derived Visualization classes.
Definition: Visualization.h:163
virtual Authority & getAuthority()
Return the authority as reference.
virtual IVisualizationSite * getSite()=0
Returns a pointer to the IVisualizationSite interface that was set in the init() method.
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
Abstract base class for all derived visualizations, namely Visualization3D and Visualization2D.
Definition: Visualization.h:88
std::string Typename
Definition: Typename.h:60
virtual ~IVisualizationSite()
Definition: Visualization.h:66
virtual void processUpdate(Duration dt)
Is called regularly by the VisualizationView to update the visualization.
ChannelPropertyBase * property
Definition: Visualization.h:191
Time and Duration wrapper class.
void channelProperty(Reflector &r, const std::string &name, ChannelProperty< T > &channel, const std::string &comment, OptionalMode optional=REQUIRED)
Special property-method that should be called within the reflect method to specify a ChannelProperty...
Definition: Visualization.h:247
virtual void onUpdate(Duration dt)
Provided for backward compatibility.
Definition: Visualization.h:171
bool isEnabled() const
Returns true, if this visualization is enabled and visible.
Definition: Visualization.h:138
void setupDataConnectionChannel(const std::string &channelID)
Sets up the data connection channel property (if any) with the specified channel id.
Definition: Visualization.h:213
The data structure that is returned by getDataConnection.
Definition: Visualization.h:181
#define MIRA_ABSTRACT_OBJECT(classIdentifier)
Use this MACRO instead of MIRA_OBJECT to declare the class as abstract.
Definition: FactoryMacros.h:235
$Header file containing base classes to enable class creation using a class factory$ ...
StatusManager & getStatusManager()
The primary interface between a Visualization and the container of the visualization (e...
Definition: Visualization.h:63
const std::string & getName() const
Returns the associated name of this visualization.
Definition: Visualization.h:152
Definition: Visualization.h:230
Definition: Visualization.h:229
virtual ~Visualization()
Definition: Visualization.h:95
Abstract interface for classes that can provide an authority via the getAuthority() method...
Definition: AuthorityProvider.h:61
Use this class to represent time durations.
Definition: Time.h:106
The object class acts as a generic base class for classes which should be used with the classFactory...
Definition: Object.h:144
void setName(const std::string &name)
Sets the name of the property.
Definition: ChannelProperty.h:83
Base class for ChannelProperty template class.
Definition: ChannelProperty.h:68
virtual void setEnabled(bool enabled)
Changes the enabled-state and therefore the visibility of this visualization.
Definition: Visualization.h:147
Authorities act as a facade to the framework.
Definition: Authority.h:94
The concrete typed ChannelProperty template class.
Definition: ChannelProperty.h:212
OptionalMode
Definition: Visualization.h:227
void setOptional()
For internal use only.
Definition: ChannelProperty.h:109
Typename type
Definition: Visualization.h:190
virtual void set(const std::string &id, IAuthorityProvider *authorityProvider)
Sets the channelID and a necessary authority provider that is used to obtain the authority for subscr...
Definition: ChannelProperty.h:129
Typename typeName(bool cvqualify=true)
Returns a compiler and platform independent typename of T.
Definition: Typename.h:103
DataConnection(ChannelProperty< T > &iProperty)
Definition: Visualization.h:187
DataConnection()
Definition: Visualization.h:184