Segment description (API) More...
Classes | |
class | SourceHook |
class | TargetHook |
Public Types | |
typedef Component | Inherit |
Public Types inherited from Hurricane::Component | |
typedef Go | Inherit |
Public Member Functions | |
Hook * | getSourceHook () |
Hook * | getTargetHook () |
Hook * | getOppositeHook (const Hook *hook) const |
Component * | getSource () const |
Component * | getTarget () const |
Components | getAnchors () const |
Component * | getOppositeAnchor (Component *anchor) const |
const DbU::Unit & | getWidth () const |
DbU::Unit | getHalfWidth () const |
virtual DbU::Unit | getSourceX () const =0 |
virtual DbU::Unit | getSourceY () const =0 |
virtual Point | getSourcePosition () const |
virtual DbU::Unit | getTargetX () const =0 |
virtual DbU::Unit | getTargetY () const =0 |
virtual Point | getTargetPosition () const |
virtual DbU::Unit | getLength () const =0 |
void | setLayer (const Layer *layer) |
void | setWidth (const DbU::Unit &width) |
void | invert () |
Public Member Functions inherited from Hurricane::Component | |
Net * | getNet () const |
Rubber * | getRubber () const |
Hook * | getBodyHook () |
virtual Point | getPosition () const |
virtual Box | getBoundingBox (const BasicLayer *) const =0 |
Components | getConnexComponents () const |
Components | getSlaveComponents () const |
Public Member Functions inherited from Hurricane::Go | |
bool | isMaterialized () const |
virtual void | translate (const DbU::Unit &dx, const DbU::Unit &dy)=0 |
Public Member Functions inherited from Hurricane::DBo | |
virtual void | destroy () |
Property * | getProperty (const Name &) const |
Properties | getProperties () const |
bool | hasProperty () const |
void | put (Property *) |
void | remove (Property *) |
void | removeProperty (const Name &) |
void | clearProperties () |
Additional Inherited Members | |
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 () |
Segment description (API)
Segments are abstract objects introducing the concept of link between two components.
They are implicitely oriented, but that doesn't represent any particular signification (for layout objects at least).
Useful for calling upon methods of the base class without knowing it.
|
inline |
Returns: the hook through which the segment origin can be anchored on a component.
|
inline |
Returns: the hook through which the segment extremity can be anchored on a component.
Returns: the target hook of the segment if <hook>
is the source hook of the segment.
Returns: the source hook of the segment if <hook>
is the target hook of the segment.
Returns: NULL otherwise.
Component * Hurricane::Segment::getSource | ( | ) | const |
The source hook being a slave one, it may have an associated master hook representing the body of the component on wich the segment origin is anchored.
So, this method returns the component owner of this master hook, if any, else a NULL pointer.
Component * Hurricane::Segment::getTarget | ( | ) | const |
The target hook being a slave one, it may have an associated master hook representing the body of the component on wich the segment extremity is anchored.
So, this method returns the component owner of this master hook, if any, else a NULL pointer.
Components Hurricane::Segment::getAnchors | ( | ) | const |
Returns: the collection of anchors. This collection is composed by the source (if non NULL) and the target (if non NULL) of the segment (may be empty if all extremities of the segment aren't anchored).
Returns: the target anchor of the segment if <anchor>
is the source anchor of the segment (may be NULL)
Returns: the source anchor of the segment if <anchor>
is the target anchor of the segment (may be NULL)
Returns: NULL otherwise.
|
inline |
Returns: the segment width.
|
inline |
Returns: the segment half width.
|
pure virtual |
Returns: the abscissa of the segment origin.
|
pure virtual |
Returns: the ordinate of the segment origin.
|
virtual |
Returns: the point location of the segment origin.
|
pure virtual |
Returns: the abscissa of the segment extremity.
|
pure virtual |
Returns: the ordinate of the segment extremity.
|
virtual |
Returns: the point location of the segment extremity.
|
pure virtual |
Returns: the segment length.
void Hurricane::Segment::setLayer | ( | const Layer * | layer | ) |
sets the segment layer.
void Hurricane::Segment::setWidth | ( | const DbU::Unit & | width | ) |
sets the segment width.
void Hurricane::Segment::invert | ( | ) |
invert the segment. The source and target of the segment are permutted.
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 |