Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
Rectangle Class Reference

Functions to automatically generate constraints for the rectangular node overlap removal problem. More...

#include <generate-constraints.h>

Public Member Functions

 Rectangle (double x, double X, double y, double Y)
 
double getMaxX () const
 
double getMaxY () const
 
double getMinX () const
 
double getMinY () const
 
double getCentreX () const
 
double getCentreY () const
 
double width () const
 
double height () const
 
double overlapX (const Rectangle &r) const
 
double overlapY (const Rectangle &r) const
 

Friends

std::ostream & operator<< (std::ostream &os, const Rectangle &r)
 

Detailed Description

Authors: Tim Dwyer tgdwy.nosp@m.er@g.nosp@m.mail..nosp@m.com

Copyright (C) 2005 Authors

This version is released under the CPL (Common Public License) with the Graphviz distribution. A version is also available under the LGPL as part of the Adaptagrams project: https://github.com/mjwybrow/adaptagrams.
If you make improvements or bug fixes to this code it would be much appreciated if you could also contribute those changes back to the Adaptagrams repository.

Definition at line 22 of file generate-constraints.h.

Constructor & Destructor Documentation

◆ Rectangle()

Rectangle::Rectangle ( double  x,
double  X,
double  y,
double  Y 
)

Definition at line 35 of file generate-constraints.cpp.

References X, and Y.

Member Function Documentation

◆ getCentreX()

double Rectangle::getCentreX ( ) const
inline

Definition at line 30 of file generate-constraints.h.

References width().

Referenced by overlapX().

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

◆ getCentreY()

double Rectangle::getCentreY ( ) const
inline

Definition at line 31 of file generate-constraints.h.

References height().

Referenced by overlapY().

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

◆ getMaxX()

double Rectangle::getMaxX ( ) const
inline

Definition at line 26 of file generate-constraints.h.

Referenced by overlapX(), and width().

Here is the caller graph for this function:

◆ getMaxY()

double Rectangle::getMaxY ( ) const
inline

Definition at line 27 of file generate-constraints.h.

Referenced by height(), and overlapY().

Here is the caller graph for this function:

◆ getMinX()

double Rectangle::getMinX ( ) const
inline

Definition at line 28 of file generate-constraints.h.

◆ getMinY()

double Rectangle::getMinY ( ) const
inline

Definition at line 29 of file generate-constraints.h.

◆ height()

double Rectangle::height ( ) const
inline

Definition at line 33 of file generate-constraints.h.

References getMaxY().

Referenced by generateYConstraints(), and getCentreY().

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

◆ overlapX()

double Rectangle::overlapX ( const Rectangle r) const
inline

Definition at line 34 of file generate-constraints.h.

References getCentreX(), and getMaxX().

Here is the call graph for this function:

◆ overlapY()

double Rectangle::overlapY ( const Rectangle r) const
inline

Definition at line 41 of file generate-constraints.h.

References getCentreY(), and getMaxY().

Here is the call graph for this function:

◆ width()

double Rectangle::width ( ) const
inline

Definition at line 32 of file generate-constraints.h.

References getMaxX().

Referenced by generateXConstraints(), and getCentreX().

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

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const Rectangle r 
)
friend

Definition at line 31 of file generate-constraints.cpp.


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