38 #include <visp3/core/vpConfig.h>
40 #if ( defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9) )
42 #ifndef vpWin32Renderer_HH
43 #define vpWin32Renderer_HH
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 #include <visp3/core/vpImage.h>
48 #include <visp3/core/vpColor.h>
50 #include <visp3/core/vpDebug.h>
52 class VISP_EXPORT vpWin32Renderer
57 unsigned int m_rwidth;
58 unsigned int m_rheight;
59 unsigned int m_rscale;
62 vpWin32Renderer() : m_rwidth(0), m_rheight(0), m_rscale(1) {};
64 virtual ~vpWin32Renderer() {};
67 virtual bool init(HWND hWnd,
unsigned int w,
unsigned int h) =0;
70 virtual bool render() =0;
88 void setScale(
unsigned int scale) { m_rscale = scale; }
89 void setHeight(
unsigned int height) { m_rheight = height; }
90 void setWidth(
unsigned int width) { m_rwidth = width; }
102 const vpColor &color,
unsigned int thickness,
int style=PS_SOLID) =0;
114 unsigned int width,
unsigned int height,
115 const vpColor &color,
bool fill=
false,
116 unsigned int thickness=1) =0;
122 virtual void clear(
const vpColor &color) =0;
132 virtual void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
133 const vpColor &color,
bool fill,
unsigned int thickness=1) =0;
141 virtual void drawText(
const vpImagePoint &ip,
const char * text,
151 virtual void drawCross(
const vpImagePoint &ip,
unsigned int size,
152 const vpColor &color,
unsigned int thickness=1) =0;
164 const vpColor &color,
unsigned int w,
unsigned int h,
unsigned int thickness) =0;
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 ...