20 #ifndef HURRICANE_HORIZONTAL
21 #define HURRICANE_HORIZONTAL
23 #include "hurricane/Segment.h"
24 #include "hurricane/Horizontals.h"
82 public:
virtual DbU::Unit getY()
const {
return _y;};
83 public:
virtual Point getCenter()
const;
84 public:
virtual Box getBoundingBox()
const;
85 public:
virtual Box getBoundingBox(
const BasicLayer* basicLayer)
const;
86 public:
virtual DbU::Unit getSourceX()
const;
87 public:
virtual DbU::Unit getSourceY()
const {
return getY();};
88 public:
virtual DbU::Unit getTargetX()
const;
89 public:
virtual DbU::Unit getTargetY()
const {
return getY();};
90 public:
virtual DbU::Unit getLength()
const;
100 public:
void setDxSource(
const DbU::Unit& dxSource);
101 public:
void setDxTarget(
const DbU::Unit& dxSource);
107 public:
virtual void _toJson(JsonWriter*)
const;
108 public:
static JsonObject* getJsonObject(
unsigned long flags);
109 public:
virtual string _getTypeName()
const {
return _TName(
"Horizontal");};
110 public:
virtual string _getString()
const;
111 public:
virtual Record* _getRecord()
const;
116 class JsonHorizontal :
public JsonSegment {
119 public:
static void initialize();
120 public: JsonHorizontal(
unsigned long flags);
121 public:
virtual string getTypeName()
const;
122 public:
virtual JsonHorizontal* clone(
unsigned long)
const;
123 public:
virtual void toData(JsonStack&);
BasicLayer description (API)
Definition: BasicLayer.h:44
Box description (API)
Definition: Box.h:31
Component description (API)
Definition: Component.h:42
std::int64_t Unit
Definition: DbU.h:67
Horizontal description (API)
Definition: Horizontal.h:36
static Horizontal * create(Net *net, const Layer *layer, const DbU::Unit &y, const DbU::Unit &width=0, const DbU::Unit &dxSource=0, const DbU::Unit &dxTarget=0)
void translate(const DbU::Unit &dy)
Segment Inherit
Definition: Horizontal.h:42
void setY(const DbU::Unit &y)
const DbU::Unit & getDxSource() const
Definition: Horizontal.h:91
const DbU::Unit & getDxTarget() const
Definition: Horizontal.h:92
static Horizontal * create(Component *source, Component *target, const Layer *layer, const DbU::Unit &y, const DbU::Unit &width=0, const DbU::Unit &dxSource=0, const DbU::Unit &dxTarget=0)
Support for JSON export.
Definition: JsonObject.h:83
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
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5