42 #include <visp/vpConfig.h>
44 #if ( defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9) )
46 #ifndef vpDisplayWin32_hh
47 #define vpDisplayWin32_hh
51 #include <visp/vpImage.h>
52 #include <visp/vpDisplay.h>
54 #include <visp/vpWin32Window.h>
55 #include <visp/vpWin32Renderer.h>
56 #include <visp/vpRect.h>
57 #include <visp/vpImagePoint.h>
59 #ifndef DOXYGEN_SHOULD_SKIP_THIS
119 friend void vpCreateWindow(threadParam * param);
126 int winx=-1,
int winy=-1,
127 const char *title=NULL);
130 int winx=-1,
int winy=-1,
131 const char *title=NULL);
135 void setTitle(
const char *windowtitle);
136 void setFont(
const char *fontname );
150 int winx=-1,
int winy=-1,
151 const char *title=NULL) ;
154 int winx=-1,
int winy=-1,
155 const char *title=NULL) ;
157 void init(
unsigned int width,
unsigned int height,
158 int winx=-1,
int winy=-1 ,
159 const char *title=NULL) ;
168 unsigned int w=4,
unsigned int h=2,
169 unsigned int thickness=1) ;
177 unsigned int thickness=1);
180 const vpColor &color,
unsigned int thickness=1) ;
184 const vpColor &color,
unsigned int thickness=1) ;
188 const vpColor &color,
unsigned int thickness=1);
194 unsigned int width,
unsigned int height,
195 const vpColor &color,
bool fill =
false,
196 unsigned int thickness=1);
199 const vpColor &color,
bool fill =
false,
200 unsigned int thickness=1) ;
202 const vpColor &color,
bool fill =
false,
203 unsigned int thickness=1) ;
virtual void displayCircle(const vpImagePoint ¢er, unsigned int radius, const vpColor &color, bool fill=false, unsigned int thickness=1)=0
static const int MAX_INIT_DELAY
Maximum delay for window initialization.
DWORD threadId
Id of the window's thread.
virtual void displayImage(const vpImage< unsigned char > &I)=0
virtual void init(vpImage< unsigned char > &I, int x=-1, int y=-1, const char *title=NULL)=0
Class that defines generic functionnalities for display.
virtual void displayArrow(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color=vpColor::white, unsigned int w=4, unsigned int h=2, unsigned int thickness=1)=0
Class to define colors available for display functionnalities.
virtual void clearDisplay(const vpColor &color=vpColor::white)=0
virtual bool getClickUp(vpImagePoint &ip, vpMouseButton::vpMouseButtonType &button, bool blocking=true)=0
virtual bool getPointerMotionEvent(vpImagePoint &ip)=0
bool iStatus
Initialization status.
static const vpColor green
vpWin32Window window
The window.
virtual void flushDisplay()=0
virtual bool getPointerPosition(vpImagePoint &ip)=0
virtual bool getKeyboardEvent(bool blocking=true)=0
virtual void setWindowPosition(int winx, int winy)=0
virtual void displayCross(const vpImagePoint &ip, unsigned int size, const vpColor &color, unsigned int thickness=1)=0
virtual void displayImageROI(const vpImage< unsigned char > &I, const vpImagePoint &iP, const unsigned int width, const unsigned int height)=0
virtual void setTitle(const char *title)=0
virtual void setFont(const char *font)=0
virtual void displayRectangle(const vpImagePoint &topLeft, unsigned int width, unsigned int height, const vpColor &color, bool fill=false, unsigned int thickness=1)=0
static void getImage(const vpImage< unsigned char > &Is, vpImage< vpRGBa > &Id)
virtual void displayDotLine(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)=0
HANDLE hThread
Handle of the window's thread.
virtual void closeDisplay()=0
virtual void displayCharString(const vpImagePoint &ip, const char *text, const vpColor &color=vpColor::green)=0
Defines a rectangle in the plane.
virtual bool getClick(bool blocking=true)=0
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
virtual void displayLine(const vpImagePoint &ip1, const vpImagePoint &ip2, const vpColor &color, unsigned int thickness=1)=0
Base abstract class for Windows 32 displays. Implements the window creation in a separate thread and ...
virtual void flushDisplayROI(const vpImagePoint &iP, const unsigned int width, const unsigned int height)=0
static const vpColor white
virtual void displayPoint(const vpImagePoint &ip, const vpColor &color)=0