42 #include <visp/vpConfig.h>
44 #if ( defined(VISP_HAVE_GDI) )
45 #ifndef vpGDIRenderer_HH
46 #define vpGDIRenderer_HH
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
53 #include <visp/vpWin32Renderer.h>
54 #include <visp/vpImage.h>
55 #include <visp/vpRGBa.h>
56 #include <visp/vpDisplayException.h>
58 #include <visp/vpMath.h>
60 class VISP_EXPORT vpGDIRenderer :
public vpWin32Renderer
75 CRITICAL_SECTION CriticalSection;
80 virtual ~vpGDIRenderer();
82 bool init(HWND hWnd,
unsigned int width,
unsigned int height);
87 unsigned int getImageWidth(){
return nbCols; }
90 unsigned int getImageHeight(){
return nbRows; }
101 const vpColor &color,
unsigned int thickness,
int style=PS_SOLID);
104 unsigned int width,
unsigned int height,
105 const vpColor &color,
bool fill=
false,
106 unsigned int thickness=1);
108 void clear(
const vpColor &color);
110 void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
111 const vpColor &color,
bool fill=
false,
unsigned int thickness=1);
113 void drawText(
const vpImagePoint &ip,
const char * text,
116 void drawCross(
const vpImagePoint &ip,
unsigned int size,
117 const vpColor &color,
unsigned int thickness=1);
121 const vpColor &color,
unsigned int w,
unsigned int h,
unsigned int thickness=1);
128 bool updateBitmap(HBITMAP& hBmp,
unsigned char * imBuffer,
129 unsigned int w,
unsigned int h);
131 bool updateBitmapROI(
unsigned char * imBuffer,
const vpImagePoint &iP,
132 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 ...