 |
Visual Servoing Platform
version 3.2.0
|
1 #include <visp/vpConfig.h>
3 #include <visp/vpDisplayOpenCV.h>
4 #include <visp/vpDisplayX.h>
5 #include <visp/vpDisplayGTK.h>
6 #include <visp/vpDisplayGDI.h>
7 #include <visp/vpDisplayD3D.h>
12 #if defined(VISP_HAVE_X11)
14 #elif defined(VISP_HAVE_GTK)
16 #elif defined(VISP_HAVE_GDI)
18 #elif defined(VISP_HAVE_D3D9)
20 #elif defined(VISP_HAVE_OPENCV)
23 std::cout <<
"Sorry, no video device is available" << std::endl;
28 #ifdef VISP_HAVE_DISPLAY
36 std::cout <<
"Waiting a keyboard event..." << std::endl;
38 std::cout <<
"A keyboard event was detected" << std::endl;
42 std::cout <<
"Enter a non blocking keyboard event detection loop..." << std::endl;
46 std::cout <<
"Key detected: " << key << std::endl;
50 }
while(cpt_event < 5);
51 #ifdef VISP_HAVE_DISPLAY
Use the X11 console to display images on unix-like OS. Thus to enable this class X11 should be instal...
VISP_EXPORT int wait(double t0, double t)
Display for windows using GDI (available on any windows 32 platform).
Display for windows using Direct3D 3rd party. Thus to enable this class Direct3D should be installed....
The vpDisplayOpenCV allows to display image using the OpenCV library. Thus to enable this class OpenC...
static bool getKeyboardEvent(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
The vpDisplayGTK allows to display image using the GTK 3rd party library. Thus to enable this class G...
void init(vpImage< unsigned char > &I, int winx=-1, int winy=-1, const std::string &title="")
static void flush(const vpImage< unsigned char > &I)
Class that defines generic functionnalities for display.