Graphviz 13.0.0~dev.20241222.1117
|
Functions to automatically generate constraints for the rectangular node overlap removal problem. More...
#include <generate-constraints.h>
Public Member Functions | |
Rectangle (double x, double X, double y, double Y) | |
double | getMaxX () const |
double | getMaxY () const |
double | getMinX () const |
double | getMinY () const |
double | getCentreX () const |
double | getCentreY () const |
double | width () const |
double | height () const |
double | overlapX (const Rectangle &r) const |
double | overlapY (const Rectangle &r) const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const Rectangle &r) |
Authors: Tim Dwyer tgdwy.nosp@m.er@g.nosp@m.mail..nosp@m.com
Copyright (C) 2005 Authors
This version is released under the CPL (Common Public License) with the Graphviz distribution. A version is also available under the LGPL as part of the Adaptagrams project: https://github.com/mjwybrow/adaptagrams.
If you make improvements or bug fixes to this code it would be much appreciated if you could also contribute those changes back to the Adaptagrams repository.
Definition at line 22 of file generate-constraints.h.
Rectangle::Rectangle | ( | double | x, |
double | X, | ||
double | y, | ||
double | Y | ||
) |
Definition at line 35 of file generate-constraints.cpp.
|
inline |
Definition at line 30 of file generate-constraints.h.
References width().
Referenced by overlapX().
|
inline |
Definition at line 31 of file generate-constraints.h.
References height().
Referenced by overlapY().
|
inline |
Definition at line 26 of file generate-constraints.h.
Referenced by overlapX(), and width().
|
inline |
Definition at line 27 of file generate-constraints.h.
Referenced by height(), and overlapY().
|
inline |
Definition at line 28 of file generate-constraints.h.
|
inline |
Definition at line 29 of file generate-constraints.h.
|
inline |
Definition at line 33 of file generate-constraints.h.
References getMaxY().
Referenced by generateYConstraints(), and getCentreY().
|
inline |
Definition at line 34 of file generate-constraints.h.
References getCentreX(), and getMaxX().
|
inline |
Definition at line 41 of file generate-constraints.h.
References getCentreY(), and getMaxY().
|
inline |
Definition at line 32 of file generate-constraints.h.
References getMaxX().
Referenced by generateXConstraints(), and getCentreX().
|
friend |
Definition at line 31 of file generate-constraints.cpp.