37 #include <visp3/core/vpConfig.h>
39 #include <visp3/core/vpDisplay.h>
40 #include <visp3/core/vpImage.h>
41 #include <visp3/core/vpRect.h>
149 vpDisplayX(
int winx,
int winy,
const std::string &title =
"");
160 unsigned int getScreenDepth();
161 unsigned int getScreenHeight()
override;
162 void getScreenSize(
unsigned int &width,
unsigned int &height)
override;
163 unsigned int getScreenWidth()
override;
165 void init(
vpImage<unsigned char> &I,
int win_x = -1,
int win_y = -1,
const std::string &win_title =
"")
override;
166 void init(
vpImage<vpRGBa> &I,
int win_x = -1,
int win_y = -1,
const std::string &win_title =
"")
override;
167 void init(
unsigned int win_width,
unsigned int win_height,
int win_x = -1,
int win_y = -1,
168 const std::string &win_title =
"")
override;
173 void closeDisplay()
override;
176 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1)
override;
179 unsigned int thickness = 1)
override;
182 unsigned int thickness = 1)
override;
186 void displayImage(
const unsigned char *I);
189 unsigned int height)
override;
196 bool fill =
false,
unsigned int thickness = 1)
override;
198 bool fill =
false,
unsigned int thickness = 1)
override;
203 void flushDisplay()
override;
204 void flushDisplayROI(
const vpImagePoint &iP,
unsigned int width,
unsigned int height)
override;
206 bool getClick(
bool blocking =
true)
override;
217 void setFont(
const std::string &font)
override;
218 void setTitle(
const std::string &title)
override;
Class to define RGB colors available for display functionalities.
static const vpColor white
static const vpColor green
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
Class that defines generic functionalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void displayCircle(const vpImage< unsigned char > &I, const vpImageCircle &circle, const vpColor &color, bool fill=false, unsigned int thickness=1)
static bool getKeyboardEvent(const vpImage< unsigned char > &I, bool blocking=true)
static void displayLine(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1, bool segment=true)
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
static bool getClickUp(const vpImage< unsigned char > &I, vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true)
static void displayCross(const vpImage< unsigned char > &I, const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1)
static void setTitle(const vpImage< unsigned char > &I, const std::string &windowtitle)
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 displayPoint(const vpImage< unsigned char > &I, const vpImagePoint &ip, const vpColor &color, unsigned int thickness=1)
static void setFont(const vpImage< unsigned char > &I, const std::string &font)
static void displayDotLine(const vpImage< unsigned char > &I, const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)
static bool getPointerPosition(const vpImage< unsigned char > &I, vpImagePoint &ip)
static bool getPointerMotionEvent(const vpImage< unsigned char > &I, vpImagePoint &ip)
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 void setWindowPosition(const vpImage< unsigned char > &I, int winx, int winy)
static void displayText(const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color)
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Defines a rectangle in the plane.