Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
ogdf::HypergraphAttributes Class Reference

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.
 
 HypergraphAttributes (const Hypergraph &H)
 Initializes new instance of class HypergraphAttributes.
 
virtual ~HypergraphAttributes ()
 Destructor.
 
const HypergraphconstHypergraph () const
 
const doubleheight (hypernode v)
 Returns the height of the bounding box of hypernode v.
 
string & label (hypernode v)
 Returns the label of hypernode v.
 
void setHeight (hypernode v, int pHeight)
 Sets the the height of hypernode v.
 
void setWidth (hypernode v, int pWidth)
 Sets the the width of hypernode v.
 
void setX (hypernode v, double pX)
 Sets the x-coordinate of hypernode v.
 
void setY (hypernode v, double pY)
 Sets the y-coordinate of hypernode v.
 
int shape (hypernode v)
 Returns the shape of hypernode v.
 
const doublewidth (hypernode v)
 Returns the width of the bounding box of hypernode v.
 
const doublex (hypernode v)
 Returns the x-coordinate of hypernode v.
 
const doubley (hypernode v)
 Returns the y-coordinate of hypernode v.
 

Protected Attributes

HypernodeArray< doublem_height
 Height of a hypernodes bounding box.
 
const Hypergraphm_hypergraph
 Only points to an existing hypergraph.
 
HypernodeArray< string > m_label
 Label of a hypernode.
 
HypernodeArray< intm_shape
 Shape of a hypernode.
 
HypernodeArray< doublem_width
 Width of a hypernode bounding box.
 
HypernodeArray< doublem_x
 Coordinate x of a hypernod.e.
 
HypernodeArray< doublem_y
 Coordinate y of a hypernode.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ HypergraphAttributes() [1/2]

ogdf::HypergraphAttributes::HypergraphAttributes ( )
inline

Initializes new instance of class HypergraphAttributes.

Definition at line 79 of file HypergraphAttributes.h.

◆ HypergraphAttributes() [2/2]

ogdf::HypergraphAttributes::HypergraphAttributes ( const Hypergraph H)
inlineexplicit

Initializes new instance of class HypergraphAttributes.

Definition at line 82 of file HypergraphAttributes.h.

◆ ~HypergraphAttributes()

virtual ogdf::HypergraphAttributes::~HypergraphAttributes ( )
inlinevirtual

Destructor.

Definition at line 92 of file HypergraphAttributes.h.

Member Function Documentation

◆ constHypergraph()

const Hypergraph & ogdf::HypergraphAttributes::constHypergraph ( ) const
inline

Definition at line 94 of file HypergraphAttributes.h.

◆ height()

const double & ogdf::HypergraphAttributes::height ( hypernode  v)
inline

Returns the height of the bounding box of hypernode v.

Definition at line 115 of file HypergraphAttributes.h.

◆ label()

string & ogdf::HypergraphAttributes::label ( hypernode  v)
inline

Returns the label of hypernode v.

Definition at line 124 of file HypergraphAttributes.h.

◆ setHeight()

void ogdf::HypergraphAttributes::setHeight ( hypernode  v,
int  pHeight 
)
inline

Sets the the height of hypernode v.

Definition at line 118 of file HypergraphAttributes.h.

◆ setWidth()

void ogdf::HypergraphAttributes::setWidth ( hypernode  v,
int  pWidth 
)
inline

Sets the the width of hypernode v.

Definition at line 112 of file HypergraphAttributes.h.

◆ setX()

void ogdf::HypergraphAttributes::setX ( hypernode  v,
double  pX 
)
inline

Sets the x-coordinate of hypernode v.

Definition at line 100 of file HypergraphAttributes.h.

◆ setY()

void ogdf::HypergraphAttributes::setY ( hypernode  v,
double  pY 
)
inline

Sets the y-coordinate of hypernode v.

Definition at line 106 of file HypergraphAttributes.h.

◆ shape()

int ogdf::HypergraphAttributes::shape ( hypernode  v)
inline

Returns the shape of hypernode v.

Definition at line 121 of file HypergraphAttributes.h.

◆ width()

const double & ogdf::HypergraphAttributes::width ( hypernode  v)
inline

Returns the width of the bounding box of hypernode v.

Definition at line 109 of file HypergraphAttributes.h.

◆ x()

const double & ogdf::HypergraphAttributes::x ( hypernode  v)
inline

Returns the x-coordinate of hypernode v.

Definition at line 97 of file HypergraphAttributes.h.

◆ y()

const double & ogdf::HypergraphAttributes::y ( hypernode  v)
inline

Returns the y-coordinate of hypernode v.

Definition at line 103 of file HypergraphAttributes.h.

Member Data Documentation

◆ m_height

HypernodeArray<double> ogdf::HypergraphAttributes::m_height
protected

Height of a hypernodes bounding box.

Definition at line 72 of file HypergraphAttributes.h.

◆ m_hypergraph

const Hypergraph* ogdf::HypergraphAttributes::m_hypergraph
protected

Only points to an existing hypergraph.

Definition at line 57 of file HypergraphAttributes.h.

◆ m_label

HypernodeArray<string> ogdf::HypergraphAttributes::m_label
protected

Label of a hypernode.

Definition at line 60 of file HypergraphAttributes.h.

◆ m_shape

HypernodeArray<int> ogdf::HypergraphAttributes::m_shape
protected

Shape of a hypernode.

Definition at line 75 of file HypergraphAttributes.h.

◆ m_width

HypernodeArray<double> ogdf::HypergraphAttributes::m_width
protected

Width of a hypernode bounding box.

Definition at line 69 of file HypergraphAttributes.h.

◆ m_x

HypernodeArray<double> ogdf::HypergraphAttributes::m_x
protected

Coordinate x of a hypernod.e.

Definition at line 63 of file HypergraphAttributes.h.

◆ m_y

HypernodeArray<double> ogdf::HypergraphAttributes::m_y
protected

Coordinate y of a hypernode.

Definition at line 66 of file HypergraphAttributes.h.


The documentation for this class was generated from the following file: