|
degate 0.1.1
|
Represents an abstract shape. More...
#include <AbstractShape.h>

Public Member Functions | |
| virtual bool | in_shape (int x, int y, int max_distance=0) const =0 |
| Check in the Point with coordinates x and y is within the area of the shape. | |
| virtual bool | in_bounding_box (BoundingBox const &bbox) const =0 |
| Check if this shape is in the bounding box. | |
| virtual BoundingBox const & | get_bounding_box () const =0 |
| Get the bounding box. | |
| virtual void | shift_x (int delta_x)=0 |
| Shift the shape vertically. | |
| virtual void | shift_y (int delta_y)=0 |
| Shift the shape horizontally. | |
Represents an abstract shape.
Definition at line 33 of file AbstractShape.h.
| virtual BoundingBox const& degate::AbstractShape::get_bounding_box | ( | ) | const [pure virtual] |
Get the bounding box.
Implemented in degate::Annotation, degate::Circle, degate::EMarker, degate::Gate, degate::GatePort, degate::Line, degate::Rectangle, degate::Via, and degate::Wire.
| virtual bool degate::AbstractShape::in_bounding_box | ( | BoundingBox const & | bbox | ) | const [pure virtual] |
Check if this shape is in the bounding box.
Note: it is somhow unclear if this 'in' means complete within or if an intersection is sufficient.
Implemented in degate::Annotation, degate::Circle, degate::EMarker, degate::Gate, degate::GatePort, degate::Line, degate::Rectangle, degate::Via, and degate::Wire.
| virtual bool degate::AbstractShape::in_shape | ( | int | x, |
| int | y, | ||
| int | max_distance = 0 |
||
| ) | const [pure virtual] |
Check in the Point with coordinates x and y is within the area of the shape.
Implemented in degate::Annotation, degate::Circle, degate::EMarker, degate::Gate, degate::GatePort, degate::Line, degate::Rectangle, degate::Via, and degate::Wire.
| virtual void degate::AbstractShape::shift_x | ( | int | delta_x | ) | [pure virtual] |
Shift the shape vertically.
Note: If you store this shape in a QuadTree, you have to manage the changes in your QuadTree by yourself.
Implemented in degate::Annotation, degate::Circle, degate::EMarker, degate::Gate, degate::GatePort, degate::Line, degate::Rectangle, degate::Via, and degate::Wire.
| virtual void degate::AbstractShape::shift_y | ( | int | delta_y | ) | [pure virtual] |
Shift the shape horizontally.
Note: If you store this shape in a QuadTree, you have to manage the changes in your QuadTree by yourself.
Implemented in degate::Annotation, degate::Circle, degate::EMarker, degate::Gate, degate::GatePort, degate::Line, degate::Rectangle, degate::Via, and degate::Wire.
1.7.4