degate  0.1.2
Public Types | Public Member Functions | Private Attributes
degate::LinearPrimitive Class Reference

Lineare primitive. More...

#include <LineSegmentExtraction.h>

Inheritance diagram for degate::LinearPrimitive:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Lineare primitive.

Definition at line 20 of file LineSegmentExtraction.h.


Member Enumeration Documentation

Enumerator:
HORIZONTAL 
VERTICAL 

Definition at line 22 of file LineSegmentExtraction.h.


Constructor & Destructor Documentation

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.

                                                                :
      Line(from_x, from_y, to_x, to_y, 1) {
      orientation = abs(from_x - to_x) > abs(from_y - to_y) ? HORIZONTAL : VERTICAL;
    }

Member Function Documentation

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());
    }

Here is the call graph for this function:


Member Data Documentation

Definition at line 25 of file LineSegmentExtraction.h.

Referenced by get_orientation(), and LinearPrimitive().


The documentation for this class was generated from the following file: