Stores additional attributes of edge standard representation of a hypergraph. More...
#include <ogdf/hypergraph/HypergraphAttributes.h>
Public Member Functions | |
HypergraphAttributesES () | |
Initializes new instance of class HypergraphAttributes. More... | |
HypergraphAttributesES (const Hypergraph &pH, EdgeStandardType pType=EdgeStandardType::star) | |
Initializes new instance of class HypergraphAttributes. More... | |
virtual | ~HypergraphAttributesES () |
Destructor. More... | |
DPolyline & | bends (edge e) |
Returns the list of bend points of edge e . More... | |
const DRect | boundingBox () const |
Returns the bounding box of the hypergraph. More... | |
void | clearAllBends () |
const double & | height (node v) |
Returns the height of a representation node v . More... | |
void | removeUnnecessaryBendsHV () |
Removes unnecessary bend points in orthogonal segements. More... | |
const GraphAttributes & | repGA () const |
const Graph & | repGraph () const |
void | setHeight (hypernode v, double pHeight) |
Sets the the height of hypernode v . More... | |
void | setHeight (node v, double pHeight) |
Sets the the height of a representation node v . More... | |
void | setWidth (hypernode v, double pWidth) |
Sets the the width of hypernode v . More... | |
void | setWidth (node v, double pWidth) |
Sets the the width of a representation node v . More... | |
void | setX (hypernode v, double pX) |
Sets the x-coordinate of hypernode v . More... | |
void | setX (node v, double pX) |
Sets the x-coordinate of a representation node v . More... | |
void | setY (hypernode v, double pY) |
Sets the x-coordinate of hypernode v . More... | |
void | setY (node v, double pY) |
Sets the y-coordinate of a representation node v . More... | |
EdgeStandardType | type () const |
HypernodeElement::Type | type (hypernode v) |
Returns the type of representation node v . More... | |
HypernodeElement::Type | type (node v) |
Returns the type of representation node v . More... | |
const double & | width (node v) |
Returns the width of a representation node v . More... | |
const double & | x (node v) |
Returns the x-coordinate of representation node v . More... | |
const double & | y (node v) |
Returns the y-coordinate of a representation node v . More... | |
Public Member Functions inherited from ogdf::HypergraphAttributes | |
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... | |
Private Attributes | |
EdgeStandardRep * | m_repG |
Edge standard representation reference. More... | |
GraphAttributes * | m_repGA |
Wrapped graph attributes reference. More... | |
EdgeStandardType | m_type |
The type of of edge standard representation. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ogdf::HypergraphAttributes | |
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 edge standard representation of a hypergraph.
Since edge standard representation is in fact just an ordinary graph, all its attributes are stored in wrapped instance of GraphAttributes class. Some nodes in the representation are yet specific since they represent hypernodes, attributes of these are driven explicitly from this class.
Superclass is declared as pure virtual to make dynamic casting possible.
Definition at line 145 of file HypergraphAttributes.h.
|
inline |
Initializes new instance of class HypergraphAttributes.
Definition at line 158 of file HypergraphAttributes.h.
|
inlineexplicit |
Initializes new instance of class HypergraphAttributes.
Definition at line 161 of file HypergraphAttributes.h.
|
inlinevirtual |
Destructor.
Definition at line 173 of file HypergraphAttributes.h.
Returns the list of bend points of edge e
.
Definition at line 269 of file HypergraphAttributes.h.
|
inline |
Returns the bounding box of the hypergraph.
Definition at line 291 of file HypergraphAttributes.h.
|
inline |
Definition at line 285 of file HypergraphAttributes.h.
|
inline |
Returns the height of a representation node v
.
Definition at line 251 of file HypergraphAttributes.h.
|
inline |
Removes unnecessary bend points in orthogonal segements.
Definition at line 288 of file HypergraphAttributes.h.
|
inline |
Definition at line 182 of file HypergraphAttributes.h.
|
inline |
Definition at line 180 of file HypergraphAttributes.h.
|
inline |
Sets the the height of hypernode v
.
Definition at line 254 of file HypergraphAttributes.h.
|
inline |
Sets the the height of a representation node v
.
Definition at line 260 of file HypergraphAttributes.h.
|
inline |
Sets the the width of hypernode v
.
Definition at line 236 of file HypergraphAttributes.h.
|
inline |
Sets the the width of a representation node v
.
Definition at line 242 of file HypergraphAttributes.h.
|
inline |
Sets the x-coordinate of hypernode v
.
Definition at line 209 of file HypergraphAttributes.h.
|
inline |
Sets the x-coordinate of a representation node v
.
Definition at line 200 of file HypergraphAttributes.h.
|
inline |
Sets the x-coordinate of hypernode v
.
Definition at line 218 of file HypergraphAttributes.h.
|
inline |
Sets the y-coordinate of a representation node v
.
Definition at line 224 of file HypergraphAttributes.h.
|
inline |
Definition at line 178 of file HypergraphAttributes.h.
|
inline |
Returns the type of representation node v
.
Definition at line 185 of file HypergraphAttributes.h.
|
inline |
Returns the type of representation node v
.
Definition at line 188 of file HypergraphAttributes.h.
|
inline |
Returns the width of a representation node v
.
Definition at line 233 of file HypergraphAttributes.h.
|
inline |
Returns the x-coordinate of representation node v
.
Definition at line 197 of file HypergraphAttributes.h.
|
inline |
Returns the y-coordinate of a representation node v
.
Definition at line 215 of file HypergraphAttributes.h.
|
private |
Edge standard representation reference.
Definition at line 151 of file HypergraphAttributes.h.
|
private |
Wrapped graph attributes reference.
Definition at line 148 of file HypergraphAttributes.h.
|
private |
The type of of edge standard representation.
Definition at line 154 of file HypergraphAttributes.h.