4 #include <opencv2/core/core.hpp> 5 #include <opencv2/core/core_c.h> 53 virtual void init (
int width_pixel,
int height_pixel,
57 double grid_scale_x = -1,
double grid_scale_y = -1,
58 const std::string &background_image = std::string() );
63 const std::string
title()
const;
69 void setLabel (
const std::string &label_x = std::string(
"x=%f"),
const std::string &label_y = std::string(
"y=%f"));
78 const cv::Mat&
view()
const;
104 void line (
const Point2D &p0,
const Point2D &p1,
const cv::Scalar &color,
int thickness=1,
int lineType = CV_AA );
114 void circle (
const Point2D &
p,
int radius,
const cv::Scalar &color,
int thickness=1,
int lineType = CV_AA );
138 void symbol ( cv::Mat &
view,
const Pose2D &
p,
double radius,
const cv::Scalar &color,
int thickness=1,
int lineType = CV_AA );
147 void symbol (
const Pose2D &
p,
double radius,
const cv::Scalar &color,
int thickness=1,
int lineType = CV_AA );
159 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_AA,
bool bottomLeftOrigin=
false );
170 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_AA,
bool bottomLeftOrigin=
false );
184 void appendToView(
const cv::Mat& _mat,
const cv::Scalar& _colMin,
const cv::Scalar& _colMax, u_int8_t _truncateLayerVal = 0);
190 static const cv::Scalar
red;
void circle(T &map, const Point2D &p, int radius, const cv::Scalar &color, int thickness=1, int lineType=CV_AA) const
void init()
initializes the transformation matrices
void line(T &map, const Point2D &p0, const Point2D &p1, const cv::Scalar &color, int thickness=1, int lineType=CV_AA) const
std::shared_ptr< Figure > FigurePtr
Prototype.
std::shared_ptr< Figure const > FigureConstPtr