|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
71 static const long clusterGraphics;
87 static const long all;
117 long initAttributes = nodeGraphics | edgeGraphics | clusterGraphics);
127 void addClusterAttributes(
long attr);
133 void destroyClusterAttributes(
long attr);
148 void init(
long attr = 0);
151 void addAttributes(
long attr);
154 void destroyAttributes(
long attr);
243 return m_stroke[c].m_type;
252 return m_stroke[c].m_type;
261 return m_stroke[c].m_color;
270 return m_stroke[c].m_color;
279 return m_stroke[c].m_width;
288 return m_stroke[c].m_width;
297 return m_fill[c].m_pattern;
306 return m_fill[c].m_pattern;
315 return m_fill[c].m_color;
324 return m_fill[c].m_color;
333 return m_fill[c].m_bgColor;
342 return m_fill[c].m_bgColor;
369 return m_clusterTemplate[c];
378 return m_clusterTemplate[c];
399 virtual void scale(
double sx,
double sy,
bool scaleNodes =
true)
override;
406 virtual void translate(
double dx,
double dy)
override;
413 virtual void flipVertical(
const DRect& box)
override;
420 virtual void flipHorizontal(
const DRect& box)
override;
429 virtual DRect boundingBox()
const override;
432 void updateClusterPositions(
double boundaryDist = 1.0);
Colors represented as RGBA values.
The namespace for all OGDF objects.
Stores additional attributes of a graph (like layout information).
Declaration of class GraphAttributes which extends a Graph by additional attributes.
Includes declaration of graph class.
const Color & strokeColor(cluster c) const
Returns the stroke color of cluster c.
Declaration of basic types for graphics.
StrokeType
Line types of strokes.
const Color & fillBgColor(node v) const
Returns the background color of fill patterns for node v.
const Color & fillColor(node v) const
Returns the fill color of node v.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
FillPattern fillPattern(node v) const
Returns the fill pattern of node v.
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
double height(cluster c) const
Returns the height of cluster c.
StrokeType & strokeType(cluster c)
Returns the stroke type of cluster c.
string & label(cluster c)
Returns the label of cluster c.
double & y(cluster c)
Returns the y-position of cluster c's cage (lower left corner).
ClusterArray< double > m_y
Y-position of lower left corner.
RegisteredArray for labeling the clusters of a ClusterGraph.
double x(node v) const
Returns the x-coordinate of node v.
virtual void init(const Graph &G, long attr)
Initializes the graph attributes for graph G.
ClusterArray< double > m_width
Cluster width.
double & height(cluster c)
Returns the height of cluster c.
const NodeArray< double > & width() const
Returns a reference to the node array m_width.
const Color & fillBgColor(cluster c) const
Returns the background color of fill patterns for cluster c.
const ClusterGraph * m_pClusterGraph
Only points to existing graphs.
Color & fillBgColor(cluster c)
Returns the background color of fill patterns for cluster c.
const Color & fillColor(cluster c) const
Returns the fill color of cluster c.
string & templateCluster(cluster c)
Returns the template of cluster c.
ClusterArray< Stroke > m_stroke
Stroke (style of boundary)
const NodeArray< double > & height() const
Returns a reference to the node array m_height.
float & strokeWidth(cluster c)
Returns the stroke width of cluster c.
Representation of clusters in a clustered graph.
double y(node v) const
Returns the y-coordinate of node v.
Stores additional attributes of a clustered graph (like layout information).
double & width(cluster c)
Returns the width of cluster c.
double y(cluster c) const
Returns the y-position of cluster c's cage (lower left corner).
ClusterArray< double > m_height
Cluster height.
Rectangles with real coordinates.
const StrokeType & strokeType(cluster c) const
Returns the stroke type of cluster c.
virtual void scale(double sx, double sy, bool scaleNodes=true)
Scales the layout by (sx,sy).
const FillPattern & fillPattern(cluster c) const
Returns the fill pattern of cluster c.
static const long clusterTemplate
Corresponds to cluster attribute templateCluster(cluster).
const string & label(cluster c) const
Returns the label of cluster c.
ClusterArray< string > m_label
Cluster label.
ClusterArray< string > m_clusterTemplate
Name of cluster template.
virtual void flipVertical()
Flips the layout vertically within its bounding box.
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).
const ClusterGraph & constClusterGraph() const
Returns the associated cluster graph.
Basic declarations, included by all source files.
static const long clusterLabel
Corresponds to cluster attribute label(cluster).
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
static const long all
Enables all available flags.
const string & templateCluster(cluster c) const
Returns the template of cluster c.
const float & strokeWidth(cluster c) const
Returns the stroke width of cluster c.
ClusterArray< double > m_x
X-position of lower left corner.
Derived class of GraphObserver providing additional functionality to handle clustered graphs.
cluster clusterOf(node v) const
Returns the cluster to which a node belongs.
const Color & strokeColor(node v) const
Returns the stroke color of node v.
cluster clusterOf(node v)
Returns the parent cluster of node v.
virtual void flipHorizontal()
Flips the layout horizontally within its bounding box.
ClusterArray< Fill > m_fill
Fill (style of interior)
FillPattern & fillPattern(cluster c)
Returns the fill pattern of cluster c.
FillPattern
Fill patterns.
Representation of clustered graphs.
Class for the representation of nodes.
static const long clusterStyle
Corresponds to cluster attributes strokeColor(cluster), strokeType(cluster), strokeWidth(cluster),...
double & x(cluster c)
Returns the x-position of cluster c's cage (lower left corner).
Color & fillColor(cluster c)
Returns the fill color of cluster c.
Color & strokeColor(cluster c)
Returns the stroke color of cluster c.
StrokeType strokeType(node v) const
Returns the stroke type of node v.
const string & label(node v) const
Returns the label of node v.
float strokeWidth(node v) const
Returns the stroke width of node v.