|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
50 class GraphAttributes;
56 namespace davidson_harel {
79 if (size <= m_CellSize / 2.0 || size >=
m_CellSize * 2.0) {
101 return IPoint(
int(x),
int(y));
114 if (d - floor(d) > 0) {
117 if (d < std::numeric_limits<int>::min() || d > std::numeric_limits<int>::max()) {
138 template<
typename TPo
int,
typename TNum>
139 bool crossesCell(TPoint& A, TPoint& B, TNum xlow, TNum xhigh, TNum ylow, TNum yhigh,
140 const IPoint& CellAdr)
const {
142 if (
A.m_x == B.m_x) {
148 double m = (B.m_y -
A.m_y) / (B.m_x -
A.m_x);
149 double c =
A.m_y -
A.m_x * m;
150 double y1 = m * xlow + c;
151 double y2 = m * xhigh + c;
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
Includes declaration of graph class.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
Indexed 2-dimensional arrays using hashing for element access.
Singly linked lists (maintaining the length of the list).
double height() const
Returns the height of the rectangle.
Rectangles with real coordinates.
GenericPoint< int > IPoint
Representing a two-dimensional point with integer coordinates.
Data type for general directed graphs (adjacency list representation).
Basic declarations, included by all source files.
Class for the representation of edges.
Declaration of doubly linked lists and iterators.
double width() const
Returns the width of the rectangle.
Declaration of class HashArray2D.
Class for the representation of nodes.
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.