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. | |
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.
|
inline |
Definition at line 70 of file connectivity_algo.h.
|
inline |
Definition at line 112 of file connectivity_algo.h.
|
inline |
Definition at line 89 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 110 of file connectivity_algo.h.
References m_source.
|
inline |
Definition at line 90 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 111 of file connectivity_algo.h.
References m_target.
|
inline |
Definition at line 105 of file connectivity_algo.h.
References m_weight.
|
inline |
Definition at line 108 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.
References m_weight.
|
inline |
Definition at line 95 of file connectivity_algo.h.
|
inline |
Definition at line 92 of file connectivity_algo.h.
References m_source.
|
inline |
Definition at line 93 of file connectivity_algo.h.
References m_target.
|
inline |
Definition at line 107 of file connectivity_algo.h.
References m_visible.
Referenced by BOARD::UpdateRatsnestExclusions().
|
inline |
Definition at line 104 of file connectivity_algo.h.
References m_weight.
|
private |
Definition at line 118 of file connectivity_algo.h.
Referenced by GetLength(), GetSourceNode(), GetSourcePos(), RemoveInvalidRefs(), and SetSourceNode().
|
private |
Definition at line 119 of file connectivity_algo.h.
Referenced by GetLength(), GetTargetNode(), GetTargetPos(), RemoveInvalidRefs(), and SetTargetNode().
|
private |
Definition at line 121 of file connectivity_algo.h.
Referenced by IsVisible(), and SetVisible().
|
private |
Definition at line 120 of file connectivity_algo.h.
Referenced by GetWeight(), operator<(), and SetWeight().