34#ifndef VP_DISPLAY_GTK_H
35#define VP_DISPLAY_GTK_H
37#include <visp3/core/vpConfig.h>
38#include <visp3/core/vpDisplay.h>
39#if (defined(VISP_HAVE_GTK))
40#include <visp3/core/vpImage.h>
160 vpDisplayGTK(
int win_x,
int win_y,
const std::string &win_title =
"");
173 void getScreenSize(
unsigned int &screen_width,
unsigned int &screen_height) VP_OVERRIDE;
177 void init(
vpImage<vpRGBa> &I,
int win_x = -1,
int win_y = -1,
const std::string &win_title =
"") VP_OVERRIDE;
178 void init(
unsigned int win_width,
unsigned int win_height,
int win_x = -1,
int win_y = -1,
179 const std::string &win_title =
"") VP_OVERRIDE;
182 void setFont(
const std::string &fontname) VP_OVERRIDE;
183 void setTitle(
const std::string &win_title) VP_OVERRIDE;
191 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1) VP_OVERRIDE;
194 unsigned int thickness = 1) VP_OVERRIDE;
197 unsigned int thickness = 1) VP_OVERRIDE;
204 unsigned int height) VP_OVERRIDE;
211 bool fill =
false,
unsigned int thickness = 1) VP_OVERRIDE;
213 bool fill =
false,
unsigned int thickness = 1) VP_OVERRIDE;
221 bool getClick(
bool blocking =
true) VP_OVERRIDE;
Class to define RGB colors available for display functionalities.
static const vpColor white
static const vpColor green
void getScreenSize(unsigned int &screen_width, unsigned int &screen_height) VP_OVERRIDE
unsigned int getScreenWidth() VP_OVERRIDE
unsigned int getScreenHeight() VP_OVERRIDE
void displayImageROI(const vpImage< unsigned char > &I, const vpImagePoint &iP, unsigned int width, unsigned int height) VP_OVERRIDE
void displayImage(const vpImage< vpRGBa > &I) VP_OVERRIDE
void flushDisplay() VP_OVERRIDE
unsigned int getScreenDepth()
get the window depth (8,16,24,32)
void closeDisplay() VP_OVERRIDE
void init(vpImage< unsigned char > &I, int win_x=-1, int win_y=-1, const std::string &win_title="") VP_OVERRIDE
void clearDisplay(const vpColor &color=vpColor::white) VP_OVERRIDE
void flushDisplayROI(const vpImagePoint &iP, unsigned int width, unsigned int height) VP_OVERRIDE
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 ...
Definition of the vpImage class member functions.
Defines a rectangle in the plane.