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);
122 int winx=-1,
int winy=-1,
123 const char *title=NULL);
126 int winx=-1,
int winy=-1,
127 const char *title=NULL);
131 void setTitle(
const char *windowtitle);
132 void setFont(
const char *fontname );
133 void setWindowPosition(
int winx,
int winy);
143 void flushDisplayROI(
const vpImagePoint &iP,
const unsigned int width,
const unsigned int height);
146 int winx=-1,
int winy=-1,
147 const char *title=NULL) ;
150 int winx=-1,
int winy=-1,
151 const char *title=NULL) ;
153 void init(
unsigned int width,
unsigned int height,
154 int winx=-1,
int winy=-1 ,
155 const char *title=NULL) ;
164 unsigned int w=4,
unsigned int h=2,
165 unsigned int thickness=1) ;
167 void displayCharString(
const vpImagePoint &ip,
const char *text,
170 void displayCircle(
const vpImagePoint ¢er,
unsigned int radius,
173 unsigned int thickness=1);
175 void displayCross(
const vpImagePoint &ip,
unsigned int size,
176 const vpColor &color,
unsigned int thickness=1) ;
180 const vpColor &color,
unsigned int thickness=1) ;
184 const vpColor &color,
unsigned int thickness=1);
190 unsigned int width,
unsigned int height,
191 const vpColor &color,
bool fill =
false,
192 unsigned int thickness=1);
195 const vpColor &color,
bool fill =
false,
196 unsigned int thickness=1) ;
197 void displayRectangle(
const vpRect &rectangle,
198 const vpColor &color,
bool fill =
false,
199 unsigned int thickness=1) ;
201 bool getClick(
bool blocking=
true);
211 bool getKeyboardEvent(
bool blocking=
true);
212 bool getKeyboardEvent(
char *
string,
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.
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