163 parts.push_back(part);
173 size_t oldSize =
parts.size();
260 template<
class Iterator>
261 void points(Iterator begin, Iterator end){
262 addPart(
'p',std::vector<float>(begin,end));
266 void points(
const std::vector<Point32f> &ps){
267 points(&ps[0].x,&ps[0].x + ps.size() * 2);
271 void points(
const std::vector<Point> &ps){
272 points(&ps[0].x,&ps[0].x + ps.size() * 2);
276 template<
class Iterator>
278 addPart(
'y',std::vector<float>(begin,end));
282 void polygon(
const std::vector<Point32f> &ps){
283 polygon(&ps[0].x,&ps[0].x + ps.size() * 2);
288 polygon(&ps[0].x,&ps[0].x + ps.size() * 2);
315 return (stream << t.
pos << t.
text);
322 std::getline(stream,t.
text);
328 return (stream << c.
rgba);
void points(const std::vector< Point > &ps)
adds points from given vector of Points
Definition: VisualizationDescription.h:271
const icl8u & a() const
accesses alpha value (const)
Definition: VisualizationDescription.h:141
std::vector< Part > parts
internal part list
Definition: VisualizationDescription.h:148
icl8u & b()
accesses blue value
Definition: VisualizationDescription.h:126
undocument this line if you encounter any issues!
Definition: Any.h:37
void pointsize(float s)
defines the point size
Definition: VisualizationDescription.h:297
Ipp8u icl8u
8Bit unsigned integer type for the ICL
Definition: BasicTypes.h:64
const icl8u & r() const
accesses red value (const)
Definition: VisualizationDescription.h:132
Point32f pos
text pos
Definition: VisualizationDescription.h:93
float y
y position of this point
Definition: Point32f.h:48
Text(const Point32f &pos, const std::string &text)
Constructor with given pos and content.
Definition: VisualizationDescription.h:99
ICLQt_API void text(ImgQ &image, int x, int y, const string &text)
renders a text into an image (only available with Qt-Support)
std::string text
Definition: VisualizationDescription.h:94
Color()
Empty default constructor.
Definition: VisualizationDescription.h:110
void polygon(Iterator begin, Iterator end)
template based creation of a polygon
Definition: VisualizationDescription.h:277
void circle(icl32f cx, icl32f cy, icl32f radius)
adds a circle (intnerally handeled as ellipse)
Definition: VisualizationDescription.h:222
icl8u & g()
accesses green value
Definition: VisualizationDescription.h:123
void clear()
clears the list
Definition: VisualizationDescription.h:157
Part(char type, const Any &content)
constructor with given parameters
Definition: VisualizationDescription.h:82
void polygon(const std::vector< Point > &ps)
adds polygon from given vector of Points
Definition: VisualizationDescription.h:287
char type
type
Definition: VisualizationDescription.h:85
Part()
constructor
Definition: VisualizationDescription.h:79
icl8u & a()
accesses alpha value
Definition: VisualizationDescription.h:129
void rect(icl32f x, icl32f y, icl32f width, icl32f height)
add a rectangle
Definition: VisualizationDescription.h:202
icl8u & r()
accesses red value
Definition: VisualizationDescription.h:120
Floating point precision implementation of the Rect class.
Definition: Rect32f.h:45
void linewidth(float w)
defines the linewidth
Definition: VisualizationDescription.h:292
void ellipse(icl32f x, icl32f y, icl32f width, icl32f height)
add an ellipse
Definition: VisualizationDescription.h:212
Ipp32s icl32s
32bit signed integer type for the ICL
Definition: BasicTypes.h:58
Ipp32f icl32f
32Bit floating point type for the ICL
Definition: BasicTypes.h:55
void textangle(float angle)
sets the vertical text mode
Definition: VisualizationDescription.h:307
const icl8u & b() const
accesses blue value (const)
Definition: VisualizationDescription.h:138
void text(icl32f x, icl32f y, const std::string &text)
adds text
Definition: VisualizationDescription.h:338
Any content
strind-serialized content
Definition: VisualizationDescription.h:88
icl32s rgba
Definition: VisualizationDescription.h:107
ICLUtils_API std::ostream & operator<<(std::ostream &s, const ConfigFile &cf)
Default ostream operator to put a ConfigFile into a stream.
void addPart(char c, const Any &content)
adds a given part
Definition: VisualizationDescription.h:166
Text()
Empty constructor.
Definition: VisualizationDescription.h:96
ICLUtils_API std::istream & operator>>(std::istream &s, Point &p)
istream operator
void line(icl32f x1, icl32f y1, icl32f x2, icl32f y2)
adds a line (intnerally represented by bounding rectangle)
Definition: VisualizationDescription.h:227
void rect(const Rect32f &r)
add a rectangle
Definition: VisualizationDescription.h:207
const icl8u & g() const
accesses green value (const)
Definition: VisualizationDescription.h:135
void addPart(const Part &part)
adds a given part
Definition: VisualizationDescription.h:162
Abstract class for visualization tasks.
Definition: VisualizationDescription.h:73
void polygon(const std::vector< Point32f > &ps)
adds polygon from given float vector
Definition: VisualizationDescription.h:282
Single precission 3D Vectors Point class of the ICL.
Definition: Point32f.h:41
void line(const Point32f &a, const Point32f &b)
adds a line (intnerally represented by bounding rectangle)
Definition: VisualizationDescription.h:232
Utility class for Text.
Definition: VisualizationDescription.h:92
void sym(char type, const Point32f &p)
adds a symbol (supported types are +*x and .)
Definition: VisualizationDescription.h:242
float x
x position of this point
Definition: Point32f.h:45
Utility Color class.
Definition: VisualizationDescription.h:103
const std::vector< Part > & getParts() const
returns the parts
Definition: VisualizationDescription.h:152
void points(const std::vector< Point32f > &ps)
adds points from given float vector
Definition: VisualizationDescription.h:266
void copy(const T *src, const T *srcEnd, T *dst)
moves data from source to destination array (no casting possible)
Definition: CoreFunctions.h:216
icl8u comp[4]
Definition: VisualizationDescription.h:106
Single part of the the visualization pipeline.
Definition: VisualizationDescription.h:77
VisualizationDescription & operator+=(const VisualizationDescription &other)
adds another visualization description
Definition: VisualizationDescription.h:172
void color(icl8u r, icl8u g, icl8u b)
sets the current draw color (no alpha)
Definition: VisualizationDescription.h:348
void ellipse(const Rect32f &r)
add an ellipse
Definition: VisualizationDescription.h:217
void fontsize(float s)
defines the font size to be used
Definition: VisualizationDescription.h:302
Color(icl8u r, icl8u g, icl8u b, icl8u a=255)
Constructor with given color values.
Definition: VisualizationDescription.h:113
Simple generic data type implementation that uses a string based data representation.
Definition: Any.h:109
void point(const Point32f &p)
adds a point (internally handles as a sym of type '.')
Definition: VisualizationDescription.h:255
void fill(icl8u r, icl8u g, icl8u b)
sets the current fill color (no alpha)
Definition: VisualizationDescription.h:358
void points(Iterator begin, Iterator end)
adds points (data is in order [x1,y1,x2,y2]
Definition: VisualizationDescription.h:261
void sym(char type, icl32f x, icl32f y)
adds a symbol (supported types are +*x and .)
Definition: VisualizationDescription.h:237
VisualizationDescription operator+(const VisualizationDescription &other)
adds two descriptions
Definition: VisualizationDescription.h:181