34 #ifndef VP_WIN32_RENDERER_H
35 #define VP_WIN32_RENDERER_H
37 #include <visp3/core/vpConfig.h>
39 #if (defined(VISP_HAVE_GDI) || defined(VISP_HAVE_D3D9))
41 #ifndef DOXYGEN_SHOULD_SKIP_THIS
43 #include <visp3/core/vpColor.h>
44 #include <visp3/core/vpImage.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;
79 unsigned int height) = 0;
81 unsigned int height) = 0;
90 void setScale(
unsigned int scale) { m_rscale = scale; }
91 void setHeight(
unsigned int height) { m_rheight = height; }
92 void setWidth(
unsigned int width) { m_rwidth = width; }
103 int style = PS_SOLID) = 0;
114 virtual void drawRect(
const vpImagePoint &topLeft,
unsigned int width,
unsigned int height,
const vpColor &color,
115 bool fill =
false,
unsigned int thickness = 1) = 0;
121 virtual void clear(
const vpColor &color) = 0;
131 virtual void drawCircle(
const vpImagePoint ¢er,
unsigned int radius,
const vpColor &color,
bool fill,
132 unsigned int thickness = 1) = 0;
150 unsigned int thickness = 1) = 0;
161 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 ...