39 #include <visp3/core/vpConfig.h>
41 #if (defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9))
43 #ifndef vpWin32Renderer_HH
44 #define vpWin32Renderer_HH
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
48 #include <visp3/core/vpColor.h>
49 #include <visp3/core/vpImage.h>
53 #include <visp3/core/vpDebug.h>
56 class VISP_EXPORT vpWin32Renderer
61 unsigned int m_rwidth;
62 unsigned int m_rheight;
63 unsigned int m_rscale;
66 vpWin32Renderer() : m_rwidth(0), m_rheight(0), m_rscale(1){};
68 virtual ~vpWin32Renderer(){};
71 virtual bool init(HWND hWnd,
unsigned int w,
unsigned int h) = 0;
74 virtual bool render() = 0;
83 unsigned int height) = 0;
85 unsigned int height) = 0;
94 void setScale(
unsigned int scale) { m_rscale = scale; }
95 void setHeight(
unsigned int height) { m_rheight = height; }
96 void setWidth(
unsigned int width) { m_rwidth = width; }
107 int style = PS_SOLID) = 0;
118 virtual void drawRect(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
const vpColor &color,
119 bool fill =
false,
unsigned int thickness = 1) = 0;
125 virtual void clear(
const vpColor &color) = 0;
135 virtual void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill,
136 unsigned int thickness = 1) = 0;
154 unsigned int thickness = 1) = 0;
165 unsigned int h,
unsigned int thickness) = 0;
Class to define RGB colors available for display functionalities.
Class that defines a 2D point in an image. This class is useful for image processing and stores only ...
void init(vpImage< unsigned char > &Iinput, vpImage< unsigned char > &IcannyVisp, vpImage< unsigned char > *p_dIx, vpImage< unsigned char > *p_dIy, vpImage< unsigned char > *p_IcannyimgFilter)
Initialize the different displays.