47 #ifndef _MIRA_VISUALIZATION_H_ 48 #define _MIRA_VISUALIZATION_H_ 101 template <
typename Reflector>
104 r.roproperty(
"Status", &getStatusManager(),
"The status of this visualization");
105 r.member(
"Enabled", mEnabled,
"Is true if the visualization is enabled and visible");
106 r.member(
"Name", mDisplayedName,
"The name that is shown to the user");
135 virtual void processUpdate(
Duration dt);
149 virtual void setEnabled(
bool enabled) { mEnabled = enabled; }
154 const std::string&
getName()
const {
return mDisplayedName; }
157 void setName(
const std::string& name) { mDisplayedName = name; }
224 mChannelProperties.insert(connection.
property);
248 template<
typename T,
typename Reflector>
253 mChannelProperties.insert(&channel);
255 if(optional==NOT_REQUIRED)
257 r.roproperty(std::string(name+
" Updates").c_str(),
259 "How many data updates were received");
263 std::set<ChannelPropertyBase*> mChannelProperties;
265 std::string mDisplayedName;
virtual DataConnection getDataConnection()
Returns information about the direct data connection for this visualization.
Definition: Visualization.h:205
void reflect(Reflector &r)
Definition: Visualization.h:102
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:385
void setName(const std::string &name)
Sets the name of this visualization.
Definition: Visualization.h:157
virtual void update(Duration dt)
This method can be implemented in the derived Visualization classes.
Definition: Visualization.h:165
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:90
std::string Typename
Definition: Typename.h:60
virtual ~IVisualizationSite()
Definition: Visualization.h:68
ChannelPropertyBase * property
Definition: Visualization.h:193
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:249
virtual void onUpdate(Duration dt)
Provided for backward compatibility.
Definition: Visualization.h:173
bool isEnabled() const
Returns true, if this visualization is enabled and visible.
Definition: Visualization.h:140
void setupDataConnectionChannel(const std::string &channelID)
Sets up the data connection channel property (if any) with the specified channel id.
Definition: Visualization.h:215
The data structure that is returned by getDataConnection.
Definition: Visualization.h:183
#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$ ...
The primary interface between a Visualization and the container of the visualization (e...
Definition: Visualization.h:65
const std::string & getName() const
Returns the associated name of this visualization.
Definition: Visualization.h:154
Definition: Visualization.h:231
virtual ~Visualization()
Definition: Visualization.h:97
PropertyHint type(const std::string &t)
Sets the attribute "type" to the specified value.
Definition: PropertyHint.h:295
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:85
Base class for ChannelProperty template class.
Definition: ChannelProperty.h:70
virtual void setEnabled(bool enabled)
Changes the enabled-state and therefore the visibility of this visualization.
Definition: Visualization.h:149
Authorities act as a facade to the framework.
Definition: Authority.h:94
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
The concrete typed ChannelProperty template class.
Definition: ChannelProperty.h:214
FrameworkVis export macro declaration.
OptionalMode
Definition: Visualization.h:229
void setOptional()
For internal use only.
Definition: ChannelProperty.h:111
Typename type
Definition: Visualization.h:192
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:131
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:189
DataConnection()
Definition: Visualization.h:186