39 #ifndef VP_DISPLAY_X_H
40 #define VP_DISPLAY_X_H
42 #include <visp3/core/vpConfig.h>
43 #include <visp3/core/vpDisplay.h>
46 #include <visp3/core/vpImage.h>
47 #include <visp3/core/vpRect.h>
134 class VISP_EXPORT vpDisplayX :
public vpDisplay
156 vpDisplayX(
int winx,
int winy,
const std::string &title =
"");
159 vpScaleType type = SCALE_DEFAULT);
161 vpDisplayX(
vpImage<vpRGBa> &I,
int winx = -1,
int winy = -1,
const std::string &title =
"",
162 vpScaleType type = SCALE_DEFAULT);
164 virtual ~vpDisplayX() VP_OVERRIDE;
167 unsigned int getScreenDepth();
168 unsigned int getScreenHeight() VP_OVERRIDE;
169 void getScreenSize(
unsigned int &width,
unsigned int &height) VP_OVERRIDE;
170 unsigned int getScreenWidth() VP_OVERRIDE;
172 void init(
vpImage<
unsigned char> &I,
int win_x = -1,
int win_y = -1, const std::
string &win_title = "") VP_OVERRIDE;
173 void init(
vpImage<
vpRGBa> &I,
int win_x = -1,
int win_y = -1, const std::
string &win_title = "") VP_OVERRIDE;
174 void init(
unsigned int win_width,
unsigned int win_height,
int win_x = -1,
int win_y = -1,
175 const std::
string &win_title = "") VP_OVERRIDE;
178 void clearDisplay(const
vpColor &color =
vpColor::white) VP_OVERRIDE;
180 void closeDisplay() VP_OVERRIDE;
183 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1) VP_OVERRIDE;
185 void displayCircle(const
vpImagePoint ¢er,
unsigned int radius, const
vpColor &color,
bool fill = false,
186 unsigned int thickness = 1) VP_OVERRIDE;
187 void displayCross(const
vpImagePoint &ip,
unsigned int size, const
vpColor &color,
unsigned int thickness = 1) VP_OVERRIDE;
189 unsigned int thickness = 1) VP_OVERRIDE;
191 void displayImage(const
vpImage<
unsigned char> &I) VP_OVERRIDE;
193 void displayImage(const
unsigned char *I);
195 void displayImageROI(const
vpImage<
unsigned char> &I, const
vpImagePoint &iP,
unsigned int width,
196 unsigned int height) VP_OVERRIDE;
197 void displayImageROI(const
vpImage<
vpRGBa> &I, const
vpImagePoint &iP,
unsigned int width,
unsigned int height) VP_OVERRIDE;
200 void displayPoint(const
vpImagePoint &ip, const
vpColor &color,
unsigned int thickness = 1) VP_OVERRIDE;
202 void displayRectangle(const
vpImagePoint &topLeft,
unsigned int width,
unsigned int height, const
vpColor &color,
203 bool fill = false,
unsigned int thickness = 1) VP_OVERRIDE;
205 bool fill = false,
unsigned int thickness = 1) VP_OVERRIDE;
206 void displayRectangle(const
vpRect &rectangle, const
vpColor &color,
bool fill = false,
unsigned int thickness = 1) VP_OVERRIDE;
210 void flushDisplay() VP_OVERRIDE;
211 void flushDisplayROI(const
vpImagePoint &iP,
unsigned int width,
unsigned int height) VP_OVERRIDE;
213 bool getClick(
bool blocking = true) VP_OVERRIDE;
214 bool getClick(
vpImagePoint &ip,
bool blocking = true) VP_OVERRIDE;
218 bool getKeyboardEvent(
bool blocking = true) VP_OVERRIDE;
219 bool getKeyboardEvent(std::
string &key,
bool blocking = true) VP_OVERRIDE;
221 bool getPointerMotionEvent(
vpImagePoint &ip) VP_OVERRIDE;
224 void setFont(const std::
string &font) VP_OVERRIDE;
225 void setTitle(const std::
string &title) VP_OVERRIDE;
226 void setWindowPosition(
int win_x,
int win_y) VP_OVERRIDE;
Class to define RGB colors available for display functionalities.
Class that defines generic functionalities for display.
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.