Glade Reference
The mpp class is derived from a shape. This class is normally created in a cellView using the dbCreateMPP() function.
A mppLayer is a helper class to hold information about each layer that comprises a mpp. It has the following accessor fuctions:
class mppLayer { setWidth(int32_t w); int32_t width(void) const; setLength(int32_t l); int32_t length(void) const; setSpace(int32_t s); int32_t space(void) const; setBegExt(int32_t e); int32_t begExt(void) const; setEndExt(int32_t e); int32_t endExt(void) const; setLayer(int16_t l); int16_t layer(void) const; int32_t offset(void) const; setOffset(int32_t offset); }
Adds a layer to the mpp.
Gets the mpp_layer by index.
Gets the mppLayer’s as an array for the mpp.
Sets the mpp layers.
Get the number of mpp layers.
Set the number of mpp layers.
A mppRule is a heper struct to hold mpp rules.
struct mppRule { char * name; uint32_t numLayers; cdb::mppLayer * layers; int32_t maxWidth; }
Set the mpp rule.
Get the mpp_rule.
Get the bounding box of this mpp.
Set the bounding box of this mpp. Not useful and will throw an exception if called.
Returns the object type of this path as MPP.
Returns the object name of this path as "MPP".
Returns the number of points of the mpp.
Returns the point list of this mpp as an array or Points.
Bias this mpp by bias, snapping to the grid grid.
Scale this mpp by scale, snapping to the grid grid.
Get the distance of the nearest segment s of this mpp to the point p.
Get the distance of the nearest vertex s of this mpp to the point p;
Transform this mpp using trans.
Returns true if the Point p is contained in the mpp or on its edges.
Move this mpp by distance delta. If opt is true then the database is re-optimised for the new mpp position. If there are a lot of objects to move it makes sense to turn this off and instead use the cellView update() function after moving them all.
Copy this mpp to cellView cv, with offset delta.
Flatten this mpp into cellView cv with transformation trans.
Stretch segment seg of this mpp by delta.
Removes colinear points.
Converts this mpp to polygons.
Copyright © Peardrop Design 2024.