Open
Graph Drawing
Framework

 v.2010.10
 

Public Member Functions | Private Member Functions | Private Attributes | Friends

ogdf::IntersectionRectangle Class Reference

#include <ogdf/internal/energybased/IntersectionRectangle.h>

List of all members.

Public Member Functions

 IntersectionRectangle ()
 IntersectionRectangle (const DPoint &p1, const DPoint &p2)
 IntersectionRectangle (const IntersectionRectangle &dr)
 IntersectionRectangle (double x1, double y1, double x2, double y2)
 IntersectionRectangle (const DLine &dl)
 IntersectionRectangle (const DPoint &, double, double)
bool operator== (const IntersectionRectangle &dr) const
bool operator!= (const IntersectionRectangle &dr) const
IntersectionRectangleoperator= (const IntersectionRectangle &dr)
double width () const
double height () const
DPoint center () const
double area () const
const DPointp1 () const
const DPointp2 () const
bool inside (const DPoint &p) const
bool intersects (const IntersectionRectangle &) const
IntersectionRectangle intersection (const IntersectionRectangle &) const
double distance (const IntersectionRectangle &) const
void move (const DPoint &)

Private Member Functions

void init ()
void yInvert ()
void xInvert ()
DLine bottom () const
DLine top () const
DLine left () const
DLine right () const
double parallelDist (const DLine &, const DLine &) const
double pointDist (const DPoint &p1, const DPoint &p2) const

Private Attributes

DPoint m_p1
DPoint m_p2
double m_area
DPoint m_center

Friends

ostream & operator<< (ostream &, const IntersectionRectangle &)

Detailed Description

Definition at line 77 of file IntersectionRectangle.h.


Constructor & Destructor Documentation

ogdf::IntersectionRectangle::IntersectionRectangle (  )  [inline]

Definition at line 89 of file IntersectionRectangle.h.

ogdf::IntersectionRectangle::IntersectionRectangle ( const DPoint p1,
const DPoint p2 
) [inline]

Definition at line 91 of file IntersectionRectangle.h.

ogdf::IntersectionRectangle::IntersectionRectangle ( const IntersectionRectangle dr  )  [inline]

Definition at line 93 of file IntersectionRectangle.h.

ogdf::IntersectionRectangle::IntersectionRectangle ( double  x1,
double  y1,
double  x2,
double  y2 
) [inline]

Definition at line 96 of file IntersectionRectangle.h.

ogdf::IntersectionRectangle::IntersectionRectangle ( const DLine dl  )  [inline]

Definition at line 101 of file IntersectionRectangle.h.

ogdf::IntersectionRectangle::IntersectionRectangle ( const DPoint ,
double  ,
double   
)

Member Function Documentation

double ogdf::IntersectionRectangle::area (  )  const [inline]

Definition at line 137 of file IntersectionRectangle.h.

DLine ogdf::IntersectionRectangle::bottom (  )  const [inline, private]

Definition at line 171 of file IntersectionRectangle.h.

DPoint ogdf::IntersectionRectangle::center (  )  const [inline]

Definition at line 135 of file IntersectionRectangle.h.

double ogdf::IntersectionRectangle::distance ( const IntersectionRectangle  )  const
double ogdf::IntersectionRectangle::height (  )  const [inline]

Definition at line 131 of file IntersectionRectangle.h.

void ogdf::IntersectionRectangle::init (  )  [private]
bool ogdf::IntersectionRectangle::inside ( const DPoint p  )  const [inline]

Definition at line 144 of file IntersectionRectangle.h.

IntersectionRectangle ogdf::IntersectionRectangle::intersection ( const IntersectionRectangle  )  const
bool ogdf::IntersectionRectangle::intersects ( const IntersectionRectangle  )  const
DLine ogdf::IntersectionRectangle::left (  )  const [inline, private]

Definition at line 173 of file IntersectionRectangle.h.

void ogdf::IntersectionRectangle::move ( const DPoint  ) 
bool ogdf::IntersectionRectangle::operator!= ( const IntersectionRectangle dr  )  const [inline]

Definition at line 111 of file IntersectionRectangle.h.

IntersectionRectangle& ogdf::IntersectionRectangle::operator= ( const IntersectionRectangle dr  )  [inline]

Definition at line 116 of file IntersectionRectangle.h.

bool ogdf::IntersectionRectangle::operator== ( const IntersectionRectangle dr  )  const [inline]

Definition at line 107 of file IntersectionRectangle.h.

const DPoint& ogdf::IntersectionRectangle::p1 (  )  const [inline]

Definition at line 141 of file IntersectionRectangle.h.

const DPoint& ogdf::IntersectionRectangle::p2 (  )  const [inline]

Definition at line 142 of file IntersectionRectangle.h.

double ogdf::IntersectionRectangle::parallelDist ( const DLine ,
const DLine  
) const [private]
double ogdf::IntersectionRectangle::pointDist ( const DPoint p1,
const DPoint p2 
) const [inline, private]

Definition at line 178 of file IntersectionRectangle.h.

DLine ogdf::IntersectionRectangle::right (  )  const [inline, private]

Definition at line 174 of file IntersectionRectangle.h.

DLine ogdf::IntersectionRectangle::top (  )  const [inline, private]

Definition at line 172 of file IntersectionRectangle.h.

double ogdf::IntersectionRectangle::width (  )  const [inline]

Definition at line 127 of file IntersectionRectangle.h.

void ogdf::IntersectionRectangle::xInvert (  )  [inline, private]

Definition at line 169 of file IntersectionRectangle.h.

void ogdf::IntersectionRectangle::yInvert (  )  [inline, private]

Definition at line 167 of file IntersectionRectangle.h.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  ,
const IntersectionRectangle  
) [friend]

Member Data Documentation

Definition at line 83 of file IntersectionRectangle.h.

Definition at line 84 of file IntersectionRectangle.h.

Definition at line 81 of file IntersectionRectangle.h.

Definition at line 82 of file IntersectionRectangle.h.


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