Horizon
Loading...
Searching...
No Matches
PNS::ARC Class Reference
Inheritance diagram for PNS::ARC:
PNS::LINKED_ITEM PNS::ITEM

Public Member Functions

 ARC (const SHAPE_ARC &aArc, int aNet)
 ARC (const ARC &aParentArc, const SHAPE_ARC &aArc)
 ARC (const LINE &aParentLine, const SHAPE_ARC &aArc)
ARC * Clone () const override
 Return a deep copy of the item.
const SHAPEShape () const override
 Return the geometrical shape of the item.
void SetWidth (int aWidth) override
int Width () const override
const SHAPE_LINE_CHAIN CLine () const
const SHAPE_LINE_CHAIN Hull (int aClearance, int aWalkaroundThickness, int aLayer) const override
virtual VECTOR2I Anchor (int n) const override
virtual int AnchorCount () const override
OPT_BOX2I ChangedArea (const ARC *aOther) const
SHAPE_ARCArc ()
const SHAPE_ARCCArc () const
Public Member Functions inherited from PNS::LINKED_ITEM
 LINKED_ITEM (PnsKind aKind)
Public Member Functions inherited from PNS::ITEM
 ITEM (PnsKind aKind)
 ITEM (const ITEM &aOther)
virtual const SHAPE_LINE_CHAIN HoleHull (int aClearance, int aWalkaroundThickness, int aLayer) const
PnsKind Kind () const
 Return the type (kind) of the item.
bool OfKind (int aKindMask) const
 Return true if the item's type matches the mask aKindMask.
std::string KindStr () const
 Returns the kind of the item, as string.
void SetParent (const PNS_HORIZON_PARENT_ITEM *aParent)
const PNS_HORIZON_PARENT_ITEMParent () const
void SetNet (int aNet)
int Net () const
const LAYER_RANGELayers () const
void SetLayers (const LAYER_RANGE &aLayers)
void SetLayer (int aLayer)
virtual int Layer () const
bool LayersOverlap (const ITEM *aOther) const
 Return true if the set of layers spanned by aOther overlaps our layers.
NODEOwner () const
 Return the owner of this item, or NULL if there's none.
void SetOwner (NODE *aOwner)
 Set the node that owns this item.
bool BelongsTo (NODE *aNode) const
bool Collide (const ITEM *aOther, const NODE *aNode, bool aDifferentNetsOnly=true) const
 Check for a collision (clearance violation) with between us and item aOther.
virtual const SHAPEHole () const
virtual void Mark (int aMarker) const
virtual void Unmark (int aMarker=-1) const
virtual int Marker () const
virtual void SetRank (int aRank)
virtual int Rank () const
bool IsLocked () const
void SetRoutable (bool aRoutable)
bool IsRoutable () const
bool IsVirtual () const
void SetIsCompoundShapePrimitive ()
bool IsCompoundShapePrimitive () const

Static Public Member Functions

static bool ClassOf (const ITEM *aItem)

Additional Inherited Members

Public Types inherited from PNS::ITEM
enum  PnsKind {
  SOLID_T = 1 , LINE_T = 2 , JOINT_T = 4 , SEGMENT_T = 8 ,
  ARC_T = 16 , VIA_T = 32 , DIFF_PAIR_T = 64 , ANY_T = 0xff
}
Static Public Attributes inherited from PNS::ITEM
static const int UnusedNet = INT_MAX
 Supported item types.
Protected Attributes inherited from PNS::ITEM
PnsKind m_kind
const PNS_HORIZON_PARENT_ITEMm_parent
NODEm_owner
LAYER_RANGE m_layers
bool m_movable
int m_net
int m_marker
int m_rank
bool m_routable
bool m_isVirtual
bool m_isCompoundShapePrimitive

Member Function Documentation

◆ Anchor()

virtual VECTOR2I PNS::ARC::Anchor ( int n) const
inlineoverridevirtual

Reimplemented from PNS::ITEM.

◆ AnchorCount()

virtual int PNS::ARC::AnchorCount ( ) const
inlineoverridevirtual

Reimplemented from PNS::ITEM.

◆ Clone()

ARC * PNS::ARC::Clone ( ) const
overridevirtual

Return a deep copy of the item.

Implements PNS::ITEM.

◆ Hull()

const SHAPE_LINE_CHAIN PNS::ARC::Hull ( int aClearance,
int aWalkaroundThickness,
int aLayer ) const
overridevirtual

Reimplemented from PNS::ITEM.

◆ SetWidth()

void PNS::ARC::SetWidth ( int aWidth)
inlineoverridevirtual

Reimplemented from PNS::LINKED_ITEM.

◆ Shape()

const SHAPE * PNS::ARC::Shape ( ) const
inlineoverridevirtual

Return the geometrical shape of the item.

Used for collision detection and spatial indexing.

Reimplemented from PNS::ITEM.

◆ Width()

int PNS::ARC::Width ( ) const
inlineoverridevirtual

Reimplemented from PNS::LINKED_ITEM.


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