MIRA
Classes | Namespaces | Macros
VisualizationTextJSON.h File Reference

Macros for easy creation of JSON based text visualizations. More...

#include <utils/ToString.h>
#include <views/VisualizationTextView.h>
#include <fw/Framework.h>
Include dependency graph for VisualizationTextJSON.h:

Go to the source code of this file.

Classes

class  VisualizationTextBase< T >
 
class  VisualizationTextJSONBase< T >
 

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Macros

#define MIRA_TEXT_VISUALIZATION(className, type, channel, name, description, category)
 Use this macro to create a text visualization for a data type that supports toString(DataType) (is a atomic/build in type or supports the ostream& operator<<(ostream& s) operator. More...
 
#define MIRA_JSON_VISUALIZATION(className, type, channel, name, description, category)
 Use this macro to create a text visualization for a data type that supports serialization using JSON serializer. More...
 

Detailed Description

Macros for easy creation of JSON based text visualizations.

Author
Tim Langner, Christof Schröter
Date
2011/02/09

Macro Definition Documentation

◆ MIRA_TEXT_VISUALIZATION

#define MIRA_TEXT_VISUALIZATION (   className,
  type,
  channel,
  name,
  description,
  category 
)
Value:
class className : public VisualizationTextBase<type> \
{ \
MIRA_META_OBJECT(className, \
("Name", name) \
("Description", description) \
("Category", category)) \
public: \
className() : \
VisualizationTextBase<type>(channel) \
{} \
};
PropertyHint type(const std::string &t)
Sets the attribute "type" to the specified value.
Definition: PropertyHint.h:295

Use this macro to create a text visualization for a data type that supports toString(DataType) (is a atomic/build in type or supports the ostream& operator<<(ostream& s) operator.

className specifies the class name type is the data type of the channel channel is the name of the channel property name is the name of the visualization description describes the visualization category is the category of the visualization

◆ MIRA_JSON_VISUALIZATION

#define MIRA_JSON_VISUALIZATION (   className,
  type,
  channel,
  name,
  description,
  category 
)
Value:
class className : public VisualizationTextJSONBase<type> \
{ \
MIRA_META_OBJECT(className, \
("Name", name) \
("Description", description) \
("Category", category)) \
public: \
className() : \
VisualizationTextJSONBase<type>(channel) \
{} \
};
PropertyHint type(const std::string &t)
Sets the attribute "type" to the specified value.
Definition: PropertyHint.h:295

Use this macro to create a text visualization for a data type that supports serialization using JSON serializer.

className specifies the class name type is the data type of the channel channel is the name of the channel property name is the name of the visualization description describes the visualization category is the category of the visualization