39 #include <visp3/core/vpConfig.h> 41 #if (defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9)) 43 #ifndef vpDisplayWin32_hh 44 #define vpDisplayWin32_hh 48 #include <visp3/core/vpDisplay.h> 49 #include <visp3/core/vpImage.h> 53 #include <visp3/core/vpImagePoint.h> 54 #include <visp3/core/vpRect.h> 55 #include <visp3/gui/vpWin32Renderer.h> 56 #include <visp3/gui/vpWin32Window.h> 59 #ifndef DOXYGEN_SHOULD_SKIP_THIS 118 friend void vpCreateWindow(threadParam *param);
135 unsigned int height);
137 unsigned int height);
140 void flushDisplayROI(
const vpImagePoint &iP,
unsigned int width,
unsigned int height);
143 unsigned int getScreenHeight();
144 void getScreenSize(
unsigned int &width,
unsigned int &height);
145 unsigned int getScreenWidth();
148 void init(
vpImage<vpRGBa> &I,
int winx = -1,
int winy = -1,
const std::string &title =
"");
149 void init(
unsigned int width,
unsigned int height,
int winx = -1,
int winy = -1,
const std::string &title =
"");
151 void setFont(
const std::string &fontname);
154 window.setScale(scale);
158 void setTitle(
const std::string &windowtitle);
159 void setWindowPosition(
int winx,
int winy);
163 unsigned int w = 4,
unsigned int h = 2,
unsigned int thickness = 1);
167 void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
168 unsigned int thickness = 1);
170 void displayCross(
const vpImagePoint &ip,
unsigned int size,
const vpColor &color,
unsigned int thickness = 1);
173 unsigned int thickness = 1);
177 void displayPoint(
const vpImagePoint &ip,
const vpColor &color,
unsigned int thickness = 1);
179 void displayRectangle(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
const vpColor &color,
180 bool fill =
false,
unsigned int thickness = 1);
182 bool fill =
false,
unsigned int thickness = 1);
183 void displayRectangle(
const vpRect &rectangle,
const vpColor &color,
bool fill =
false,
unsigned int thickness = 1);
185 bool getClick(
bool blocking =
true);
192 bool getKeyboardEvent(
bool blocking =
true);
193 bool getKeyboardEvent(std::string &key,
bool blocking);
static const int MAX_INIT_DELAY
Maximum delay for window initialization.
DWORD threadId
Id of the window's thread.
Class that defines generic functionnalities for display.
Class to define RGB colors available for display functionnalities.
bool iStatus
Initialization status.
static const vpColor green
vpWin32Window window
The window.
void setDownScalingFactor(unsigned int scale)
void setDownScalingFactor(vpScaleType scaleType)
HANDLE hThread
Handle of the window's thread.
Defines a rectangle in the plane.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
Base abstract class for Windows 32 displays. Implements the window creation in a separate thread and ...
static const vpColor white