| 
    KiCad PCB EDA Suite
    
   | 
 
CN_EDGE represents a point-to-point connection, whether realized or unrealized (ie: tracks etc. More...
#include <connectivity_algo.h>
Public Member Functions | |
| CN_EDGE () | |
| CN_EDGE (const std::shared_ptr< CN_ANCHOR > &aSource, const std::shared_ptr< CN_ANCHOR > &aTarget, unsigned aWeight=0) | |
| bool | operator< (CN_EDGE aOther) const | 
| This sort operator provides a sort-by-weight for the ratsnest operation.   | |
| bool | StableSortCompare (const CN_EDGE &aOther) const | 
| Comparison operator for std::stable_sort.   | |
| std::shared_ptr< const CN_ANCHOR > | GetSourceNode () const | 
| std::shared_ptr< const CN_ANCHOR > | GetTargetNode () const | 
| void | SetSourceNode (const std::shared_ptr< const CN_ANCHOR > &aNode) | 
| void | SetTargetNode (const std::shared_ptr< const CN_ANCHOR > &aNode) | 
| void | RemoveInvalidRefs () | 
| void | SetWeight (unsigned weight) | 
| unsigned | GetWeight () const | 
| void | SetVisible (bool aVisible) | 
| bool | IsVisible () const | 
| const VECTOR2I | GetSourcePos () const | 
| const VECTOR2I | GetTargetPos () const | 
| unsigned | GetLength () const | 
Private Attributes | |
| std::shared_ptr< const CN_ANCHOR > | m_source | 
| std::shared_ptr< const CN_ANCHOR > | m_target | 
| unsigned | m_weight | 
| bool | m_visible | 
CN_EDGE represents a point-to-point connection, whether realized or unrealized (ie: tracks etc.
or a ratsnest line).
Definition at line 62 of file connectivity_algo.h.
      
  | 
  inline | 
Definition at line 65 of file connectivity_algo.h.
References m_visible, and m_weight.
Referenced by operator<(), and StableSortCompare().
      
  | 
  inline | 
Definition at line 148 of file connectivity_algo.h.
      
  | 
  inline | 
Definition at line 125 of file connectivity_algo.h.
References m_source.
Referenced by DIALOG_DRC::OnDRCItemSelected(), DRC_TEST_PROVIDER_CONNECTIVITY::Run(), and BOARD::UpdateRatsnestExclusions().
      
  | 
  inline | 
Definition at line 146 of file connectivity_algo.h.
References m_source.
Referenced by DIALOG_DRC::OnDRCItemSelected(), and StableSortCompare().
      
  | 
  inline | 
Definition at line 126 of file connectivity_algo.h.
References m_target.
Referenced by DIALOG_DRC::OnDRCItemSelected(), DRC_TEST_PROVIDER_CONNECTIVITY::Run(), and BOARD::UpdateRatsnestExclusions().
      
  | 
  inline | 
Definition at line 147 of file connectivity_algo.h.
References m_target.
Referenced by DIALOG_DRC::OnDRCItemSelected().
      
  | 
  inline | 
Definition at line 141 of file connectivity_algo.h.
References m_weight.
      
  | 
  inline | 
Definition at line 144 of file connectivity_algo.h.
References m_visible.
      
  | 
  inline | 
This sort operator provides a sort-by-weight for the ratsnest operation.
| aOther | the other edge to compare. | 
Definition at line 84 of file connectivity_algo.h.
      
  | 
  inline | 
Definition at line 131 of file connectivity_algo.h.
      
  | 
  inline | 
Definition at line 128 of file connectivity_algo.h.
References m_source.
      
  | 
  inline | 
Definition at line 129 of file connectivity_algo.h.
References m_target.
      
  | 
  inline | 
Definition at line 143 of file connectivity_algo.h.
References m_visible.
Referenced by BOARD::UpdateRatsnestExclusions().
      
  | 
  inline | 
Definition at line 140 of file connectivity_algo.h.
References m_weight.
      
  | 
  inline | 
Comparison operator for std::stable_sort.
| aOther | the other edge to compare. | 
Comparison order:
Definition at line 101 of file connectivity_algo.h.
References CN_EDGE(), GetSourcePos(), m_visible, m_weight, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by RN_NET::GetEdges().
      
  | 
  private | 
Definition at line 154 of file connectivity_algo.h.
Referenced by CN_EDGE(), GetLength(), GetSourceNode(), GetSourcePos(), RemoveInvalidRefs(), and SetSourceNode().
      
  | 
  private | 
Definition at line 155 of file connectivity_algo.h.
Referenced by CN_EDGE(), GetLength(), GetTargetNode(), GetTargetPos(), RemoveInvalidRefs(), and SetTargetNode().
      
  | 
  private | 
Definition at line 157 of file connectivity_algo.h.
Referenced by CN_EDGE(), CN_EDGE(), IsVisible(), SetVisible(), and StableSortCompare().
      
  | 
  private | 
Definition at line 156 of file connectivity_algo.h.
Referenced by CN_EDGE(), CN_EDGE(), GetWeight(), operator<(), SetWeight(), and StableSortCompare().