|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
56 : m_pH(&H), m_pACG(&ACG), m_x(H, 0), m_y(H, 0) { }
66 return (vOrig ==
nullptr) ? 0.0 : m_pACG->
width(vOrig);
72 return (vOrig ==
nullptr) ? 0.0 : m_pACG->
height(vOrig);
76 const double&
x(
node v)
const {
return m_x[v]; }
79 double&
x(
node v) {
return m_x[v]; }
82 const double&
y(
node v)
const {
return m_y[v]; }
85 double&
y(
node v) {
return m_y[v]; }
95 m_pACG->
x(cOrig) = left;
96 m_pACG->
y(cOrig) = top;
97 m_pACG->
width(cOrig) = right - left;
98 m_pACG->
height(cOrig) = bottom - top;
102 m_pACG->
x(cOrig) = left;
103 m_pACG->
width(cOrig) = right - left;
107 m_pACG->
y(cOrig) = top;
108 m_pACG->
height(cOrig) = bottom - top;
The namespace for all OGDF objects.
Includes declaration of graph class.
double getHeight(node v) const
Returns height of node v.
double height(cluster c) const
Returns the height of cluster c.
double & x(node v)
Returns reference to x-coord. of node v.
const double & y(node v) const
Returns reference to y-coord. of node v.
ClusterGraphAttributes * m_pACG
ClusterGraphCopyAttributes(const ExtendedNestingGraph &H, ClusterGraphAttributes &ACG)
Initializes instance of class ClusterGraphCopyAttributes.
const ClusterGraphAttributes & getClusterGraphAttributes() const
Returns corresponding ClusterGraphAttributes.
const ExtendedNestingGraph * m_pH
Representation of clusters in a clustered graph.
Stores additional attributes of a clustered graph (like layout information).
node origNode(node v) const
double y(cluster c) const
Returns the y-position of cluster c's cage (lower left corner).
double bottom(cluster cOrig) const
Returns coordinate of lower cluster boundary of original cluster cOrig.
Manages access on copy of an attributed clustered graph.
RegisteredArray for nodes, edges and adjEntries of a graph.
void setClusterTopBottom(cluster cOrig, double top, double bottom)
const double & x(node v) const
Returns reference to x-coord. of node v.
void setClusterRect(cluster cOrig, double left, double right, double top, double bottom)
Sets the position of the cluster rectangle for original cluster cOrig.
double width(cluster c) const
Returns the width of cluster c.
double x(cluster c) const
Returns the x-position of cluster c's cage (lower left corner).
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
~ClusterGraphCopyAttributes()
Declares ClusterGraphAttributes, an extension of class GraphAttributes, to store clustergraph layout ...
Derived class of GraphObserver providing additional functionality to handle clustered graphs.
double & y(node v)
Returns reference to y-coord. of node v.
double top(cluster cOrig) const
Returns coordinate of upper cluster boundary of original cluster cOrig.
double getWidth(node v) const
Returns width of node v.
Declaration of ExtendedNestingGraph.
Class for the representation of nodes.
void setClusterLeftRight(cluster cOrig, double left, double right)