Adaptagrams
Public Member Functions | List of all members
cola::RectangularCluster Class Reference

Defines a rectangular cluster, either variable-sized with floating sides or a fixed size based on a particular rectangle. More...

#include <cluster.h>

Inheritance diagram for cola::RectangularCluster:
Inheritance graph
Collaboration diagram for cola::RectangularCluster:
Collaboration graph

Public Member Functions

 RectangularCluster ()
 A rectangular cluster of variable size that contains its children.
 
 RectangularCluster (unsigned rectIndex)
 A fixed size rectangular cluster based on a particular rectangle. More...
 
void setMargin (double margin)
 Sets the margin size for this cluster. More...
 
void setMargin (const cola::Box margin)
 Sets the margin box for this cluster. More...
 
cola::Box margin (void) const
 Returns the margin box for this cluster. More...
 
void setPadding (double padding)
 Sets the padding size for this cluster. More...
 
void setPadding (const cola::Box padding)
 Sets the padding box for this cluster. More...
 
cola::Box padding (void) const
 Returns the padding box for this cluster. More...
 
virtual void addChildNode (unsigned index)
 Mark a rectangle as being a child of this cluster. More...
 
- Public Member Functions inherited from cola::Cluster
void addChildCluster (Cluster *cluster)
 Mark a cluster as being a sub-cluster of this cluster. More...
 

Detailed Description

Defines a rectangular cluster, either variable-sized with floating sides or a fixed size based on a particular rectangle.

The chosen constructor decides the type and behaviour of the cluster.

Constructor & Destructor Documentation

◆ RectangularCluster()

cola::RectangularCluster::RectangularCluster ( unsigned  rectIndex)

A fixed size rectangular cluster based on a particular rectangle.

This rectangle might be constrained in the other ways like normal rectangles.

Parameters
[in]rectIndexThe index of the rectangle that this cluster represents.

References vpsc::XDIM, and vpsc::YDIM.

Member Function Documentation

◆ addChildNode()

void cola::RectangularCluster::addChildNode ( unsigned  index)
virtual

Mark a rectangle as being a child of this cluster.

Parameters
[in]indexThe index of the Rectangle in the rectangles vector.

Reimplemented from cola::Cluster.

References cola::Cluster::addChildNode().

Referenced by dialect::Graph::buildRootCluster().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ margin()

Box cola::RectangularCluster::margin ( void  ) const
virtual

Returns the margin box for this cluster.

Returns
The margin box for the cluster.

Reimplemented from cola::Cluster.

Referenced by setMargin().

Here is the caller graph for this function:

◆ padding()

Box cola::RectangularCluster::padding ( void  ) const
virtual

Returns the padding box for this cluster.

Returns
The padding box for the cluster.

Reimplemented from cola::Cluster.

Referenced by setPadding().

Here is the caller graph for this function:

◆ setMargin() [1/2]

void cola::RectangularCluster::setMargin ( double  margin)

Sets the margin size for this cluster.

This value represents the outer spacing that will be put between the cluster boundary on all sides and other clusters (plus their margin) and rectangles at the same level when non-overlap constraints are enabled.

Parameters
[in]marginThe size of the margin for this cluster.

References margin().

Here is the call graph for this function:

◆ setMargin() [2/2]

void cola::RectangularCluster::setMargin ( const cola::Box  margin)

Sets the margin box for this cluster.

This box represents the outer spacing that will be put between the cluster boundary and other clusters (plus their margin) and rectangles at the same level when non-overlap constraints are enabled.

Parameters
[in]marginThe box representing the margins for this cluster.

References margin().

Here is the call graph for this function:

◆ setPadding() [1/2]

void cola::RectangularCluster::setPadding ( double  padding)

Sets the padding size for this cluster.

This value represents the inner spacing that will be put between the cluster boundary and other child clusters (plus their margin) and child rectangles on all sides.

Parameters
[in]paddingThe size of the padding for this cluster.

References padding().

Here is the call graph for this function:

◆ setPadding() [2/2]

void cola::RectangularCluster::setPadding ( const cola::Box  padding)

Sets the padding box for this cluster.

This box represents the inner spacing that will be put between the cluster boundary and other child clusters (plus their margin) and child rectangles for each edge.

Parameters
[in]paddingThe Box representing padding values for this cluster.

References padding().

Here is the call graph for this function:

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