1 #include <visp3/core/vpConfig.h>
3 #include <visp3/gui/vpDisplayFactory.h>
7 #ifdef ENABLE_VISP_NAMESPACE
12 #if (VISP_CXX_STANDARD >= VISP_CXX_STANDARD_11)
25 std::cout <<
"A click to quit..." << std::endl;
29 std::cout <<
"Catch an exception: " << e.
getMessage() << std::endl;
31 std::cout << std::endl;
32 #if (VISP_CXX_STANDARD < VISP_CXX_STANDARD_11)
Class that defines generic functionalities for display.
static bool getClick(const vpImage< unsigned char > &I, bool blocking=true)
static void display(const vpImage< unsigned char > &I)
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 flush(const vpImage< unsigned char > &I)
error that can be emitted by ViSP classes.
const char * getMessage() const
unsigned int getWidth() const
unsigned int getHeight() const
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.