39 #include <visp3/core/vpConfig.h> 41 #if (defined(VISP_HAVE_GDI)) 42 #ifndef vpGDIRenderer_HH 43 #define vpGDIRenderer_HH 45 #ifndef DOXYGEN_SHOULD_SKIP_THIS 52 #include <visp3/core/vpDisplayException.h> 53 #include <visp3/core/vpImage.h> 54 #include <visp3/core/vpRGBa.h> 55 #include <visp3/gui/vpWin32Renderer.h> 57 #include <visp3/core/vpMath.h> 59 class VISP_EXPORT vpGDIRenderer :
public vpWin32Renderer
74 CRITICAL_SECTION m_criticalSection;
76 unsigned int m_bmp_width;
77 unsigned int m_bmp_height;
82 virtual ~vpGDIRenderer();
84 bool init(HWND hWnd,
unsigned int width,
unsigned int height);
92 const unsigned int height);
97 int style = PS_SOLID);
99 void drawRect(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
const vpColor &color,
100 bool fill =
false,
unsigned int thickness = 1);
102 void clear(
const vpColor &color);
104 void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill =
false,
105 unsigned int thickness = 1);
109 void drawCross(
const vpImagePoint &ip,
unsigned int size,
const vpColor &color,
unsigned int thickness = 1);
112 unsigned int thickness = 1);
118 bool updateBitmap(HBITMAP &hBmp,
unsigned char *imBuffer,
unsigned int w,
unsigned int h);
120 bool updateBitmapROI(
unsigned char *imBuffer,
int i_min,
int j_min,
int w,
int h);
130 const unsigned int height);
134 const unsigned int height);
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 ...