Horizon
Public Member Functions | List of all members
PNS::DP_GATEWAY Class Reference

Class DP_GATEWAY. More...

#include <pns_diff_pair.h>

Public Member Functions

 DP_GATEWAY (const VECTOR2I &aAnchorP, const VECTOR2I &aAnchorN, bool aIsDiagonal, int aAllowedEntryAngles=DIRECTION_45::ANG_OBTUSE, int aPriority=0)
 
bool IsDiagonal () const
 Function IsDiagonal() More...
 
const VECTOR2IAnchorP () const
 
const VECTOR2IAnchorN () const
 
int AllowedAngles () const
 Function AllowedAngles() More...
 
int Priority () const
 Function Priority() More...
 
void SetPriority (int aPriority)
 
void SetEntryLines (const SHAPE_LINE_CHAIN &aEntryP, const SHAPE_LINE_CHAIN &aEntryN)
 
const SHAPE_LINE_CHAINEntryP () const
 
const SHAPE_LINE_CHAINEntryN () const
 
const DIFF_PAIR Entry () const
 
void Reverse ()
 
bool HasEntryLines () const
 

Detailed Description

Class DP_GATEWAY.

Defines a "gateway" for routing a differential pair - e.g. a pair of points (anchors) with certain orientation, spacing and (optionally) predefined entry paths. The routing algorithm connects such gateways with parallel lines, thus creating a difrerential pair.

Member Function Documentation

◆ AllowedAngles()

int PNS::DP_GATEWAY::AllowedAngles ( ) const
inline

Function AllowedAngles()

Returns
a mask of 45-degree entry directoins allowed for the gateway.

◆ IsDiagonal()

bool PNS::DP_GATEWAY::IsDiagonal ( ) const
inline

Function IsDiagonal()

Returns
true, if the gateway anchors lie on a diagonal line

◆ Priority()

int PNS::DP_GATEWAY::Priority ( ) const
inline

Function Priority()

Returns
priority/score value for gateway matching

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