Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

cntfill.c File Reference

#include <math.h>
#include "idcnt.h"
#include "idima.h"

Go to the source code of this file.

Functions

int _IdCntDrawPolygonOffset (PCONTOUR_USHORT contour, int ox, int oy, PPIMAGE_UCHAR image, int code, int closed, int greylevel)
 Draws a polygon or polyline (depending on the closed parameter) on an image out of a CNT_USHORT with a given origin.

int IdCntDrawPolyLine (PCONTOUR_USHORT contour, PPIMAGE_UCHAR image, int code, int greylevel)
 Draws a poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

int IdCntDrawPolyLineOffset (PCONTOUR_USHORT contour, int ox, int oy, PPIMAGE_UCHAR image, int code, int greylevel)
 Draws an "offseted" poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

int IdCntDrawPolygon (PCONTOUR_USHORT contour, PPIMAGE_UCHAR image, int code, int greylevel)
 Draws a polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.

int IdCntDrawPolygonOffset (PCONTOUR_USHORT contour, int ox, int oy, PPIMAGE_UCHAR image, int code, int greylevel)
 Draws an "offseted" polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.


Function Documentation

int _IdCntDrawPolygonOffset PCONTOUR_USHORT  contour,
int  ox,
int  oy,
PPIMAGE_UCHAR  image,
int  code,
int  closed,
int  greylevel
 

Draws a polygon or polyline (depending on the closed parameter) on an image out of a CNT_USHORT with a given origin.

Parameters:
contour Pointer to source contour.
ox Offset along the X axis.
oy Offset along the Y axis.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
closed 0 for a polyline, 1 for a polygone (closes the polyline by drawing an additional line starting at last point of contour and ending at first point)
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on success.

Definition at line 57 of file cntfill.c.

References code, IdCntGetX, IdCntGetY, IdCntUsedNbX, IdImaDrawLine(), and image.

Referenced by IdCntDrawPolygon(), IdCntDrawPolygonOffset(), IdCntDrawPolyLine(), and IdCntDrawPolyLineOffset().

int IdCntDrawPolygon PCONTOUR_USHORT  contour,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws a polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 148 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.

Referenced by IdCntFillPolygon().

int IdCntDrawPolygonOffset PCONTOUR_USHORT  contour,
int  ox,
int  oy,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws an "offseted" polygon (closed continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
ox Offset along the X axis.
oy Offset along the Y axis.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 170 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.

Referenced by IdCntFillPolygonXXX(), and IdCntSurfacePoly().

int IdCntDrawPolyLine PCONTOUR_USHORT  contour,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws a poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 103 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.

int IdCntDrawPolyLineOffset PCONTOUR_USHORT  contour,
int  ox,
int  oy,
PPIMAGE_UCHAR  image,
int  code,
int  greylevel
 

Draws an "offseted" poly line (continuous collection of linear segments) on an image out of a CNT_USHORT.

Parameters:
contour Pointer to source contour.
ox Offset along the X axis.
oy Offset along the Y axis.
image Pointer to destination image.
code Type of drawing : 0 means direct drawing, 1 means AND, 2 for OR and 3 for XOR (refer to IdImaDrawLine).
greylevel Grey level of the line to draw.
Returns:
0 on failure, 1 on sucess.

Definition at line 126 of file cntfill.c.

References _IdCntDrawPolygonOffset(), code, and image.


Generated on Wed Oct 19 09:28:35 2005 for SIMRI3D by doxygen 1.3.7