38 #include <visp3/core/vpConfig.h> 40 #if ( defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9) ) 42 #ifndef vpDisplayWin32_hh 43 #define vpDisplayWin32_hh 47 #include <visp3/core/vpImage.h> 48 #include <visp3/core/vpDisplay.h> 50 #include <visp3/gui/vpWin32Window.h> 51 #include <visp3/gui/vpWin32Renderer.h> 52 #include <visp3/core/vpRect.h> 53 #include <visp3/core/vpImagePoint.h> 55 #ifndef DOXYGEN_SHOULD_SKIP_THIS 115 friend void vpCreateWindow(threadParam * param);
136 void flushDisplayROI(
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height);
139 unsigned int getScreenHeight();
140 void getScreenSize(
unsigned int &width,
unsigned int &height);
141 unsigned int getScreenWidth();
144 void init(
vpImage<vpRGBa> &I,
int winx=-1,
int winy=-1,
const std::string &title=
"");
145 void init(
unsigned int width,
unsigned int height,
int winx=-1,
int winy=-1,
const std::string &title=
"");
147 void setFont(
const std::string &fontname );
149 void setTitle(
const std::string &windowtitle);
150 void setWindowPosition(
int winx,
int winy);
157 unsigned int w=4,
unsigned int h=2,
158 unsigned int thickness=1) ;
160 void displayCharString(
const vpImagePoint &ip,
const char *text,
163 void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
166 unsigned int thickness=1);
168 void displayCross(
const vpImagePoint &ip,
unsigned int size,
169 const vpColor &color,
unsigned int thickness=1) ;
173 const vpColor &color,
unsigned int thickness=1) ;
177 const vpColor &color,
unsigned int thickness=1);
182 unsigned int width,
unsigned int height,
183 const vpColor &color,
bool fill =
false,
184 unsigned int thickness=1);
187 const vpColor &color,
bool fill =
false,
188 unsigned int thickness=1) ;
189 void displayRectangle(
const vpRect &rectangle,
190 const vpColor &color,
bool fill =
false,
191 unsigned int thickness=1) ;
193 bool getClick(
bool blocking=
true);
203 bool getKeyboardEvent(
bool blocking=
true);
204 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 colors available for display functionnalities.
bool iStatus
Initialization status.
static const vpColor green
vpWin32Window window
The window.
void setDownScalingFactor(unsigned int scale)
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