1 #include <visp3/gui/vpDisplayGDI.h> 3 #include <visp3/gui/vpDisplayX.h> 11 #if defined(VISP_HAVE_X11) 13 #elif defined(VISP_HAVE_GDI) 24 std::cout <<
"A click to quit..." << std::endl;
27 std::cout <<
"Catch an exception: " << e.
getMessage() << std::endl;
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
unsigned int getWidth() const
Display for windows using GDI (available on any windows 32 platform).
static void displayText(const vpImage< unsigned char > &I, const vpImagePoint &ip, const std::string &s, const vpColor &color)
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
error that can be emited by ViSP classes.
static void flush(const vpImage< unsigned char > &I)
static void display(const vpImage< unsigned char > &I)
const char * getMessage(void) const
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)
unsigned int getHeight() const
static const vpColor yellow
static void setTitle(const vpImage< unsigned char > &I, const std::string &windowtitle)