|
Open Graph Drawing Framework |
v. 2023.09 (Elderberry)
|
|
|
Go to the documentation of this file.
91 m_width.
init(H, 10.0);
92 m_height.
init(H, 10.0);
197 const double&
x(
node v) {
return m_repGA->
x(v); }
211 m_repGA->
x(m_repG->
nodeMap(v)) = pX;
215 const double&
y(
node v) {
return m_repGA->
y(v); }
220 m_repGA->
y(m_repG->
nodeMap(v)) = pY;
246 m_repGA->
width(v) = pWidth;
255 m_height[v] = pHeight;
264 m_repGA->
height(v) = pHeight;
272 void writeSVG(std::ostream &os,
int fontSize,
const string &fontColor)
const
275 m_repGA->writeSVG(os, fontSize, fontColor);
279 void writeSVG(
const char *fileName,
int fontSize,
const string &fontColor)
const
281 m_repGA->writeSVG(fileName, fontSize, fontColor);
Stores additional attributes of a hypergraph.
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.
virtual ~HypergraphAttributesES()
Destructor.
const double & y(hypernode v)
Returns the y-coordinate of hypernode v.
Includes declaration of graph class.
const double & height(hypernode v)
Returns the height of the bounding box of hypernode v.
Declaration of basic types for graphics.
void removeUnnecessaryBendsHV()
Removes unnecessary bend points in orthogonal segements.
HypernodeArray< double > m_y
Coordinate y of a hypernode.
EdgeStandardRep * m_repG
Edge standard representation reference.
const Graph & constGraph() const
Returns a reference to the representation graph.
Declaration of classes GenericPoint, GenericPolyline, GenericLine, GenericSegment,...
string & label(hypernode v)
Returns the label of hypernode v.
Stores additional attributes of edge standard representation of a hypergraph.
Polylines with PointType points.
double x(node v) const
Returns the x-coordinate of node v.
RegisteredArray for nodes and edges of a hypergraph.
const Hypergraph & constHypergraph() const
const double & x(node v)
Returns the x-coordinate of representation node v.
const double & width(node v)
Returns the width of a representation node v.
hypernode hypernodeMap(node v)
Returns the hypernode associated with the node (if any).
HypernodeArray< string > m_label
Label of a hypernode.
const Graph & repGraph() const
bool directed() const
Returns if the graph is directed.
void setWidth(node v, double pWidth)
Sets the the width of a representation node v.
EdgeStandardType
Enumeration class of possible edge standard representations.
const DRect boundingBox() const
Returns the bounding box of the hypergraph.
HypernodeArray< double > m_height
Height of a hypernodes bounding box.
HypernodeArray< double > m_width
Width of a hypernode bounding box.
Declaration and a partial implementation of a Hypergraph class partly based on the original classes f...
const DPolyline & bends(edge e) const
Returns the list of bend points of edge e.
double y(node v) const
Returns the y-coordinate of node v.
HypergraphAttributes(const Hypergraph &H)
Initializes new instance of class HypergraphAttributes.
const double & x(hypernode v)
Returns the x-coordinate of hypernode v.
Type
The type of hypernodes.
GraphAttributes * m_repGA
Wrapped graph attributes reference.
void setWidth(hypernode v, int pWidth)
Sets the the width of hypernode v.
Rectangles with real coordinates.
HypernodeElement::Type type(hypernode v)
Returns the type of representation node v.
const Hypergraph * m_hypergraph
Only points to an existing hypergraph.
const double & height(node v)
Returns the height of a representation node v.
void removeUnnecessaryBendsHV()
Removes unnecessary bend points in orthogonal segements.
Edge standard representation of hypergraphs.
virtual ~HypergraphAttributes()
Destructor.
@ star
for every hyperedge e = {v_1, ..., v_l} a single new dummy node v_e is introduced,...
node nodeMap(hypernode v)
Returns the node associated with the hypernode.
void setX(node v, double pX)
Sets the x-coordinate of a representation node v.
void setHeight(hypernode v, int pHeight)
Sets the the height of hypernode v.
A declaration of EdgeStandardRep class representing a graph representation of a hypergraph in the edg...
Data type for general directed graphs (adjacency list representation).
double height(node v) const
Returns the height of the bounding box of node v.
DPolyline & bends(edge e)
Returns the list of bend points of edge e.
void clearAllBends()
Removes all edge bends.
EdgeStandardType m_type
The type of of edge standard representation.
HypergraphAttributesES(const Hypergraph &pH, EdgeStandardType pType=EdgeStandardType::star)
Initializes new instance of class HypergraphAttributes.
const GraphAttributes & repGA() const
static const long edgeGraphics
Corresponds to edge attribute bends(edge).
Basic declarations, included by all source files.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
void setY(node v, double pY)
Sets the y-coordinate of a representation node v.
EdgeStandardType type() const
HypernodeArray< int > m_shape
Shape of a hypernode.
HypernodeArray< double > m_x
Coordinate x of a hypernod.e.
virtual DRect boundingBox() const
Returns the bounding box of the graph.
Class for the representation of edges.
void setHeight(hypernode v, double pHeight)
Sets the the height of hypernode v.
void setHeight(node v, double pHeight)
Sets the the height of a representation node v.
void setY(hypernode v, double pY)
Sets the x-coordinate of hypernode v.
void init(const Hypergraph *base=nullptr)
Reinitializes the array. Associates the array with the matching registry of base.
void setY(hypernode v, double pY)
Sets the y-coordinate of hypernode v.
HypernodeElement::Type type(node v)
Returns the type of representation node v.
HypergraphAttributesES()
Initializes new instance of class HypergraphAttributes.
Type type() const
Returns the type of hypernode.
void setWidth(hypernode v, double pWidth)
Sets the the width of hypernode v.
const double & width(hypernode v)
Returns the width of the bounding box of hypernode v.
const double & y(node v)
Returns the y-coordinate of a representation node v.
void setX(hypernode v, double pX)
Sets the x-coordinate of hypernode v.
void setX(hypernode v, double pX)
Sets the x-coordinate of hypernode v.
HypergraphAttributes()
Initializes new instance of class HypergraphAttributes.
Class for the representation of nodes.
static const long nodeGraphics
Corresponds to node attributes x(node), y(node), width(node), height(node), and shape(node).
int shape(hypernode v)
Returns the shape of hypernode v.
Class for the representation of hypernodes.
double width(node v) const
Returns the width of the bounding box of node v.