Macro Programming |
#include <cell.h>
Public Member Functions | |
element * | addBox (pointArray points, int layer) |
add box | |
element * | addBox (int x, int y, int b, int h, int layer) |
add box | |
element * | addCellref (cell *c, point pos) |
add cellref | |
element * | addCellrefArray (cell *c, point pos1, point pos2, int anzx, int anzy) |
add cellrefarray | |
element * | addCellrefArray (cell *c, pointArray array, int anzx, int anzy) |
add cellrefarray | |
element * | addPath (pointArray points, int layer) |
add path | |
element * | addPolygon (pointArray points, int layer) |
add polygon | |
element * | addText (int layer, point pos, string text) |
add text | |
double | areaSelect () |
area | |
double | areaSelected () |
area | |
void | boxDeselect () |
box deselect | |
void | boxSelectVisible () |
box select | |
void | cDeselect (rect select) |
cell deselect | |
void | closeToPolygon () |
close to polygon | |
void | closeToPolygonSelect () |
close to polygon | |
cell * | copy () |
copy | |
void | copySelect (point p=point(0, 0)) |
copy select | |
void | cSelect (rect select) |
cell select | |
void | cutSelect (point p1, point p2) |
cut | |
void | deleteElement (element *e) |
delete element | |
void | deleteRefs (cell *c) |
delete references | |
void | deleteSelect () |
delete select | |
bool | depend (cell *Cell) |
depend on | |
void | deselectAll () |
deselect all | |
void | deselectLayer (int layer) |
deselect layer | |
void | edgeRemoveSelect (int i) |
remove edges | |
void | fAllDeselect (rect select) |
form all deselect | |
void | fAllSelect (rect select) |
form all select | |
void | fDeselect (rect select) |
form deselect | |
void | flatAllSelect () |
flatten multilevel | |
void | flatSelect () |
flatten | |
void | fSelect (rect select) |
form select | |
void | group (cell *cell_) |
group | |
bool | identical (cell *Cell) |
identical | |
void | invertSelect () |
invert select | |
void | maximum (point *pos) |
maximum | |
void | maximumSelect (point *pos) |
maximum select | |
void | mergeSelect () |
merge | |
void | minimum (point *pos) |
minimum | |
void | minimumSelect (point *pos) |
minimum select | |
void | mirrorSelect (point p1, point p2) |
mirror select elements | |
void | move (point pos) |
move | |
void | moveSelect (point pos) |
move select | |
void | moveToLayerSelect (int layer) |
move to layer | |
elementList * | nearestElement (point p) |
nearest element | |
void | pathDeselect () |
path deselect | |
void | pathSelectVisible () |
path select | |
void | pDeselect (rect select) |
point deselect | |
void | polygonDeselect () |
polygon deselect | |
void | polygonSelectVisible () |
polygon select | |
void | pSelect (rect select) |
point select | |
void | relink (cell *Cellold, cell *Cellnew) |
relink | |
void | relinkSelect (cell *Cellnew) |
relink select | |
void | resize (double scale) |
resize | |
void | rotateSelect (double angle, point pos) |
rotate select elements | |
void | roundSelect (int i) |
round | |
void | scaleSelect (point p1, point p2, point p3) |
scale select elements | |
void | selectAll () |
select all | |
void | selectDatatype (int i) |
select datatype | |
void | selectLayer (int layer) |
select Layer | |
void | selectVisible () |
select visible | |
void | setCapSelect (int w) |
set cap | |
void | setDatatypeSelect (int i) |
set datatype select | |
void | setWidthSelect (int w) |
set width | |
void | sizeadjustSelect (int value) |
adjust size | |
void | swapLayer (int i, int k) |
swap layer | |
void | swapLayerSelect (int i, int k) |
swap layer select | |
void | textDeselect () |
text deselect | |
void | textSelectVisible () |
text select | |
void | toBox () |
to box | |
void | toBoxSelect () |
select to box | |
void | toCircleSelect () |
to circle select | |
void | toPolygon () |
to polygon | |
void | toPolygonSelect () |
select to polygon | |
Public Attributes | |
string | cellName |
cell name | |
elementList * | firstElement |
list of all element |
This class holds all information relevant for a single cell.
element* cell::addBox | ( | pointArray | points, | |
int | layer | |||
) |
add box
A box is added to this cell. The box is defined by an array of 5 points. The first and the last point have to be the same. If the box is rotated, a polygon is added instead of a box.
points | An array of 5 points. | |
layer | the layer number which will be used for the box. $return a pointer to the new element is returned. |
element* cell::addBox | ( | int | x, | |
int | y, | |||
int | b, | |||
int | h, | |||
int | layer | |||
) |
add box
A box is added to this cell. The box is defined by one of the corner points and the width and the height. For positive width and height the point will be the lower left corner of the box.
x | X value of the anchor point. | |
y | Y value of the anchor point. | |
b | width of the box. | |
h | widht of the box. | |
layer | the layer number which will be used for the box. |
add cellrefarray
A cellrefarray is added to this cell.
element* cell::addCellrefArray | ( | cell * | c, | |
pointArray | array, | |||
int | anzx, | |||
int | anzy | |||
) |
add cellrefarray
A cellrefarray is added to this cell.
element* cell::addPath | ( | pointArray | points, | |
int | layer | |||
) |
add path
A path is added to this cell.
element* cell::addPolygon | ( | pointArray | points, | |
int | layer | |||
) |
add polygon
A polygon is added to this cell.
double cell::areaSelect | ( | ) |
area
The area of all selected elements is calulated.
double cell::areaSelected | ( | ) |
area
The area of all elements is calculated.
void cell::boxDeselect | ( | ) |
box deselect
All boxes are deselected.
void cell::boxSelectVisible | ( | ) |
box select
All visible boxes are selected.
void cell::cDeselect | ( | rect | select | ) |
cell deselect
Deselects a cell, if the base point is in the rect.
void cell::closeToPolygon | ( | ) |
close to polygon
Closes path elements to a polygon.
void cell::closeToPolygonSelect | ( | ) |
close to polygon
Closes selected path elements to a polygon.
cell* cell::copy | ( | ) |
copy
copy select
Selected elements are copyed and move by p
p | movement |
void cell::cSelect | ( | rect | select | ) |
cell select
Selects a cell, if the base point is in the rect.
void cell::deleteElement | ( | element * | e | ) |
delete element
Delete the element e.
void cell::deleteRefs | ( | cell * | c | ) |
delete references
Cellrefs and cellrefarrays on the cell c are deleted.
*c | cell |
void cell::deleteSelect | ( | ) |
delete select
Selected element are deleted.
bool cell::depend | ( | cell * | Cell | ) |
depend on
void cell::deselectAll | ( | ) |
deselect all
All elements are deselected.
void cell::deselectLayer | ( | int | layer | ) |
deselect layer
All elements on layer are deselected.
void cell::edgeRemoveSelect | ( | int | i | ) |
remove edges
Edges smaler than i are removed.
void cell::fAllDeselect | ( | rect | select | ) |
form all deselect
Deselects a complete element, if all points are inside rect.
void cell::fAllSelect | ( | rect | select | ) |
form all select
Selects a complete element, if all points are inside rect.
void cell::fDeselect | ( | rect | select | ) |
form deselect
Deselects a complete element, if one point is inside rect.
void cell::flatAllSelect | ( | ) |
flatten multilevel
Selected cellrefs and cellrefarrays are flatten. If the the cellrefs contain more cellrefs, they are flatten as well.
void cell::flatSelect | ( | ) |
flatten
Selected cellrefs and cellrefarrays are flatten.
void cell::fSelect | ( | rect | select | ) |
form select
Selects a complete element, if one point is inside rect.
void cell::group | ( | cell * | cell_ | ) |
group
Selected elements are moved to cell_
bool cell::identical | ( | cell * | Cell | ) |
identical
void cell::invertSelect | ( | ) |
invert select
The selection of this cell is inverted.
void cell::maximum | ( | point * | pos | ) |
maximum
The maximum coordinates is returned, if bigger than pos.
void cell::maximumSelect | ( | point * | pos | ) |
maximum select
The maximum coordinates of all selected elements is returned, if less than pos.
void cell::mergeSelect | ( | ) |
merge
Selected elements on the same layer are merged.
void cell::minimum | ( | point * | pos | ) |
minimum
The minimum coordinates is returned, if less than pos.
void cell::minimumSelect | ( | point * | pos | ) |
minimum select
The minimum coordinates of all selected elements is returned, if bigger than pos..
mirror select elements
Selected elements are mirror at a Line made by p1 and p2. If p1==p2, it is mirrored at this single point.
void cell::move | ( | point | pos | ) |
move
All element are moved by pos
void cell::moveSelect | ( | point | pos | ) |
move select
Selected element are moved by pos
void cell::moveToLayerSelect | ( | int | layer | ) |
move to layer
Selected elements are moved to the layer
layer | new layer |
elementList* cell::nearestElement | ( | point | p | ) |
nearest element
void cell::pathDeselect | ( | ) |
path deselect
All path elements are deselected.
void cell::pathSelectVisible | ( | ) |
path select
All visible path elements are selected.
void cell::pDeselect | ( | rect | select | ) |
point deselect
Deselects point in the rect.
void cell::polygonDeselect | ( | ) |
polygon deselect
All polygons are deselected.
void cell::polygonSelectVisible | ( | ) |
polygon select
All visible polygons are selected.
void cell::pSelect | ( | rect | select | ) |
point select
Selects point in the rect.
relink
Cellreferences to Cellold are relink to Cellnew.
void cell::relinkSelect | ( | cell * | Cellnew | ) |
relink select
Selected cellref are relinked to Cellnew.
void cell::resize | ( | double | scale | ) |
resize
Multiply all element with the factor scale.
void cell::rotateSelect | ( | double | angle, | |
point | pos | |||
) |
rotate select elements
Selected elements are rotated.
angle | angle counterclock | |
pos | center of rotation |
void cell::roundSelect | ( | int | i | ) |
round
Selected elements/point are rounded to a multiply of i.
scale select elements
Selected elements are scaled. p2 is scale to p3.
p1 | orgin | |
p2 | old point | |
p3 | new point |
void cell::selectAll | ( | ) |
select all
All elements are selected.
void cell::selectDatatype | ( | int | i | ) |
select datatype
All element with the datatype i are selected.
void cell::selectLayer | ( | int | layer | ) |
select Layer
All elements on layer are selected.
void cell::selectVisible | ( | ) |
select visible
All visible elements are selected.
void cell::setCapSelect | ( | int | w | ) |
set cap
In selected path elements the caps is set to w. (0 for no cap, 1 for round caps, 2 for square caps)
void cell::setDatatypeSelect | ( | int | i | ) |
set datatype select
The datatype of selected element is set to i
void cell::setWidthSelect | ( | int | w | ) |
set width
In selected path and text elements the width is set to w.
void cell::sizeadjustSelect | ( | int | value | ) |
adjust size
Selected elements grow/shrink with value.
void cell::swapLayer | ( | int | i, | |
int | k | |||
) |
swap layer
This function swap the layers i and k in the this cell.
void cell::swapLayerSelect | ( | int | i, | |
int | k | |||
) |
swap layer select
This function swap the layers i and k of the selected elements in the this cell.
void cell::textDeselect | ( | ) |
text deselect
All text elements are deselected.
void cell::textSelectVisible | ( | ) |
text select
All visible text elements are selected.
void cell::toBox | ( | ) |
to box
Converts element to a box element if possible.
void cell::toBoxSelect | ( | ) |
select to box
Converts selected element to a box element if possible.
void cell::toCircleSelect | ( | ) |
to circle select
Converts selected element polygon and box element to a circle. The circle is fitted in all existing points of the element.
void cell::toPolygon | ( | ) |
to polygon
Converts element to a polygon if possible.
void cell::toPolygonSelect | ( | ) |
select to polygon
Converts selected element to a polygon if possible.
cell name
The name of this cell.
list of all element
This is a list of all elements in this cell.