1 #include <visp3/core/vpDisplay.h>
3 #include "vpDisplay_impl.h"
28 const vpColor &color,
unsigned int w,
unsigned int h,
unsigned int thickness )
30 vp_display_display_arrow(I, ip1, ip2, color, w, h, thickness);
45 const vpColor &color,
unsigned int w,
unsigned int h,
unsigned int thickness)
47 vp_display_display_arrow(I, i1, j1, i2, j2, color, w, h, thickness);
67 vp_display_display_camera(I, cMo, cam, size, color, thickness);
85 const char *
string,
const vpColor &color )
87 vp_display_display_char_string(I, ip,
string, color);
105 const char *
string,
const vpColor &color)
107 vp_display_display_char_string(I, i, j,
string, color);
122 const vpColor &color,
bool fill,
unsigned int thickness)
124 vp_display_display_circle(I, center, radius, color, fill, thickness);
139 const vpColor &color,
bool fill,
unsigned int thickness)
141 vp_display_display_circle(I, i, j, radius, color, fill, thickness);
153 const vpColor &color,
unsigned int thickness)
155 vp_display_display_cross(I, ip, size, color, thickness);
167 const vpColor &color,
unsigned int thickness)
169 vp_display_display_cross(I, i, j, size, color, thickness);
182 vp_display_display_dot_line(I, ip1, ip2, color, thickness);
194 const vpColor &color,
unsigned int thickness )
196 vp_display_display_dot_line(I, i1, j1, i2, j2, color, thickness);
245 const double &coef1,
const double &coef2,
const double &coef3,
246 bool use_centered_moments,
const vpColor &color,
unsigned int thickness)
301 const double &coef1,
const double &coef2,
const double &coef3,
302 const double &theta1,
const double &theta2,
bool use_centered_moments,
303 const vpColor &color,
unsigned int thickness)
305 vp_display_display_ellipse(I, center, coef1, coef2, coef3, theta1, theta2, use_centered_moments, color, thickness);
327 vp_display_display_frame(I, cMo, cam, size, color, thickness, offset);
338 const vpColor &color,
unsigned int thickness )
340 vp_display_display_line(I, ip1, ip2, color, thickness);
352 const vpColor &color,
unsigned int thickness )
354 vp_display_display_line(I, i1, j1, i2, j2, color, thickness);
365 const vpColor &color,
unsigned int thickness )
367 vp_display_display_point(I, ip, color, thickness);
378 const vpColor &color,
unsigned int thickness )
380 vp_display_display_point(I, i, j, color, thickness);
393 const vpColor &color,
unsigned int thickness)
395 vp_display_display_polygon(I, vip, color, thickness);
414 unsigned int width,
unsigned int height,
415 const vpColor &color,
bool fill,
unsigned int thickness)
417 vp_display_display_rectangle(I, topLeft, width, height, color, fill, thickness);
436 int i,
int j,
unsigned int width,
unsigned int height,
437 const vpColor &color,
bool fill,
unsigned int thickness)
439 vp_display_display_rectangle(I, i, j, width, height, color, fill, thickness);
457 const vpColor &color,
bool fill,
unsigned int thickness )
459 vp_display_display_rectangle(I, rectangle, color, fill, thickness);
477 float angle,
unsigned int width,
unsigned int height,
478 const vpColor &color,
unsigned int thickness)
480 vp_display_display_rectangle(I, center, angle, width, height, color, thickness);
500 const vpColor &color,
bool fill,
unsigned int thickness)
502 vp_display_display_rectangle(I, topLeft, bottomRight, color, fill, thickness);
520 unsigned int i,
unsigned int j,
float angle,
unsigned int width,
unsigned int height,
521 const vpColor &color,
unsigned int thickness)
523 vp_display_display_rectangle(I, i, j, angle, width, height, color, thickness);
540 const std::string &s,
const vpColor &color )
542 vp_display_display_text(I, ip, s, color);
559 const std::string &s,
const vpColor &color)
561 vp_display_display_text(I, i, j, s, color);
609 vp_display_flush_roi(I, roi);
626 vp_display_display(I);
637 vp_display_display_roi(I, roi);
659 return vp_display_get_click(I, blocking);
682 return vp_display_get_click(I, ip, blocking);
708 return vp_display_get_click(I, ip, button, blocking);
759 return vp_display_get_click_up(I, ip, button, blocking);
871 return vp_display_get_keyboard_event(I, blocking);
963 return vp_display_get_keyboard_event(I, key, blocking);
1055 return vp_display_get_keyboard_event(I, key, blocking);
1070 return vp_display_get_pointer_motion_event(I, ip);
1085 return vp_display_get_pointer_position(I, ip);
1100 vp_display_set_background(I, color);
1119 vp_display_set_font(I, fontname);
1132 vp_display_set_title(I, windowtitle);
1147 vp_display_set_window_position(I, winx, winy);
1162 return vp_display_get_down_scaling_factor(I);
static void displayCamera(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color, unsigned int thickness)
static void displayEllipse(const vpImage< unsigned char > &I, const vpImagePoint ¢er, const double &coef1, const double &coef2, const double &coef3, bool use_centered_moments, const vpColor &color, unsigned int thickness=1)
static bool getPointerPosition(const vpImage< unsigned char > &I, vpImagePoint &ip)
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void close(vpImage< unsigned char > &I)
static bool getPointerMotionEvent(const vpImage< unsigned char > &I, vpImagePoint &ip)
Implementation of an homogeneous matrix and operations on such kind of matrices.
static void displayPolygon(const vpImage< unsigned char > &I, const std::vector< vpImagePoint > &vip, const vpColor &color, unsigned int thickness=1)
Class to define colors available for display functionnalities.
static void displayText(const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color)
static bool getClickUp(const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true)
static void displayPoint(const vpImage< unsigned char > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1)
static void flush(const vpImage< unsigned char > &I)
static void setFont(const vpImage< unsigned char > &I, const std::string &font)
static void displayArrow(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1)
static void display(const vpImage< unsigned char > &I)
Generic class defining intrinsic camera parameters.
static void displayRectangle(const vpImage< unsigned char > &I, const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1)
static double rad(double deg)
static void displayCircle(const vpImage< unsigned char > &I, const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1)
static void displayFrame(const vpImage< unsigned char > &I, const vpHomogeneousMatrix &cMo, const vpCameraParameters &cam, double size, const vpColor &color=vpColor::none, unsigned int thickness=1, vpImagePoint offset=vpImagePoint(0, 0))
static void displayCross(const vpImage< unsigned char > &I, const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1)
static void setWindowPosition(const vpImage< unsigned char > &I, int winx, int winy)
unsigned int getDownScalingFactor()
static void setBackground(const vpImage< unsigned char > &I, const vpColor &color)
Defines a rectangle in the plane.
static void flushROI(const vpImage< unsigned char > &I, const vpRect &roi)
static void displayROI(const vpImage< unsigned char > &I, const vpRect &roi)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
static void displayLine(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)
static bool getKeyboardEvent(const vpImage< unsigned char > &I, bool blocking=true)
static void displayCharString(const vpImage< unsigned char > &I, const vpImagePoint &ip, const char *string, const vpColor &color)
static void setTitle(const vpImage< unsigned char > &I, const std::string &windowtitle)
static void displayDotLine(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)