Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

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

Manages access on copy of an attributed clustered graph. More...

#include <ogdf/cluster/ClusterGraphCopyAttributes.h>

Public Member Functions

 ClusterGraphCopyAttributes (const ExtendedNestingGraph &H, ClusterGraphAttributes &ACG)
 Initializes instance of class ClusterGraphCopyAttributes.
 
 ~ClusterGraphCopyAttributes ()
 
double bottom (cluster cOrig) const
 Returns coordinate of lower cluster boundary of original cluster cOrig.
 
const ClusterGraphAttributesgetClusterGraphAttributes () const
 Returns corresponding ClusterGraphAttributes.
 
double getHeight (node v) const
 Returns height of node v.
 
double getWidth (node v) const
 Returns width of node v.
 
void setClusterLeftRight (cluster cOrig, double left, double right)
 
void setClusterRect (cluster cOrig, double left, double right, double top, double bottom)
 Sets the position of the cluster rectangle for original cluster cOrig.
 
void setClusterTopBottom (cluster cOrig, double top, double bottom)
 
double top (cluster cOrig) const
 Returns coordinate of upper cluster boundary of original cluster cOrig.
 
void transform ()
 Sets attributes for the original graph in attributed graph.
 
doublex (node v)
 Returns reference to x-coord. of node v.
 
const doublex (node v) const
 Returns reference to x-coord. of node v.
 
doubley (node v)
 Returns reference to y-coord. of node v.
 
const doubley (node v) const
 Returns reference to y-coord. of node v.
 

Private Attributes

ClusterGraphAttributesm_pACG
 
const ExtendedNestingGraphm_pH
 
NodeArray< doublem_x
 
NodeArray< doublem_y
 

Detailed Description

Manages access on copy of an attributed clustered graph.

Definition at line 45 of file ClusterGraphCopyAttributes.h.

Constructor & Destructor Documentation

◆ ClusterGraphCopyAttributes()

ogdf::ClusterGraphCopyAttributes::ClusterGraphCopyAttributes ( const ExtendedNestingGraph H,
ClusterGraphAttributes ACG 
)
inline

Initializes instance of class ClusterGraphCopyAttributes.

Definition at line 52 of file ClusterGraphCopyAttributes.h.

◆ ~ClusterGraphCopyAttributes()

ogdf::ClusterGraphCopyAttributes::~ClusterGraphCopyAttributes ( )
inline

Definition at line 55 of file ClusterGraphCopyAttributes.h.

Member Function Documentation

◆ bottom()

double ogdf::ClusterGraphCopyAttributes::bottom ( cluster  cOrig) const
inline

Returns coordinate of lower cluster boundary of original cluster cOrig.

Definition at line 88 of file ClusterGraphCopyAttributes.h.

◆ getClusterGraphAttributes()

const ClusterGraphAttributes & ogdf::ClusterGraphCopyAttributes::getClusterGraphAttributes ( ) const
inline

Returns corresponding ClusterGraphAttributes.

Definition at line 58 of file ClusterGraphCopyAttributes.h.

◆ getHeight()

double ogdf::ClusterGraphCopyAttributes::getHeight ( node  v) const
inline

Returns height of node v.

Definition at line 67 of file ClusterGraphCopyAttributes.h.

◆ getWidth()

double ogdf::ClusterGraphCopyAttributes::getWidth ( node  v) const
inline

Returns width of node v.

Definition at line 61 of file ClusterGraphCopyAttributes.h.

◆ setClusterLeftRight()

void ogdf::ClusterGraphCopyAttributes::setClusterLeftRight ( cluster  cOrig,
double  left,
double  right 
)
inline

Definition at line 98 of file ClusterGraphCopyAttributes.h.

◆ setClusterRect()

void ogdf::ClusterGraphCopyAttributes::setClusterRect ( cluster  cOrig,
double  left,
double  right,
double  top,
double  bottom 
)
inline

Sets the position of the cluster rectangle for original cluster cOrig.

Definition at line 91 of file ClusterGraphCopyAttributes.h.

◆ setClusterTopBottom()

void ogdf::ClusterGraphCopyAttributes::setClusterTopBottom ( cluster  cOrig,
double  top,
double  bottom 
)
inline

Definition at line 103 of file ClusterGraphCopyAttributes.h.

◆ top()

double ogdf::ClusterGraphCopyAttributes::top ( cluster  cOrig) const
inline

Returns coordinate of upper cluster boundary of original cluster cOrig.

Definition at line 85 of file ClusterGraphCopyAttributes.h.

◆ transform()

void ogdf::ClusterGraphCopyAttributes::transform ( )

Sets attributes for the original graph in attributed graph.

◆ x() [1/2]

double & ogdf::ClusterGraphCopyAttributes::x ( node  v)
inline

Returns reference to x-coord. of node v.

Definition at line 76 of file ClusterGraphCopyAttributes.h.

◆ x() [2/2]

const double & ogdf::ClusterGraphCopyAttributes::x ( node  v) const
inline

Returns reference to x-coord. of node v.

Definition at line 73 of file ClusterGraphCopyAttributes.h.

◆ y() [1/2]

double & ogdf::ClusterGraphCopyAttributes::y ( node  v)
inline

Returns reference to y-coord. of node v.

Definition at line 82 of file ClusterGraphCopyAttributes.h.

◆ y() [2/2]

const double & ogdf::ClusterGraphCopyAttributes::y ( node  v) const
inline

Returns reference to y-coord. of node v.

Definition at line 79 of file ClusterGraphCopyAttributes.h.

Member Data Documentation

◆ m_pACG

ClusterGraphAttributes* ogdf::ClusterGraphCopyAttributes::m_pACG
private

Definition at line 47 of file ClusterGraphCopyAttributes.h.

◆ m_pH

const ExtendedNestingGraph* ogdf::ClusterGraphCopyAttributes::m_pH
private

Definition at line 46 of file ClusterGraphCopyAttributes.h.

◆ m_x

NodeArray<double> ogdf::ClusterGraphCopyAttributes::m_x
private

Definition at line 48 of file ClusterGraphCopyAttributes.h.

◆ m_y

NodeArray<double> ogdf::ClusterGraphCopyAttributes::m_y
private

Definition at line 48 of file ClusterGraphCopyAttributes.h.


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