20 #ifndef HURRICANE_VERTICAL
21 #define HURRICANE_VERTICAL
23 #include "hurricane/Segment.h"
24 #include "hurricane/Verticals.h"
83 public:
virtual DbU::Unit getX()
const {
return _x;};
84 public:
virtual Point getCenter()
const;
85 public:
virtual Box getBoundingBox()
const;
86 public:
virtual Box getBoundingBox(
const BasicLayer* basicLayer)
const;
87 public:
virtual DbU::Unit getSourceX()
const {
return getX();};
88 public:
virtual DbU::Unit getSourceY()
const;
89 public:
virtual DbU::Unit getTargetX()
const {
return getX();};
90 public:
virtual DbU::Unit getTargetY()
const;
91 public:
virtual DbU::Unit getLength()
const;
101 public:
void setDySource(
const DbU::Unit& dySource);
102 public:
void setDyTarget(
const DbU::Unit& dyTarget);
108 public:
virtual void _toJson(JsonWriter*)
const;
109 public:
static JsonObject* getJsonObject(
unsigned long flags);
110 public:
virtual string _getTypeName()
const {
return _TName(
"Vertical");};
111 public:
virtual string _getString()
const;
112 public:
virtual Record* _getRecord()
const;
117 class JsonVertical :
public JsonSegment {
120 public:
static void initialize();
121 public: JsonVertical(
unsigned long flags);
122 public:
virtual string getTypeName()
const;
123 public:
virtual JsonVertical* clone(
unsigned long)
const;
124 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
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
Vertical description (API)
Definition: Vertical.h:36
Segment Inherit
Definition: Vertical.h:42
void translate(const DbU::Unit &dx)
static Vertical * create(Net *net, const Layer *layer, const DbU::Unit &x, const DbU::Unit &width=0, const DbU::Unit &dySource=0, const DbU::Unit &dyTarget=0)
const DbU::Unit & getDySource() const
Definition: Vertical.h:92
static Vertical * create(Component *source, Component *target, const Layer *layer, const DbU::Unit &x, const DbU::Unit &width=0, const DbU::Unit &dySource=0, const DbU::Unit &dyTarget=0)
void setX(const DbU::Unit &x)
const DbU::Unit & getDyTarget() const
Definition: Vertical.h:93
The namespace dedicated to Hurricane.
Definition: Generalities.dox:5