|
degate 0.1.1
|
Lineare primitive. More...
#include <LineSegmentExtraction.h>

Public Types | |
| enum | ORIENTATION { HORIZONTAL, VERTICAL } |
Public Member Functions | |
| LinearPrimitive (int from_x, int from_y, int to_x, int to_y) | |
| ORIENTATION | get_orientation () const |
| void | print () |
Private Attributes | |
| ORIENTATION | orientation |
Lineare primitive.
Definition at line 20 of file LineSegmentExtraction.h.
Definition at line 22 of file LineSegmentExtraction.h.
{ HORIZONTAL, VERTICAL };
| degate::LinearPrimitive::LinearPrimitive | ( | int | from_x, |
| int | from_y, | ||
| int | to_x, | ||
| int | to_y | ||
| ) | [inline] |
Definition at line 29 of file LineSegmentExtraction.h.
References HORIZONTAL, orientation, and VERTICAL.
| ORIENTATION degate::LinearPrimitive::get_orientation | ( | ) | const [inline] |
Definition at line 34 of file LineSegmentExtraction.h.
References orientation.
{ return orientation; }
| void degate::LinearPrimitive::print | ( | ) | [inline] |
Definition at line 36 of file LineSegmentExtraction.h.
References debug(), degate::Line::get_from_x(), degate::Line::get_from_y(), degate::Line::get_length(), degate::Line::get_to_x(), degate::Line::get_to_y(), and TM.
{
debug(TM, "%d,%d --- %d,%d : %d",
get_from_x(), get_from_y(), get_to_x(), get_to_y(), get_length());
}

Definition at line 25 of file LineSegmentExtraction.h.
Referenced by get_orientation(), and LinearPrimitive().
1.7.4