Fulguro Logo Support This Project

Geometry functions
[Core]


Detailed Description

Main functions to draw geometric shapes in images.


Functions

FLGR_Ret flgr1d_draw_line_ptr (FLGR_Data1D *dat, int x, int length, FLGR_Vector *color)
FLGR_Ret flgr1d_draw_line_str (FLGR_Data1D *dat, int x, int length, char *color)
FLGR_Ret flgr2d_draw_circle_ptr (FLGR_Data2D *dat, int cx, int cy, int radius, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_circle_str (FLGR_Data2D *dat, int cx, int cy, int radius, char *color)
FLGR_Ret flgr2d_draw_disc_ptr (FLGR_Data2D *dat, int cx, int cy, int radius, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_disc_str (FLGR_Data2D *dat, int cx, int cy, int radius, char *color)
FLGR_Ret flgr2d_draw_ellipse_ptr (FLGR_Data2D *dat, int cx, int cy, int a, int b, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_ellipse_str (FLGR_Data2D *dat, int cx, int cy, int a, int b, char *color)
FLGR_Ret flgr2d_draw_filled_ellipse_ptr (FLGR_Data2D *dat, int cx, int cy, int a, int b, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_filled_ellipse_str (FLGR_Data2D *dat, int cx, int cy, int a, int b, char *color)
FLGR_Ret flgr2d_draw_filled_rectangle_ptr (FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_filled_rectangle_str (FLGR_Data2D *dat, int x, int y, int size_x, int size_y, char *color)
FLGR_Ret flgr2d_draw_horizontal_line_ptr (FLGR_Data2D *dat, int x, int y, int size_x, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_horizontal_line_str (FLGR_Data2D *dat, int x, int y, int size_x, char *color)
FLGR_Ret flgr2d_draw_line_ptr (FLGR_Data2D *dat, int x1, int y1, int x2, int y2, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_line_str (FLGR_Data2D *dat, int x1, int y1, int x2, int y2, char *color)
FLGR_Ret flgr2d_draw_point_ptr (FLGR_Data2D *dat, int x, int y, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_point_str (FLGR_Data2D *dat, int x, int y, char *color)
FLGR_Ret flgr2d_draw_rectangle_ptr (FLGR_Data2D *dat, int x, int y, int size_x, int size_y, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_rectangle_str (FLGR_Data2D *dat, int x, int y, int size_x, int size_y, char *color)
FLGR_Ret flgr2d_draw_vertical_line_ptr (FLGR_Data2D *dat, int x, int y, int size_y, FLGR_Vector *color)
FLGR_Ret flgr2d_draw_vertical_line_str (FLGR_Data2D *dat, int x, int y, int size_y, char *color)


Function Documentation

FLGR_Ret flgr1d_draw_line_ptr ( FLGR_Data1D dat,
int  x,
int  length,
FLGR_Vector color 
)

Draw a line in a FLGR_Data1D

Parameters:
dat : a pointer to FLGR_Data2D
x : position
length : length
color : pointer to color (the type of variable pointed must fit with dat->type)
Returns:
FLGR_RET_OK, ...

Definition at line 126 of file flgrCoreGeometry.c.

FLGR_Ret flgr1d_draw_line_str ( FLGR_Data1D dat,
int  x,
int  length,
char *  color 
)

Draw a line in a FLGR_Data1D

Parameters:
dat : a pointer to FLGR_Data2D
x : position
length : length
color : color string
Returns:
FLGR_RET_OK, ...

Definition at line 152 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_circle_ptr ( FLGR_Data2D dat,
int  cx,
int  cy,
int  radius,
FLGR_Vector color 
)

Draw a circle

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
radius : an integer for circle radius
color : a pointer to color variable
Returns:
FLGR_RET_OK, ...

Definition at line 836 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_circle_str ( FLGR_Data2D dat,
int  cx,
int  cy,
int  radius,
char *  color 
)

Draw a circle

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
radius : an integer for circle radius
color : a string for column
Returns:
FLGR_RET_OK, ...

Definition at line 858 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_disc_ptr ( FLGR_Data2D dat,
int  cx,
int  cy,
int  radius,
FLGR_Vector color 
)

Draw a disc

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
radius : an integer for circle radius
color : a pointer to the color variable
Returns:
FLGR_RET_OK, ...

Definition at line 930 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_disc_str ( FLGR_Data2D dat,
int  cx,
int  cy,
int  radius,
char *  color 
)

Draw a disc

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
radius : an integer for circle radius
color : a string for color
Returns:
FLGR_RET_OK, ...

Definition at line 952 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_ellipse_ptr ( FLGR_Data2D dat,
int  cx,
int  cy,
int  a,
int  b,
FLGR_Vector color 
)

Draw an ellispse

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
a : an integer for major axis
b : an integer for minor axis
color : a pointer to FLGR_Vector color
Returns:
FLGR_RET_OK, ...

Definition at line 1030 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_ellipse_str ( FLGR_Data2D dat,
int  cx,
int  cy,
int  a,
int  b,
char *  color 
)

Draw a ellipse

Ellipse drawing using McIlroy's Algorithm

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
a : an integer for major axis
b : an integer for minor axis
color : a string for color
Returns:
FLGR_RET_OK, ...

Definition at line 1056 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_filled_ellipse_ptr ( FLGR_Data2D dat,
int  cx,
int  cy,
int  a,
int  b,
FLGR_Vector color 
)

Draw an ellispse

Ellipse drawing using McIlroy's Algorithm

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
a : an integer for major axis
b : an integer for minor axis
color : a pointer to FLGR_Vector color
Returns:
FLGR_RET_OK, ...

Definition at line 1151 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_filled_ellipse_str ( FLGR_Data2D dat,
int  cx,
int  cy,
int  a,
int  b,
char *  color 
)

Draw a filled_ellipse

Parameters:
dat : a pointer to FLGR_Data2D
cx : an integer for circle center row
cy : an integer for circle center column
a : an integer for major axis
b : an integer for minor axis
color : a string for color
Returns:
FLGR_RET_OK, ...

Definition at line 1174 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_filled_rectangle_ptr ( FLGR_Data2D dat,
int  x,
int  y,
int  size_x,
int  size_y,
FLGR_Vector color 
)

Draw a filled rectangle

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for upper left corner row
y : an integer for upper left corner column
size_x : an integer for rectangle size_x
size_y : an integer for rectangle size_y
color : a pointer to color variable
Returns:
FLGR_RET_OK, ...

Definition at line 709 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_filled_rectangle_str ( FLGR_Data2D dat,
int  x,
int  y,
int  size_x,
int  size_y,
char *  color 
)

Draw a filled rectangle

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for upper left corner row
y : an integer for upper left corner column
size_x : an integer for rectangle size_x
size_y : an integer for rectangle size_y
color : a string for color
Returns:
FLGR_RET_OK, ...

Definition at line 742 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_horizontal_line_ptr ( FLGR_Data2D dat,
int  x,
int  y,
int  size_x,
FLGR_Vector color 
)

Draw an horizontal line

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for row number
y : an integer for column number
size_x : an integer for line size_x
color : a pointer to color variable
Returns:
FLGR_RET_OK, ...

Definition at line 311 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_horizontal_line_str ( FLGR_Data2D dat,
int  x,
int  y,
int  size_x,
char *  color 
)

Draw an horizontal line

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for row number
y : an integer for column number
size_x : an integer for line size_x
color : a string for color
Returns:
FLGR_RET_OK, ...

Definition at line 338 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_line_ptr ( FLGR_Data2D dat,
int  x1,
int  y1,
int  x2,
int  y2,
FLGR_Vector color 
)

Draw a line

Parameters:
dat : a pointer to FLGR_Data2D
x1 : an integer for first point row
y1 : an integer for first point column
x2 : an integer for second point row
y2 : an integer for second point column
color : a pointer to the color variable
Returns:
FLGR_RET_OK, ...

Definition at line 540 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_line_str ( FLGR_Data2D dat,
int  x1,
int  y1,
int  x2,
int  y2,
char *  color 
)

Draw a line

Parameters:
dat : a pointer to FLGR_Data2D
x1 : an integer for first point row
y1 : an integer for first point column
x2 : an integer for second point row
y2 : an integer for second point column
color : a string for color
Returns:
FLGR_RET_OK, ...

Definition at line 563 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_point_ptr ( FLGR_Data2D dat,
int  x,
int  y,
FLGR_Vector color 
)

Draw a point

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for row number
y : an integer for column number
color : pointer to color (the type of variable pointed must fit with dat->type)
Returns:
FLGR_RET_OK, ...

Definition at line 237 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_point_str ( FLGR_Data2D dat,
int  x,
int  y,
char *  color 
)

Draw a point

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for row number
y : an integer for column number
color : string for color
Returns:
FLGR_RET_OK, ...

Definition at line 257 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_rectangle_ptr ( FLGR_Data2D dat,
int  x,
int  y,
int  size_x,
int  size_y,
FLGR_Vector color 
)

Draw a rectangle

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for upper left corner row
y : an integer for upper left corner column
size_x : an integer for rectangle size_x
size_y : an integer for rectangle size_y
color : a pointer to color variable
Returns:
FLGR_RET_OK, ...

Definition at line 619 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_rectangle_str ( FLGR_Data2D dat,
int  x,
int  y,
int  size_x,
int  size_y,
char *  color 
)

Draw a rectangle

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for upper left corner row
y : an integer for upper left corner column
size_x : an integer for rectangle size_x
size_y : an integer for rectangle size_y
color : a string for color
Returns:
FLGR_RET_OK, ...

Definition at line 654 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_vertical_line_ptr ( FLGR_Data2D dat,
int  x,
int  y,
int  size_y,
FLGR_Vector color 
)

Draw a vertical line

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for row number
y : an integer for column number
size_y : an integer for line size_y
color : a pointer to color variable
Returns:
FLGR_RET_OK, ...

Definition at line 391 of file flgrCoreGeometry.c.

FLGR_Ret flgr2d_draw_vertical_line_str ( FLGR_Data2D dat,
int  x,
int  y,
int  size_y,
char *  color 
)

Draw a vertical line

Parameters:
dat : a pointer to FLGR_Data2D
x : an integer for row number
y : an integer for column number
size_y : an integer for line size_x
color : a string for color variable
Returns:
FLGR_RET_OK, ...

Definition at line 419 of file flgrCoreGeometry.c.


SourceForge.net Logo
Generated on Tue Nov 11 19:17:28 2008 for Fulguro by doxygen 1.5.6