#include <figure.h>

| Public Member Functions | |
| void | appendToView (const cv::Mat &_mat, const cv::Scalar &_colMin, const cv::Scalar &_colMax, u_int8_t _truncateLayerVal=0) | 
| cv::Mat & | background () | 
| const cv::Mat & | background () const | 
| const std::string & | backgroundFileName () const | 
| void | circle (const Point2D &p, int radius, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) | 
| template<typename T > | |
| void | circle (T &map, const Point2D &p, int radius, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) const | 
| void | clear () | 
| Figure (const Figure &)=default | |
| Figure (const std::string &title) | |
| draws the background image  More... | |
| Figure (Figure &&)=default | |
| virtual void | init (int width_pixel, int height_pixel, double min_y, double max_y, double min_x, double max_x, double rotation=0, double grid_scale_x=-1, double grid_scale_y=-1, const std::string &background_image=std::string()) | 
| void | line (const Point2D &p0, const Point2D &p1, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) | 
| template<typename T > | |
| void | line (T &map, const Point2D &p0, const Point2D &p1, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) const | 
| Figure & | operator= (const Figure &)=default | 
| Figure & | operator= (Figure &&)=default | 
| void | putText (const std::string &text, const Point2D &p, int fontFace=cv::FONT_HERSHEY_PLAIN, double fontScale=0.6, cv::Scalar color=cv::Scalar(128, 0, 0), int thickness=1, int lineType=cv::LINE_AA, bool bottomLeftOrigin=false) | 
| void | putText (cv::Mat &view, const std::string &text, const Point2D &p, int fontFace=cv::FONT_HERSHEY_PLAIN, double fontScale=0.6, cv::Scalar color=cv::Scalar(128, 0, 0), int thickness=1, int lineType=cv::LINE_AA, bool bottomLeftOrigin=false) | 
| void | setLabel (const std::string &label_x=std::string("x=%f"), const std::string &label_y=std::string("y=%f")) | 
| void | setView (const cv::Mat &view) | 
| void | symbol (const Point2D &p, const cv::Scalar &color) | 
| void | symbol (const Pose2D &p, double radius, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) | 
| void | symbol (cv::Mat &view, const Point2D &p, const cv::Scalar &color) | 
| void | symbol (cv::Mat &view, const Pose2D &p, double radius, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) | 
| const std::string | title () const | 
| cv::Mat & | view () | 
| const cv::Mat & | view () const | 
| virtual | ~Figure ()=default | 
|  Public Member Functions inherited from tuw::WorldScopedMaps | |
| template<typename T > | |
| void | circle (T &map, const Point2D &p, int radius, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) const | 
| template<typename T > | |
| cv::Scalar_< T > | get (cv::Mat_< T > &map, const Point2D &p) const | 
| int | height () const | 
| std::string | infoHeader () const | 
| template<typename T > | |
| void | init (const T &metadata) | 
| void | init (int width_pixel, int height_pixel, double min_y, double max_y, double min_x, double max_x, double rotation=0) | 
| bool | initialized () | 
| template<typename T > | |
| void | line (T &map, const Point2D &p0, const Point2D &p1, const cv::Scalar &color, int thickness=1, int lineType=cv::LINE_AA) const | 
| Point2D | m2w (const Point2D &src) const | 
| Point2D & | m2w (const Point2D &src, Point2D &des) const | 
| Point2D | m2w (double x, double y) const | 
| double | max_x () const | 
| double | max_y () const | 
| double | min_x () const | 
| double | min_y () const | 
| const cv::Matx33d & | Mm2w () const | 
| const cv::Matx33d & | Mw2m () const | 
| WorldScopedMaps & | operator= (const WorldScopedMaps &)=default | 
| WorldScopedMaps & | operator= (WorldScopedMaps &&)=default | 
| double | scale_w2m (double v) const | 
| double | scale_x () const | 
| double | scale_y () const | 
| Point2D | w2m (const Point2D &src) const | 
| Point2D & | w2m (const Point2D &src, Point2D &des) const | 
| Point2D | w2m (double x, double y) const | 
| int | width () const | 
| WorldScopedMaps () | |
| WorldScopedMaps (const WorldScopedMaps &)=default | |
| WorldScopedMaps (WorldScopedMaps &&)=default | |
| virtual | ~WorldScopedMaps ()=default | 
| Static Public Attributes | |
| static const cv::Scalar | black | 
| static const cv::Scalar | blue | 
| static const cv::Scalar | blue_bright | 
| static const cv::Scalar | blue_dark | 
| static const cv::Scalar | cyan | 
| static const cv::Scalar | gray | 
| static const cv::Scalar | gray_bright | 
| static const cv::Scalar | green | 
| color to use with the drawing functions  More... | |
| static const cv::Scalar | green_bright | 
| static const cv::Scalar | green_dark | 
| static const cv::Scalar | magenta | 
| static const cv::Scalar | niceBlue | 
| static const cv::Scalar | niceDirtyPink | 
| static const cv::Scalar | niceGreen | 
| static const cv::Scalar | niceGreenBlue | 
| static const cv::Scalar | niceGreenWashed | 
| static const cv::Scalar | niceGrey | 
| static const cv::Scalar | niceGreyDark | 
| static const cv::Scalar | niceGreyLight | 
| static const cv::Scalar | niceGreyPurple | 
| static const cv::Scalar | niceLime | 
| static const cv::Scalar | niceMagenta | 
| static const cv::Scalar | niceMustard | 
| static const cv::Scalar | niceRed | 
| static const cv::Scalar | niceRedDark | 
| static const cv::Scalar | orange | 
| static const cv::Scalar | red | 
| static const cv::Scalar | white | 
| static const cv::Scalar | yellow | 
| Private Member Functions | |
| void | drawBackground () | 
| dimension of the drawn grid, if -1 no grid will be drawn  More... | |
| Private Attributes | |
| cv::Mat | background_ | 
| canvas  More... | |
| std::string | background_filename_ | 
| background data, grid or image  More... | |
| double | grid_scale_x_ | 
| if empty no file will be used  More... | |
| double | grid_scale_y_ | 
| std::string | label_format_x_ | 
| window name  More... | |
| std::string | label_format_y_ | 
| label format string  More... | |
| std::string | title_ | 
| cv::Mat | view_ | 
| label format string  More... | |
| Figure::Figure | ( | const std::string & | title | ) | 
draws the background image
constructor
| title | title of the displayed windows | 
Definition at line 42 of file figure.cpp.
| 
 | virtualdefault | 
| 
 | default | 
| 
 | default | 
| void Figure::appendToView | ( | const cv::Mat & | _mat, | 
| const cv::Scalar & | _colMin, | ||
| const cv::Scalar & | _colMax, | ||
| u_int8_t | _truncateLayerVal = 0 | ||
| ) | 
Appends the contents of a single channel CV_8U map into the foreground image as a (BGR) colour gradient on foreground pixels that were previously white (255,255,255).
| _mat | Map (CV_8U) to be appended to the foreground image | 
| _colMin | Minimum (BGR) colour vector value of the appended map (a value of 0 in the input map will be appended with the colour _colMin) | 
| _colMax | Maximum (BGR) colour vector value of the appended map (a value of 255 in the input map will be appended with the colour _colMax) | 
| _truncateLayerVal | Value to be truncated from the source map. For example, a value of 10 will not append any pixels with value greater than 245 ( = 255-10 ) | 
Definition at line 180 of file figure.cpp.
| cv::Mat& tuw::Figure::background | ( | ) | 
| cv::Mat & Figure::background | ( | ) | const | 
Definition at line 61 of file figure.cpp.
| const std::string & Figure::backgroundFileName | ( | ) | const | 
Definition at line 52 of file figure.cpp.
| void Figure::circle | ( | const Point2D & | p, | 
| int | radius, | ||
| const cv::Scalar & | color, | ||
| int | thickness = 1, | ||
| int | lineType = cv::LINE_AA | ||
| ) | 
draws a circle given in the visualization space (meter, ....) into the foreground image
| p | location | 
| radius | radius | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 160 of file figure.cpp.
| 
 | inline | 
draws a circle given in the visualization space (meter, ....) into a pixel map
| map | opencv matrix | 
| p | location | 
| radius | radius | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 107 of file world_scoped_maps.h.
| void Figure::clear | ( | ) | 
overwrites the foreground with the background
Definition at line 138 of file figure.cpp.
| 
 | private | 
dimension of the drawn grid, if -1 no grid will be drawn
Definition at line 87 of file figure.cpp.
| 
 | virtual | 
used to initialize the figure
| width_pixel | pixel size of the canvas | 
| height_pixel | pixel size of the canvas | 
| min_y | minimal y of the visualized space | 
| max_y | maximal y of the visualized space | 
| min_x | minimal x of the visualized space | 
| max_x | maximal x of the visualized space | 
| rotation | rotation of the visualized space | 
| grid_scale_x | dimension of the drawn grid, if -1 no grid will be drawn | 
| grid_scale_y | dimension of the drawn grid, if -1 no grid will be drawn | 
| background_image | file name of an image for the background, it can be empty as well | 
Reimplemented in tuw::LayeredFigure.
Definition at line 79 of file figure.cpp.
| void Figure::line | ( | const Point2D & | p0, | 
| const Point2D & | p1, | ||
| const cv::Scalar & | color, | ||
| int | thickness = 1, | ||
| int | lineType = cv::LINE_AA | ||
| ) | 
draws a line given in the visualization space (meter, ....) into the foreground image
| p0 | start point | 
| p1 | end point | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 143 of file figure.cpp.
| 
 | inline | 
draws a line given in the visualization space (meter, ....) into a pixel map
| map | opencv matrix | 
| p0 | start point | 
| p1 | end point | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 94 of file world_scoped_maps.h.
| void Figure::putText | ( | const std::string & | text, | 
| const Point2D & | p, | ||
| int | fontFace = cv::FONT_HERSHEY_PLAIN, | ||
| double | fontScale = 0.6, | ||
| cv::Scalar | color = cv::Scalar ( 128,0,0 ), | ||
| int | thickness = 1, | ||
| int | lineType = cv::LINE_AA, | ||
| bool | bottomLeftOrigin = false | ||
| ) | 
draws a text (pose) given in the visualization space (meter, ....) into the foreground image
| text | text | 
| p | location | 
| fontFace | fontFace --> | 
| fontScale | fontScale --> | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 173 of file figure.cpp.
| void Figure::putText | ( | cv::Mat & | view, | 
| const std::string & | text, | ||
| const Point2D & | p, | ||
| int | fontFace = cv::FONT_HERSHEY_PLAIN, | ||
| double | fontScale = 0.6, | ||
| cv::Scalar | color = cv::Scalar ( 128,0,0 ), | ||
| int | thickness = 1, | ||
| int | lineType = cv::LINE_AA, | ||
| bool | bottomLeftOrigin = false | ||
| ) | 
draws a text (pose) given in the visualization space (meter, ....) into the image
| view | image | 
| text | text | 
| p | location | 
| fontFace | fontFace --> | 
| fontScale | fontScale --> | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 176 of file figure.cpp.
| void Figure::setLabel | ( | const std::string & | label_x = std::string("x=%f"), | 
| const std::string & | label_y = std::string("y=%f") | ||
| ) | 
can be used to define the x and y label format
| label_x | format of the x label, default "x=%f" | 
| label_y | format of the y label, default "y=%f" | 
Definition at line 49 of file figure.cpp.
| void Figure::setView | ( | const cv::Mat & | view | ) | 
can be used to clone an image into the foreground independent to the image format (gray, color, ...)
| view | source image | 
Definition at line 67 of file figure.cpp.
| void Figure::symbol | ( | const Point2D & | p, | 
| const cv::Scalar & | color | ||
| ) | 
draws a symbol (dot) given in the visualization space (meter, ....) into the foreground image
| p | location | 
| color | color --> | 
Definition at line 147 of file figure.cpp.
| void Figure::symbol | ( | const Pose2D & | p, | 
| double | radius, | ||
| const cv::Scalar & | color, | ||
| int | thickness = 1, | ||
| int | lineType = cv::LINE_AA | ||
| ) | 
draws a symbol (pose) given in the visualization space (meter, ....) into the foreground image
| p | location | 
| radius | radius | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 164 of file figure.cpp.
| void Figure::symbol | ( | cv::Mat & | view, | 
| const Point2D & | p, | ||
| const cv::Scalar & | color | ||
| ) | 
draws a symbol (dot) given in the visualization space (meter, ....) into a pixel map
| view | image | 
| p | location | 
| color | color --> | 
Definition at line 150 of file figure.cpp.
| void Figure::symbol | ( | cv::Mat & | view, | 
| const Pose2D & | p, | ||
| double | radius, | ||
| const cv::Scalar & | color, | ||
| int | thickness = 1, | ||
| int | lineType = cv::LINE_AA | ||
| ) | 
draws a symbol (pose) given in the visualization space (meter, ....) into the image
| view | image | 
| p | location | 
| radius | radius | 
| color | color --> | 
| thickness | line thickness --> | 
| lineType | line type --> | 
Definition at line 168 of file figure.cpp.
| const std::string Figure::title | ( | ) | const | 
Definition at line 156 of file figure.cpp.
| cv::Mat& tuw::Figure::view | ( | ) | 
| cv::Mat & Figure::view | ( | ) | const | 
Definition at line 55 of file figure.cpp.
| 
 | private | 
| 
 | static | 
| 
 | private | 
| 
 | private | 
| 
 | private |