47 #ifndef _MIRA_VisualizationText_H_ 48 #define _MIRA_VisualizationText_H_ 62 virtual void setName(
const std::string& name) = 0;
63 virtual void setText(
const std::string& text) = 0;
64 virtual void setStamped(
const Time& timestamp,
const std::string& frameID,
65 uint32 sequenceID) = 0;
101 template <
typename Reflector>
107 "The size of the text item",
Size2i(100, 50));
128 virtual void setSize(
const Size2i& size);
129 virtual Size2i getSize()
const;
virtual void setStamped(const Time ×tamp, const std::string &frameID, uint32 sequenceID)=0
void setStamped(const Stamped< T > &stamped)
Definition: VisualizationText.h:67
Abstract base class for all text visualization.
Definition: VisualizationText.h:92
virtual void setName(const std::string &name)=0
virtual IVisualizationTextItem * addItem()=0
Definition: VisualizationText.h:57
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
Size< int, 2 > Size2i
The size type for 2D objects in integer precision.
Definition: Size.h:275
virtual ~VisualizationText()
Definition: VisualizationText.h:99
virtual void setSize(const Size2i &size)
#define MIRA_REFLECT_BASE(reflector, BaseClass)
Macro that can be used to reflect the base class easily.
Definition: ReflectorInterface.h:912
virtual Size2i getSize() const =0
virtual void destroyItem(IVisualizationTextItem *item)=0
Wrapper class for boost::posix_time::ptime for adding more functionality to it.
Definition: Time.h:416
#define MIRA_ABSTRACT_OBJECT(classIdentifier)
Use this MACRO instead of MIRA_OBJECT to declare the class as abstract.
Definition: FactoryMacros.h:235
virtual Size2i getSize() const
The primary interface between a Visualization and the container of the visualization (e...
Definition: Visualization.h:65
Declaration of Visualization and related classes.
Mix in for adding a time stamp, an optional frame id and an optional sequence id to data types like P...
Definition: Stamped.h:149
virtual void enableEdit(bool enable)=0
#define MIRA_GUI_VISUALIZATION_EXPORT
Definition: GuiVisualizationExports.h:61
virtual void setText(const std::string &text)=0
void reflect(Reflector &r)
Definition: VisualizationText.h:102
This class provides templatized multidimensional sizes for multidimensional geometric objects...
virtual void redraw()
Definition: VisualizationText.h:158
virtual ~IVisualizationTextItem()
Definition: VisualizationText.h:60
Size2i mSize
Definition: VisualizationText.h:167
uint mPrecision
Definition: VisualizationText.h:168
virtual void setSize(const Size2i &size)=0
PropertyHint precision(int p)
Sets the attribute "precision".
Definition: PropertyHint.h:285
virtual void registerTextEditRequestCallback(boost::function< void()> fn)=0
Definition: VisualizationText.h:77