2#include <visp3/core/vpConfig.h>
3#include <visp3/gui/vpDisplayFactory.h>
5#ifdef ENABLE_VISP_NAMESPACE
11#if defined(VISP_HAVE_DISPLAY)
15#if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
26 std::cout <<
"Waiting a keyboard event..." << std::endl;
28 std::cout <<
"A keyboard event was detected" << std::endl;
32 std::cout <<
"Enter a non blocking keyboard event detection loop..." << std::endl;
36 std::cout <<
"Key detected: " << key << std::endl;
40 }
while (cpt_event < 5);
42#if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
47 std::cout <<
"No gui available to display an image..." << std::endl;
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)
Definition of the vpImage class member functions.
std::shared_ptr< vpDisplay > createDisplay()
Return a smart pointer vpDisplay specialization if a GUI library is available or nullptr otherwise.
vpDisplay * allocateDisplay()
Return a newly allocated vpDisplay specialization if a GUI library is available or nullptr otherwise.
VISP_EXPORT int wait(double t0, double t)