|
const std::vector< Part > & | getParts () const |
| returns the parts More...
|
|
void | clear () |
| clears the list More...
|
|
void | addPart (const Part &part) |
| adds a given part More...
|
|
void | addPart (char c, const Any &content) |
| adds a given part More...
|
|
VisualizationDescription & | operator+= (const VisualizationDescription &other) |
| adds another visualization description More...
|
|
VisualizationDescription | operator+ (const VisualizationDescription &other) |
| adds two descriptions More...
|
|
void | color (icl8u r, icl8u g, icl8u b) |
| sets the current draw color (no alpha) More...
|
|
void | color (icl8u r, icl8u g, icl8u b, icl8u a) |
| sets the current draw color (with alpha) More...
|
|
void | fill (icl8u r, icl8u g, icl8u b) |
| sets the current fill color (no alpha) More...
|
|
void | fill (icl8u r, icl8u g, icl8u b, icl8u a) |
| sets the current fill color (with alpha) More...
|
|
void | rect (icl32f x, icl32f y, icl32f width, icl32f height) |
| add a rectangle More...
|
|
void | rect (const Rect32f &r) |
| add a rectangle More...
|
|
void | ellipse (icl32f x, icl32f y, icl32f width, icl32f height) |
| add an ellipse More...
|
|
void | ellipse (const Rect32f &r) |
| add an ellipse More...
|
|
void | circle (icl32f cx, icl32f cy, icl32f radius) |
| adds a circle (intnerally handeled as ellipse) More...
|
|
void | line (icl32f x1, icl32f y1, icl32f x2, icl32f y2) |
| adds a line (intnerally represented by bounding rectangle) More...
|
|
void | line (const Point32f &a, const Point32f &b) |
| adds a line (intnerally represented by bounding rectangle) More...
|
|
void | sym (char type, icl32f x, icl32f y) |
| adds a symbol (supported types are +*x and .) More...
|
|
void | sym (char type, const Point32f &p) |
| adds a symbol (supported types are +*x and .) More...
|
|
void | text (icl32f x, icl32f y, const std::string &text) |
| adds text More...
|
|
void | text (const Point32f &pos, const std::string &text) |
| adds text More...
|
|
void | point (const Point32f &p) |
| adds a point (internally handles as a sym of type '.') More...
|
|
template<class Iterator > |
void | points (Iterator begin, Iterator end) |
| adds points (data is in order [x1,y1,x2,y2] More...
|
|
void | points (const std::vector< Point32f > &ps) |
| adds points from given float vector More...
|
|
void | points (const std::vector< Point > &ps) |
| adds points from given vector of Points More...
|
|
template<class Iterator > |
void | polygon (Iterator begin, Iterator end) |
| template based creation of a polygon More...
|
|
void | polygon (const std::vector< Point32f > &ps) |
| adds polygon from given float vector More...
|
|
void | polygon (const std::vector< Point > &ps) |
| adds polygon from given vector of Points More...
|
|
void | linewidth (float w) |
| defines the linewidth More...
|
|
void | pointsize (float s) |
| defines the point size More...
|
|
void | fontsize (float s) |
| defines the font size to be used More...
|
|
void | textangle (float angle) |
| sets the vertical text mode More...
|
|
Abstract class for visualization tasks.
The visualization class provides an interface for tools to provide visualization information. It's idea is to provide an easy interface – it's implementation is rather slow, but completely neglegible for most applications;
Right now, this is a very simple interface which still needs to be extended
Supported Parts
Right now, the following parts are supported. Color and Fill parts remain active untill the next color/fill part is put into the list
- c draw color (serialized as VisualizationDescription::Color)
- f fill color (analoguous to c)
- r rectangle (serialized as Rect32f)
- e ellipse (serialized as Rect32f, cicles are also ellipses)
- l line (serialized as Rect32f)#
- t text (serialized as VisualizationDescription::Text)
- y polygon (serialized as binary float vector)
- p points (serialized as binary float vector)
- P point size (serialized as float)
- L line width (serialized as float)
- F font size (serialized as float)
- A text angle (serialized as float given in degrees, default is 0, which is no rotation, rotation is performed clock-wise)
- +xo. for symbols (serialized as Point32f)
- +: plus symbols
- x: x-symbols
- o: little circles
- .: point