KiCad PCB EDA Suite
Loading...
Searching...
No Matches
GraphNode Class Reference

#include <drc_creepage_utils.h>

Public Types

enum  TYPE {
  POINT = 0 , CIRCLE , ARC , SEGMENT ,
  VIRTUAL
}
 

Public Member Functions

 GraphNode (GraphNode::TYPE aType, CREEP_SHAPE *aParent, VECTOR2I aPos=VECTOR2I())
 
 ~GraphNode ()
 

Public Attributes

CREEP_SHAPEm_parent = nullptr
 
std::vector< std::shared_ptr< GraphConnection > > m_connections = {}
 
VECTOR2I m_pos = VECTOR2I( 0, 0 )
 
bool m_virtual = false
 
bool m_connectDirectly = true
 
int m_net = -1
 
GraphNode::TYPE m_type
 

Detailed Description

Definition at line 427 of file drc_creepage_utils.h.

Member Enumeration Documentation

◆ TYPE

Enumerator
POINT 
CIRCLE 
ARC 
SEGMENT 
VIRTUAL 

Definition at line 430 of file drc_creepage_utils.h.

Constructor & Destructor Documentation

◆ GraphNode()

GraphNode::GraphNode ( GraphNode::TYPE  aType,
CREEP_SHAPE aParent,
VECTOR2I  aPos = VECTOR2I() 
)
inline

Definition at line 440 of file drc_creepage_utils.h.

References m_connectDirectly, m_connections, m_parent, m_pos, and m_type.

◆ ~GraphNode()

GraphNode::~GraphNode ( )
inline

Definition at line 449 of file drc_creepage_utils.h.

Member Data Documentation

◆ m_connectDirectly

bool GraphNode::m_connectDirectly = true

Definition at line 457 of file drc_creepage_utils.h.

Referenced by GraphNode().

◆ m_connections

std::vector<std::shared_ptr<GraphConnection> > GraphNode::m_connections = {}

Definition at line 453 of file drc_creepage_utils.h.

Referenced by GraphNode(), and CreepageGraph::Solve().

◆ m_net

int GraphNode::m_net = -1

Definition at line 458 of file drc_creepage_utils.h.

◆ m_parent

CREEP_SHAPE* GraphNode::m_parent = nullptr

Definition at line 452 of file drc_creepage_utils.h.

Referenced by GraphNode().

◆ m_pos

VECTOR2I GraphNode::m_pos = VECTOR2I( 0, 0 )

Definition at line 454 of file drc_creepage_utils.h.

Referenced by GraphNode().

◆ m_type

GraphNode::TYPE GraphNode::m_type

Definition at line 460 of file drc_creepage_utils.h.

Referenced by GraphNode().

◆ m_virtual

bool GraphNode::m_virtual = false

Definition at line 456 of file drc_creepage_utils.h.


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