40 #ifndef vpDisplayGTK_h
41 #define vpDisplayGTK_h
43 #include <visp3/core/vpConfig.h>
44 #if (defined(VISP_HAVE_GTK))
46 #include <visp3/core/vpDisplay.h>
47 #include <visp3/core/vpImage.h>
161 vpDisplayGTK(
int win_x,
int win_y,
const std::string &win_title =
"");
172 unsigned int getScreenDepth();
173 unsigned int getScreenHeight();
174 void getScreenSize(
unsigned int &screen_width,
unsigned int &screen_height);
175 unsigned int getScreenWidth();
178 void init(
vpImage<vpRGBa> &I,
int win_x = -1,
int win_y = -1,
const std::string &win_title =
"");
179 void init(
unsigned int win_width,
unsigned int win_height,
int win_x = -1,
int win_y = -1,
180 const std::string &win_title =
"");
183 void setFont(
const std::string &fontname);
184 void setTitle(
const std::string &win_title);
192 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1);
196 unsigned int thickness = 1);
199 unsigned int thickness = 1);
203 void displayImage(
const unsigned char *I);
206 unsigned int height);
213 bool fill =
false,
unsigned int thickness = 1);
215 bool fill =
false,
unsigned int thickness = 1);
219 void flushDisplayROI(
const vpImagePoint &iP,
unsigned int width,
unsigned int height);
221 bool getClick(
bool blocking =
true);
Class to define RGB colors available for display functionnalities.
static const vpColor white
static const vpColor green
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
Class that defines generic functionnalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
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 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 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 displayCircle(const vpImage< unsigned char > &I, const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1)
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.