38 #include <visp3/core/vpConfig.h>
40 #if ( defined(VISP_HAVE_GDI) )
41 #ifndef vpGDIRenderer_HH
42 #define vpGDIRenderer_HH
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 #include <visp3/gui/vpWin32Renderer.h>
50 #include <visp3/core/vpImage.h>
51 #include <visp3/core/vpRGBa.h>
52 #include <visp3/core/vpDisplayException.h>
54 #include <visp3/core/vpMath.h>
56 class VISP_EXPORT vpGDIRenderer :
public vpWin32Renderer
71 CRITICAL_SECTION CriticalSection;
76 virtual ~vpGDIRenderer();
78 bool init(HWND hWnd,
unsigned int width,
unsigned int height);
83 unsigned int getImageWidth(){
return nbCols; }
86 unsigned int getImageHeight(){
return nbRows; }
97 const vpColor &color,
unsigned int thickness,
int style=PS_SOLID);
100 unsigned int width,
unsigned int height,
101 const vpColor &color,
bool fill=
false,
102 unsigned int thickness=1);
104 void clear(
const vpColor &color);
106 void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
107 const vpColor &color,
bool fill=
false,
unsigned int thickness=1);
109 void drawText(
const vpImagePoint &ip,
const char * text,
112 void drawCross(
const vpImagePoint &ip,
unsigned int size,
113 const vpColor &color,
unsigned int thickness=1);
117 const vpColor &color,
unsigned int w,
unsigned int h,
unsigned int thickness=1);
124 bool updateBitmap(HBITMAP& hBmp,
unsigned char * imBuffer,
125 unsigned int w,
unsigned int h);
127 bool updateBitmapROI(
unsigned char * imBuffer,
const vpImagePoint &iP,
128 unsigned int w,
unsigned int h);
Class to define colors available for display functionnalities.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...