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 62 of file pns_item.h.
|
inline |
Definition at line 65 of file pns_item.h.
References m_owner.
|
inline |
Definition at line 82 of file pns_item.h.
References m_owner.
Referenced by PNS::NODE::addSolid(), PNS::NODE::addVia(), PNS::NODE::doRemove(), PNS::LINE::operator=(), PNS::NODE::Remove(), and PNS::NODE::~NODE().
|
inline |
Return the owner of this item, or NULL if there's none.
Definition at line 72 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(), and PNS::NODE::Remove().
|
inline |
Set the node that owns this item.
An item can belong to a single NODE or be unowned.
Definition at line 77 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::NODE::AssembleLine(), PNS::HOLE::Clone(), PNS::NODE::Commit(), PNS::NODE::doRemove(), PNS::ITEM_SET::Prepend(), PNS::NODE::Remove(), and PNS::NODE::Remove().
|
protected |
Definition at line 88 of file pns_item.h.
Referenced by BelongsTo(), PNS::ITEM::ITEM(), PNS::ITEM::ITEM(), PNS::LINE::operator=(), PNS::LINE::operator=(), OWNABLE_ITEM(), Owner(), and SetOwner().