Adaptagrams
Public Member Functions | Public Attributes | List of all members
dialect::EdgeSegment Struct Reference

Represents an axis-aligned segment of an orthogonal connector route. More...

#include <planarise.h>

Collaboration diagram for dialect::EdgeSegment:
Collaboration graph

Public Member Functions

 EdgeSegment (Node_SP node1, Node_SP node2)
 Standard constructor. More...
 
void setNewClosingNode (Node_SP u)
 Substitute a new Node as the closing node of the segment. This is useful during our scan line process.
 
std::pair< Event *, Event * > getEvents (void)
 Generate the two Events, in order, representing the opening and closing of this segment.
 
void addSep (SepMatrix &m) const
 Update a SepMatrix with a constraint requiring this segment to remain aligned and at least its current length.
 

Public Attributes

vpsc::Dim orientation
 The orientation of the segment (horizontal or vertical):
 
double constCoord
 The value of the coordinate that does not change:
 
double lowerBound
 The lower bound on the coordinate that does change:
 
double upperBound
 The upper bound on the coordinate that does change:
 
Node_SP openingNode
 The node that sits at the end where the lower bound on the variable coordinate occurs:
 
Node_SP closingNode
 The node that sits at the end where the upper bound on the variable coordinate occurs:
 

Detailed Description

Represents an axis-aligned segment of an orthogonal connector route.

Constructor & Destructor Documentation

◆ EdgeSegment()

EdgeSegment::EdgeSegment ( Node_SP  node1,
Node_SP  node2 
)

Standard constructor.

Parameters
[in]node1a Node representing one endpoint of the segment
[in]node2a Node representing the other endpoint of the segment

References closingNode, constCoord, vpsc::HORIZONTAL, lowerBound, openingNode, orientation, upperBound, vpsc::VERTICAL, Avoid::Point::x, and Avoid::Point::y.


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