42 #include <visp3/core/vpDisplay.h>
43 #include <visp3/core/vpDisplayException.h>
44 #include <visp3/core/vpImageConvert.h>
46 #include <visp3/core/vpMath.h>
47 #include <visp3/core/vpMeterPixelConversion.h>
48 #include <visp3/core/vpPoint.h>
59 : m_displayHasBeenInitialized(false), m_windowXPosition(0), m_windowYPosition(0), m_width(0), m_height(0), m_title(),
60 m_scale(1), m_scaleType(SCALE_DEFAULT)
68 : m_displayHasBeenInitialized(d.m_displayHasBeenInitialized), m_windowXPosition(d.m_windowXPosition),
69 m_windowYPosition(d.m_windowYPosition), m_width(d.m_width), m_height(d.m_height), m_title(d.m_title),
70 m_scale(d.m_scale), m_scaleType(d.m_scaleType)
237 std::cout <<
"Warning: Cannot apply the down scaling factor " << scale
238 <<
" to the display window since the display is initialized yet..." << std::endl;
249 unsigned int screen_width, screen_height;
250 getScreenSize(screen_width, screen_height);
251 double wscale = (std::max)(1., ceil(2. * (
double)width / (
double)screen_width));
252 double hscale = (std::max)(1., ceil(2. * (
double)height / (double)screen_height));
253 unsigned int scale = (
unsigned int)(std::max)(1u, (std::max)((
unsigned int)wscale, (
unsigned int)hscale));