Available Get Functions used by CAM Library. More...
Functions | |
int | camlib_GetLayerNames (char *value) |
Get all available layer names in a comma separated string. May be used after camlib_ActivateCell(). More... | |
int | camlib_GetLayerNamesPerStackup (char *value) |
Get all available layer names in a comma separated string. Layers are ordered per design Stackup. May be used after camlib_ActivateCell(). More... | |
int | camlib_GetFigure (int *nFigureType, int *nLayer, int *nPurpose, int *nCompositeLevel, char *net) |
Traverses all figures in the active cell. Starts from the first figure in the active cell, and keeps returning 1 until the last figure is reached; at that point -1 is returned. May be used after camlib_ActivateCell(). More... | |
int | camlib_GetFigureIndex (int n, int *nFigureType, int *nLayer, int *nPurpose, int *nCompositeLevel, char *net) |
Traverses all figures in the active cell using the index value. May be used after camlib_ActivateCell(). More... | |
int | camlib_GetFiguresCount () |
Returns the total number of figures in the active cell. More... | |
int | camlib_GetPolygon (int *nPointCount) |
Gets the point array for the current polygon figure. May be used after camlib_GetFigure(). More... | |
int | camlib_GetLine (int *nPointCount) |
Gets the point array for the current line figure. May be used after camlib_GetFigure(). More... | |
int | camlib_GetPath (int *nPointCount, float *fWidth, int *nPathType) |
Gets the point array, width, and path type for the current path figure. May be used after camlib_GetFigure(). More... | |
int | camlib_GetArc (float *sx, float *sy, float *ex, float *ey, float *cx, float *cy, int *dir, float *fWidth, int *nPathType) |
Gets the point array, width, and path type for the current arc figure. May be used after camlib_GetFigure(). Arcs are only processed by ACE if camlib_UseArcs is set. More... | |
int | camlib_GetText (char *textvalue, char *textstyle, float *x, float *y, float *height, float *angle, int *mirror, char *align) |
Gets the point array, width, and path type for the current arc figure. May be used after camlib_GetFigure . Arcs are only processed by ACE if camlib_UseArcs is set. More... | |
int | camlib_GetFlash (float *x, float *y, int *dcode) |
Gets the location and dcode of a flash figure. May be used after camlib_GetFigure. More... | |
int | camlib_GetInsert (char *insertname, float *x, float *y, float *angle, int *mirror, int *rows, int *cols, float *rowdist, float *coldist) |
Gets the insert name, insert location, angle, mirror, and array information for the insert figure. May be used after camlib_GetFigure. More... | |
int | camlib_GetTessFigure (int *nPolygonCount) |
Converts any figure (except for insert) into a series of tessellated polygons. May be used after camlib_GetFigure. More... | |
int | camlib_GetTessPoint (int nPolygon, int n, float *x, float *y) |
Used to extract the points used to construct a tessellated figure. May be used after camlib_GetTessFigure. More... | |
int | camlib_GetOutlineFigure (int *nPolygonCount) |
Converts any figure (except for insert) into a series of polygons (cut-lines may be used for holes). May be used after camlib_GetFigure. More... | |
int | camlib_GetOutlineCount (int *nPointCount) |
Gets the point array for the current outline polygon. May be used after camlib_GetOutlineFigure. More... | |
int | camlib_GetOutlinePoint (int n, float *x, float *y) |
Used to extract the points used to construct a outline polygon. May be used after camlib_GetOutlineCount. More... | |
int | camlib_GetPoint (int n, float *x, float *y) |
Used to extract the points from the current point array. May be used after camlib_GetPolygon camlib_GetLine camlib_GetPath. More... | |
int | camlib_GetDrill (float *x, float *y, float *diameter) |
Gets the Drill center point and diameter tool size. More... | |
int | camlib_GetCompositeLevel () |
Returns the composite value for the active figure. More... | |
int | camlib_GetLayerNumber () |
Returns the layer number for the active figure. More... | |
int | camlib_GetPurposeNumber () |
Returns the purpose number for the active figure. More... | |
int | camlib_GetFigureType () |
Returns the figure type for the active figure. See CAM_FigureType. More... | |
int | camlib_GetDcode () |
Returns the dcode number for the active figure. More... | |
int | camlib_GetNcToolNumber () |
Returns the NC tool number for the active figure. More... | |
int | camlib_GetShapeType () |
Calculates the type of shape for the active figure (i.e "Circle", "Rectangle", "Oblong", etc.). For all available shapes see, CAM_FlashType. More... | |
int | camlib_GetNcToolType () |
Returns the NC tool type for the active figure. See CAM_NCToolType. More... | |
int | camlib_GetNcToolCompensation () |
Returns the NC tool compensation index for the active figure. See CAM_CompensationSideType. More... | |
int | camlib_GetNet (char *net) |
Gets the Net name for the active figure. More... | |
int | camlib_GetCentroid (float *x, float *y, float *width, float *height) |
Gets the centroid, width, and height for the active figure. More... | |
int | camlib_GetBoundingBox (float *fL, float *fB, float *fR, float *fT) |
Gets the bounding box for the active figure. More... | |
Available Get Functions used by CAM Library.
int camlib_GetArc | ( | float * | sx, |
float * | sy, | ||
float * | ex, | ||
float * | ey, | ||
float * | cx, | ||
float * | cy, | ||
int * | dir, | ||
float * | fWidth, | ||
int * | nPathType | ||
) |
Gets the point array, width, and path type for the current arc figure. May be used after camlib_GetFigure(). Arcs are only processed by ACE if camlib_UseArcs is set.
sx | Start point of arc. (X value in millimeters) |
sy | Start point of arc. (Y value in millimeters) |
ex | End point of arc. (X value in millimeters) |
ey | End point of arc. (Y value in millimeters) |
cx | Center point of arc. (X value in millimeters) |
cy | Center point of arc. (Y value in millimeters) |
dir | Direction type of arc. See CAM_ArcDirectionType |
fWidth | Width of the path (in millimeters). |
nPathType | Path type for the arc. See available Path types: CAM_PathType |
int camlib_GetBoundingBox | ( | float * | fL, |
float * | fB, | ||
float * | fR, | ||
float * | fT | ||
) |
Gets the bounding box for the active figure.
fL | Left of active figure (X value in millimeters). |
fB | Bottom of active figure (Y value in millimeters). |
fR | Right of active figure (in millimeters). |
fT | Top of active figure (in millimeters). |
int camlib_GetCentroid | ( | float * | x, |
float * | y, | ||
float * | width, | ||
float * | height | ||
) |
Gets the centroid, width, and height for the active figure.
x | Center of active figure (X value in millimeters). |
y | Center of active figure (Y value in millimeters). |
width | Width of active figure (in millimeters). |
height | Height of active figure (in millimeters). |
int camlib_GetCompositeLevel | ( | ) |
Returns the composite value for the active figure.
int camlib_GetDcode | ( | ) |
Returns the dcode number for the active figure.
int camlib_GetDrill | ( | float * | x, |
float * | y, | ||
float * | diameter | ||
) |
Gets the Drill center point and diameter tool size.
x | Returns the point location (X value in millimeters). |
y | Returns the point location (Y value in millimeters). |
diameter | Point diameter of drill. |
int camlib_GetFigure | ( | int * | nFigureType, |
int * | nLayer, | ||
int * | nPurpose, | ||
int * | nCompositeLevel, | ||
char * | net | ||
) |
Traverses all figures in the active cell. Starts from the first figure in the active cell, and keeps returning 1 until the last figure is reached; at that point -1 is returned. May be used after camlib_ActivateCell().
nFigureType | Type of figure. |
nLayer | Layer number of figure. |
nPurpose | Purpose number of figure. (0 if not purpose number). |
nCompositeLevel | Composite level of figure. (0 if no composite level) |
net | Net name of the figure. (Empty string if not nets are present) |
int camlib_GetFigureIndex | ( | int | n, |
int * | nFigureType, | ||
int * | nLayer, | ||
int * | nPurpose, | ||
int * | nCompositeLevel, | ||
char * | net | ||
) |
Traverses all figures in the active cell using the index value. May be used after camlib_ActivateCell().
n | Index of figure in the active cell. |
nFigureType | Type of figure. |
nLayer | Layer number of figure. |
nPurpose | Purpose number of figure. (0 if not purpose number). |
nCompositeLevel | Composite level of figure. (0 if no composite level) |
net | Net name of the figure. (Empty string if not nets are present) |
int camlib_GetFiguresCount | ( | ) |
Returns the total number of figures in the active cell.
int camlib_GetFigureType | ( | ) |
Returns the figure type for the active figure. See CAM_FigureType.
int camlib_GetFlash | ( | float * | x, |
float * | y, | ||
int * | dcode | ||
) |
Gets the location and dcode of a flash figure. May be used after camlib_GetFigure.
x | Insert point of flash. (X value in millimeters) |
y | Insert point of flash. (Y value in millimeters) |
dcode | Dcode number used for flash. |
int camlib_GetInsert | ( | char * | insertname, |
float * | x, | ||
float * | y, | ||
float * | angle, | ||
int * | mirror, | ||
int * | rows, | ||
int * | cols, | ||
float * | rowdist, | ||
float * | coldist | ||
) |
Gets the insert name, insert location, angle, mirror, and array information for the insert figure. May be used after camlib_GetFigure.
insertname | Name of master cell referenced by this insert. |
x | Insert point. (X value in millimeters) |
y | Insert point. (Y value in millimeters) |
angle | Insert Angle. |
mirror | Mirror of Insert. See CAM_MirrorType |
rows | Number of rows (for arrayed inserts only). |
cols | Number of columns (for arrayed inserts only). |
rowdist | Vertical distance between rows (for arrayed inserts only). |
coldist | Horizontal distance between columns (for arrayed inserts only). |
int camlib_GetLayerNames | ( | char * | value | ) |
Get all available layer names in a comma separated string. May be used after camlib_ActivateCell().
value | Returns all layers in a comma separated string. |
int camlib_GetLayerNamesPerStackup | ( | char * | value | ) |
Get all available layer names in a comma separated string. Layers are ordered per design Stackup. May be used after camlib_ActivateCell().
value | Returns all layers per stackup, in a comma separated string. |
int camlib_GetLayerNumber | ( | ) |
Returns the layer number for the active figure.
int camlib_GetLine | ( | int * | nPointCount | ) |
Gets the point array for the current line figure. May be used after camlib_GetFigure().
nPointCount | Total number of points defined for the line. |
int camlib_GetNcToolCompensation | ( | ) |
Returns the NC tool compensation index for the active figure. See CAM_CompensationSideType.
int camlib_GetNcToolNumber | ( | ) |
Returns the NC tool number for the active figure.
int camlib_GetNcToolType | ( | ) |
Returns the NC tool type for the active figure. See CAM_NCToolType.
int camlib_GetNet | ( | char * | net | ) |
Gets the Net name for the active figure.
net | Returns the net name. |
int camlib_GetOutlineCount | ( | int * | nPointCount | ) |
Gets the point array for the current outline polygon. May be used after camlib_GetOutlineFigure.
nPointCount | Returns the number of points used in the current outline polygon. |
int camlib_GetOutlineFigure | ( | int * | nPolygonCount | ) |
Converts any figure (except for insert) into a series of polygons (cut-lines may be used for holes). May be used after camlib_GetFigure.
nPolygonCount | Returns the number of polygons used to outline the figure. |
int camlib_GetOutlinePoint | ( | int | n, |
float * | x, | ||
float * | y | ||
) |
Used to extract the points used to construct a outline polygon. May be used after camlib_GetOutlineCount.
n | Point count of current polygon. May not exceed nPointCount from camlib_GetOutlineCount |
x | Returns the point location (X value in millimeters). |
y | Returns the point location (Y value in millimeters). |
int camlib_GetPath | ( | int * | nPointCount, |
float * | fWidth, | ||
int * | nPathType | ||
) |
Gets the point array, width, and path type for the current path figure. May be used after camlib_GetFigure().
nPointCount | Total number of points defined for the path. |
fWidth | Width of the path (in millimeters). |
nPathType | Path type for the path. See available Path types: CAM_PathType |
int camlib_GetPoint | ( | int | n, |
float * | x, | ||
float * | y | ||
) |
Used to extract the points from the current point array. May be used after camlib_GetPolygon camlib_GetLine camlib_GetPath.
n | Point count of current point array. |
x | Returns the point location (X value in millimeters). |
y | Returns the point location (Y value in millimeters). |
int camlib_GetPolygon | ( | int * | nPointCount | ) |
Gets the point array for the current polygon figure. May be used after camlib_GetFigure().
nPointCount | Total number of points defined for the polygon. |
int camlib_GetPurposeNumber | ( | ) |
Returns the purpose number for the active figure.
int camlib_GetShapeType | ( | ) |
Calculates the type of shape for the active figure (i.e "Circle", "Rectangle", "Oblong", etc.). For all available shapes see, CAM_FlashType.
int camlib_GetTessFigure | ( | int * | nPolygonCount | ) |
Converts any figure (except for insert) into a series of tessellated polygons. May be used after camlib_GetFigure.
nPolygonCount | Insert point of flash. (X value in millimeters) |
int camlib_GetTessPoint | ( | int | nPolygon, |
int | n, | ||
float * | x, | ||
float * | y | ||
) |
Used to extract the points used to construct a tessellated figure. May be used after camlib_GetTessFigure.
nPolygon | # of polygon to process. May not exceed the nPolygonCount from camlib_GetTessFigure |
n | Point count of current polygon. May not exceed 3. A tessellated polygon is a triangle, so it will not exceed 3 points. |
x | The point location (X value in millimeters). |
y | The point location (Y value in millimeters). |
int camlib_GetText | ( | char * | textvalue, |
char * | textstyle, | ||
float * | x, | ||
float * | y, | ||
float * | height, | ||
float * | angle, | ||
int * | mirror, | ||
char * | align | ||
) |
Gets the point array, width, and path type for the current arc figure. May be used after camlib_GetFigure . Arcs are only processed by ACE if camlib_UseArcs is set.
textvalue | Start point of arc. |
textstyle | Start point of arc. |
x | Insert point of text. (X value in millimeters) |
y | Insert point of text. (Y value in millimeters) |
height | Height of text (in millimeters). |
angle | Angle of text. |
mirror | Mirror of text. See CAM_MirrorType |
align | Width of the path in millimeters. |