1 #include <visp3/gui/vpDisplayD3D.h>
3 #include <visp3/gui/vpDisplayGDI.h>
4 #include <visp3/gui/vpDisplayGTK.h>
5 #include <visp3/gui/vpDisplayOpenCV.h>
6 #include <visp3/gui/vpDisplayX.h>
11 #if defined(VISP_HAVE_X11)
13 #elif defined(VISP_HAVE_GTK)
15 #elif defined(VISP_HAVE_GDI)
17 #elif defined(VISP_HAVE_D3D9)
19 #elif defined(HAVE_OPENCV_HIGHGUI)
22 std::cout <<
"Sorry, no video device is available" << std::endl;
27 #ifdef VISP_HAVE_DISPLAY
35 std::cout <<
"Waiting a keyboard event..." << std::endl;
37 std::cout <<
"A keyboard event was detected" << std::endl;
41 std::cout <<
"Enter a non blocking keyboard event detection loop..." << std::endl;
45 std::cout <<
"Key detected: " << key << std::endl;
49 }
while (cpt_event < 5);
50 #ifdef VISP_HAVE_DISPLAY
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed....
Display for windows using GDI (available on any windows 32 platform).
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
void init(vpImage< unsigned char > &I, int win_x=-1, int win_y=-1, const std::string &win_title="") vp_override
Class that defines generic functionalities for display.
static bool getKeyboardEvent(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
static void flush(const vpImage< unsigned char > &I)
VISP_EXPORT int wait(double t0, double t)