44 #ifndef _PRIMITIVES_DRAWER_H_ 45 #define _PRIMITIVES_DRAWER_H_ 191 void DrawCircle(
CByteImage *pImage,
float mx,
float my,
float radius,
int r = 255,
int g = 255,
int b = 255,
int thickness = 1,
bool bAntiAlias =
false);
211 void DrawCircle(
CByteImage *pImage,
const Vec2d ¢er,
float radius,
int r = 255,
int g = 255,
int b = 255,
int thickness = 1,
bool bAntiAlias =
false);
304 void DrawLinePolar(
CByteImage *pImage,
float theta,
float r,
int color_r,
int color_g,
int color_b,
int thickness = 1);
void DrawPolygon(CByteImage *pImage, const Vec2d *pPoints, int nPoints, int r, int g, int b, int thickness=1)
Draws a polygon into a CByteImage.
Data structure for the representation of a 2D circle.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
Data structure for the representation of a 2D rectangle.
GLsizei const GLfloat * points
void DrawLinePolar(CByteImage *pImage, float theta, float r, int color_r, int color_g, int color_b, int thickness=1)
Draws a straight line into a CByteImage, given its parameters in polar form.
void DrawEllipse(CByteImage *pImage, const Ellipse2d &ellipse, int r=255, int g=255, int b=255, int thickness=1)
Draws an ellipse into a CByteImage.
void DrawPointBlended(CByteImage *pImage, const Vec2d &point, int r=255, int g=255, int b=255, float blend=1.0f)
Draws a point into a CByteImage, with blending.
void DrawCircle(CByteImage *pImage, float mx, float my, float radius, int r=255, int g=255, int b=255, int thickness=1, bool bAntiAlias=false)
Draws a circle into a CByteImage.
void DrawRectangle(CByteImage *pImage, const Rectangle2d &rectangle, int r, int g, int b, int thickness=1)
Draws a rectangle into a CByteImage.
void DrawPoint(CByteImage *pImage, const Vec2d &point, int r=255, int g=255, int b=255)
Draws a point into a CByteImage.
Functions for drawing 2D primitives into images.
void DrawCross(CByteImage *pImage, const Vec2d &point, int length, int r, int g, int b)
Draws a small cross into a CByteImage.
Data structure for the representation of a 2D ellipse.
void DrawLine(CByteImage *pImage, const PointPair2d &line, int r=255, int g=255, int b=255, int thickness=1)
Draws a line segment into a CByteImage, given its two end points.
GLfloat GLfloat GLfloat GLfloat nx
Data structure for the representation of a 2D straight line.
GLdouble GLdouble GLdouble r
GLuint GLsizei GLsizei * length
Data structure for the representation of a 2D vector.
void DrawLineNormal(CByteImage *pImage, float nx, float ny, float c, int r, int g, int b, int thickness=1)
Draws a line into a CByteImage, given its parameters in normal form.
void DrawRegion(CByteImage *pImage, const MyRegion ®ion, int r=255, int g=255, int b=255, int thickness=1)
Draws a rectangle into a CByteImage.
void DrawPoints(CByteImage *pImage, const CVec2dArray &points, int r=255, int g=255, int b=255)
Draws a list of points of type CVec2dArray into a CByteImage.