Stores additional attributes of a hypergraph. More...
#include <ogdf/hypergraph/HypergraphAttributes.h>
Inheritance diagram for ogdf::HypergraphAttributes:Public Member Functions | |
| HypergraphAttributes () | |
| Initializes new instance of class HypergraphAttributes. More... | |
| HypergraphAttributes (const Hypergraph &H) | |
| Initializes new instance of class HypergraphAttributes. More... | |
| virtual | ~HypergraphAttributes () |
| Destructor. More... | |
| const Hypergraph & | constHypergraph () const |
| const double & | height (hypernode v) |
Returns the height of the bounding box of hypernode v. More... | |
| string & | label (hypernode v) |
Returns the label of hypernode v. More... | |
| void | setHeight (hypernode v, int pHeight) |
Sets the the height of hypernode v. More... | |
| void | setWidth (hypernode v, int pWidth) |
Sets the the width of hypernode v. More... | |
| void | setX (hypernode v, double pX) |
Sets the x-coordinate of hypernode v. More... | |
| void | setY (hypernode v, double pY) |
Sets the y-coordinate of hypernode v. More... | |
| int | shape (hypernode v) |
Returns the shape of hypernode v. More... | |
| const double & | width (hypernode v) |
Returns the width of the bounding box of hypernode v. More... | |
| const double & | x (hypernode v) |
Returns the x-coordinate of hypernode v. More... | |
| const double & | y (hypernode v) |
Returns the y-coordinate of hypernode v. More... | |
Protected Attributes | |
| HypernodeArray< double > | m_height |
| Height of a hypernodes bounding box. More... | |
| const Hypergraph * | m_hypergraph |
| Only points to an existing hypergraph. More... | |
| HypernodeArray< string > | m_label |
| Label of a hypernode. More... | |
| HypernodeArray< int > | m_shape |
| Shape of a hypernode. More... | |
| HypernodeArray< double > | m_width |
| Width of a hypernode bounding box. More... | |
| HypernodeArray< double > | m_x |
| Coordinate x of a hypernod.e. More... | |
| HypernodeArray< double > | m_y |
| Coordinate y of a hypernode. More... | |
Stores additional attributes of a hypergraph.
Because of different representation standards of hypergraphs (edge or subset) there are two different classes for hypergraph attributes. The main reason is that some edge standard attributes are pointless in t subset standard representation and vice-versa. Common attributes, currently various hypernode attributes only, are pushed to the superclass HypergraphAttributes.
Similarly to GraphAttributes, attributes are simply stored in hypernode or hyperedge arrays.
Definition at line 54 of file HypergraphAttributes.h.
|
inline |
Initializes new instance of class HypergraphAttributes.
Definition at line 82 of file HypergraphAttributes.h.
|
inlineexplicit |
Initializes new instance of class HypergraphAttributes.
Definition at line 88 of file HypergraphAttributes.h.
|
inlinevirtual |
Destructor.
Definition at line 100 of file HypergraphAttributes.h.
|
inline |
Definition at line 104 of file HypergraphAttributes.h.
|
inline |
Returns the height of the bounding box of hypernode v.
Definition at line 145 of file HypergraphAttributes.h.
|
inline |
Returns the label of hypernode v.
Definition at line 163 of file HypergraphAttributes.h.
|
inline |
Sets the the height of hypernode v.
Definition at line 151 of file HypergraphAttributes.h.
|
inline |
Sets the the width of hypernode v.
Definition at line 139 of file HypergraphAttributes.h.
|
inline |
Sets the x-coordinate of hypernode v.
Definition at line 116 of file HypergraphAttributes.h.
|
inline |
Sets the y-coordinate of hypernode v.
Definition at line 127 of file HypergraphAttributes.h.
|
inline |
Returns the shape of hypernode v.
Definition at line 157 of file HypergraphAttributes.h.
|
inline |
Returns the width of the bounding box of hypernode v.
Definition at line 133 of file HypergraphAttributes.h.
|
inline |
Returns the x-coordinate of hypernode v.
Definition at line 110 of file HypergraphAttributes.h.
|
inline |
Returns the y-coordinate of hypernode v.
Definition at line 122 of file HypergraphAttributes.h.
|
protected |
Height of a hypernodes bounding box.
Definition at line 74 of file HypergraphAttributes.h.
|
protected |
Only points to an existing hypergraph.
Definition at line 59 of file HypergraphAttributes.h.
|
protected |
Label of a hypernode.
Definition at line 62 of file HypergraphAttributes.h.
|
protected |
Shape of a hypernode.
Definition at line 77 of file HypergraphAttributes.h.
|
protected |
Width of a hypernode bounding box.
Definition at line 71 of file HypergraphAttributes.h.
|
protected |
Coordinate x of a hypernod.e.
Definition at line 65 of file HypergraphAttributes.h.
|
protected |
Coordinate y of a hypernode.
Definition at line 68 of file HypergraphAttributes.h.