Contact description (API) More...
Classes | |
class | AnchorHook |
Public Types | |
typedef Component | Inherit |
Public Types inherited from Hurricane::Component | |
typedef Go | Inherit |
Static Public Member Functions | |
static Contact * | create (Net *net, const Layer *layer, DbU::Unit x, DbU::Unit y, DbU::Unit width=0, DbU::Unit height=0) |
static Contact * | create (Component *anchor, const Layer *layer, DbU::Unit dx, DbU::Unit dy, DbU::Unit width=0, DbU::Unit height=0) |
Static Public Member Functions inherited from Hurricane::Component | |
static ComponentFilter | getIsUnderFilter (const Box &area) |
Static Public Member Functions inherited from Hurricane::Go | |
static bool | autoMaterializationIsDisabled () |
static void | enableAutoMaterialization () |
static void | disableAutoMaterialization () |
Contact description (API)
Contacts are objects representing contact points within a net. A contact may have a null size, be a single layer contact or a multi-layer contact (i.e. a VIA).
Useful for calling upon methods of the base class without knowing it.
|
static |
creates and returns a new contact belonging to the net <net>
, on the layer <layer>
, of size <width>
and <height>
and located at the absolute coordinates <x>
and <y>
.
|
static |
creates and returns a new contact on the layer <layer>
, of size <width>
and <height>
attached upon the component <anchor>
through an offset defined by <dx>
et <dy>
.
|
inline |
Returns: the hook through which the contact can be attached upon an anchor.
Component * Hurricane::Contact::getAnchor | ( | ) | const |
The anchor hook of the contact being a slave one, it may have a master hook representing the body of the anchor on which it is attached. This method returns the owner of this master hook if it exists else NULL (either the contact is an absolute one (its anchor hook is not inserted in a ring) or this ring doesn't contain a master hook (lowly probable, transitory)).
|
inline |
Returns: the relative abscissa of the contact.
|
inline |
Returns: the relative ordinate of the contact.
|
inline |
Returns: the contact width.
|
inline |
Returns: the contact half width.
|
inline |
Returns: the contact height.
|
inline |
Returns: the contact half height.
void Hurricane::Contact::setLayer | ( | const Layer * | layer | ) |
sets the contact layer.
void Hurricane::Contact::setWidth | ( | DbU::Unit | width | ) |
sets the contact width.
void Hurricane::Contact::setHeight | ( | DbU::Unit | height | ) |
sets the contact height.
sets both contact width and height.
void Hurricane::Contact::setX | ( | DbU::Unit | x | ) |
Allows to change the absolute abscissa of the contact (if it has a location relative to an other component, only relative position to this last is accordingly changed).
void Hurricane::Contact::setY | ( | DbU::Unit | y | ) |
Allows to change the absolute ordinate of the contact (if it has a location relative to an other component, only relative position to this last is accordingly changed).
void Hurricane::Contact::setPosition | ( | const Point & | position | ) |
Allows to change the absolute location of the contact (if it has a location relative to an other component, only relative position to this last is accordingly changed).
void Hurricane::Contact::setDx | ( | DbU::Unit | dx | ) |
Allows to change the horizontal offset of the contact.
void Hurricane::Contact::setDy | ( | DbU::Unit | dy | ) |
Allows to change the vertical offset of the contact.
Allows to change the offset of the contact.
Generated by doxygen 1.9.1 on Thu Aug 11 2022 | Return to top of page |
Hurricane VLSI Database | Copyright © 2000-2020 Bull S.A. All rights reserved |