PCB Environment 2
Loading...
Searching...
No Matches
Object Class Reference
Inheritance diagram for Object:
Component Pin

Public Member Functions

virtual Objectclone (CloneEnv &) const
const std::string & name () const
std::string getFullName () const
uint id () const
void setId (uint id)
bool hasParent () const
ObjectgetParent () const
ObjectgetChildAt (const Point_2 &) const
const std::vector< Object * > & getChildren () const
void addChild (Object &)
uint numChildren () const
bool hasChildren () const
void removeChild (Object &)
const Point_2 & getCenter () const
Point_25 getCenter25 () const
 Layer is set to max(LayerMin, parent.LayerMin) to account for bottom layer thru-hole pins.
const Bbox_2 getBbox () const
virtual void addOccludedObject (Object &)
void translate (const Vector_2 &)
void transform (const Aff_transformation_2 &)
void rotateAround (const Point_2 &refPoint, Real angleRadians)
bool isOnLayer (int z) const
int minLayer () const
int maxLayer () const
void setLayer (int)
void setLayerRange (int, int)
int getSingleLayer () const
bool sharesLayer (const Object &) const
Real getClearance () const
void setClearance (Real c)
AShapegetShape () const
void setShape (const Circle_2 &)
void setShape (const Triangle_2 &)
void setShape (const Iso_rectangle_2 &)
void setShape (const Polygon_2 &)
void setShape (const WideSegment_25 &, Real angleTolerance=0.0)
void setShape (Polygon_2 &&)
bool canRouteInside () const
void setCanRouteInside (bool b)
bool canPlaceViasInside () const
void setCanPlaceViasInside (bool b)
bool isSelected () const
void setSelected (bool b)
void setSelected (bool b, uint recursion)
bool violatesClearance (const Via &, Real clearance, Point_25 *=0) const
bool violatesClearance (const WideSegment_25 &, Real clearance, Point_25 *=0) const
Real distanceTo (const Point_2 &v) const
bool contains2D (const Point_2 &v) const
bool contains3D (const Point_25 &v) const
bool isInsideBbox (const Point_2 &v) const
bool isInsideBbox (const Point_2 &v, int zmin, int zmax) const
bool intersects (const Bbox_2 &B) const
bool intersects (const WideSegment_25 &s) const
bool intersects (const Object &A) const
bool bboxTest (const Bbox_2 &B)
bool bboxTest (const Bbox_2 &B, int z0, int z1=-1)
bool isContainerOf (const Object &) const
void copyFrom (CloneEnv &, const Object &)
virtual std::string str () const
virtual PyObject * getPy (uint depth) const
template<typename T>
bool is_a () const
template<typename T>
const T * as () const
template<typename T>
T * as ()

Protected Member Functions

 Object (Object *parent, const std::string &name)

Protected Attributes

std::unique_ptr< AShapemShape
Point_2 mCenter
Object *const mParent
std::vector< Object * > mChildren
std::string mName
uint mId
uint mChildIndex {std::numeric_limits<uint>::max()}
int mLayerRange [2] {-1,-1}
Real mClearance {0.0}
bool mCanRouteInside {false}
bool mCanPlaceViasInside {true}
bool mSelectionFlag {false}

Member Function Documentation

◆ addOccludedObject()

virtual void Object::addOccludedObject ( Object & )
inlinevirtual

Reimplemented in Component.


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