20 #ifndef HURRICANE_SEGMENT
21 #define HURRICANE_SEGMENT
23 #include "hurricane/Component.h"
24 #include "hurricane/Segments.h"
50 public:
virtual Component* getComponent()
const;
52 public:
virtual bool isMaster()
const {
return false;};
54 public:
virtual string _getTypeName()
const {
return "Segment::SourceHook"; };
55 public:
virtual string _getString()
const;
68 public:
virtual Component* getComponent()
const;
70 public:
virtual bool isMaster()
const {
return false;};
72 public:
virtual string _getTypeName()
const {
return "Segment::TargetHook"; };
73 public:
virtual string _getString()
const;
82 private:
const Layer* _layer;
98 public:
virtual Hooks getHooks()
const;
99 public:
virtual DbU::Unit getX()
const {
return 0;};
100 public:
virtual DbU::Unit getY()
const {
return 0;};
101 public:
virtual const Layer* getLayer()
const {
return _layer;};
129 protected:
virtual void _preDestroy();
131 public:
virtual void _toJson(JsonWriter*)
const;
132 public:
virtual string _getString()
const;
133 public:
virtual Record* _getRecord()
const;
142 class JsonSegment :
public JsonComponent {
145 public: JsonSegment(
unsigned long flags);
Component description (API)
Definition: Component.h:42
std::int64_t Unit
Definition: DbU.h:67
Generic Collection auto-pointer.
Definition: Collection.h:235
Hook description (API)
Definition: Hook.h:34
Layer description (API)
Definition: Layer.h:52
Net description (API)
Definition: Net.h:48
Point description (API)
Definition: Point.h:32
Segment description (API)
Definition: Segment.h:33
virtual DbU::Unit getSourceX() const =0
Hook * getTargetHook()
Definition: Segment.h:103
Component * getTarget() const
virtual DbU::Unit getTargetY() const =0
Component Inherit
Definition: Segment.h:39
const DbU::Unit & getWidth() const
Definition: Segment.h:109
virtual Point getSourcePosition() const
DbU::Unit getHalfWidth() const
Definition: Segment.h:110
virtual DbU::Unit getLength() const =0
Component * getOppositeAnchor(Component *anchor) const
Hook * getSourceHook()
Definition: Segment.h:102
Component * getSource() const
virtual DbU::Unit getTargetX() const =0
virtual DbU::Unit getSourceY() const =0
Components getAnchors() const
void setLayer(const Layer *layer)
void setWidth(const DbU::Unit &width)
virtual Point getTargetPosition() const
Hook * getOppositeHook(const Hook *hook) const
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5