KiCad PCB EDA Suite
|
#include <pns_item.h>
Public Member Functions | |
OWNABLE_ITEM () | |
const ITEM_OWNER * | Owner () const |
Return the owner of this item, or NULL if there's none. | |
void | SetOwner (const ITEM_OWNER *aOwner) |
Set the node that owns this item. | |
bool | BelongsTo (const ITEM_OWNER *aNode) const |
Protected Attributes | |
const ITEM_OWNER * | m_owner |
Definition at line 61 of file pns_item.h.
|
inline |
Definition at line 64 of file pns_item.h.
|
inline |
Definition at line 81 of file pns_item.h.
References m_owner.
Referenced by PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::NODE::doRemove(), PNS::NODE::Remove(), PNS::LINE::RemoveVia(), PNS::SOLID::SetHole(), PNS::VIA::SetHole(), PNS::LINE::~LINE(), PNS::NODE::~NODE(), and PNS::VIA::~VIA().
|
inline |
Return the owner of this item, or NULL if there's none.
Definition at line 71 of file pns_item.h.
References m_owner.
Referenced by PNS_PCBNEW_RULE_RESOLVER::Clearance(), PNS_KICAD_IFACE_BASE::inheritTrackWidth(), PNS::LINE_PLACER::Move(), PNS::ITEM::OwningNode(), PNS::NODE::Remove(), and PNS::LINE_PLACER::rhShoveOnly().
|
inline |
Set the node that owns this item.
An item can belong to a single NODE or be unowned.
Definition at line 76 of file pns_item.h.
References m_owner.
Referenced by PNS::ITEM_SET::Add(), PNS::NODE::addArc(), PNS::NODE::addHole(), PNS::NODE::addSegment(), PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::LINE::AppendVia(), PNS::NODE::AssembleLine(), PNS::HOLE::Clone(), PNS::NODE::Commit(), PNS::NODE::doRemove(), PNS::LINE::LINE(), PNS::LINE::operator=(), PNS::ITEM_SET::Prepend(), PNS::NODE::Remove(), PNS::SOLID::SetHole(), and PNS::VIA::SetHole().
|
protected |
Definition at line 87 of file pns_item.h.
Referenced by BelongsTo(), PNS::ITEM::ITEM(), PNS::LINE::operator=(), Owner(), and SetOwner().