36 bool hasLocalBounds =
false;
50 hasLocalBounds =
true;
54 localBox.
Merge( padBox );
70 BOX2I itemBox = item->GetBoundingBox();
79 for(
int ci = 0; ci < 4; ++ci )
96 localBox = localItemBox;
97 hasLocalBounds =
true;
101 localBox.
Merge( localItemBox );
107 if( !hasLocalBounds )
BOX2I CalcPlaceholderLocalBox(const FOOTPRINT *aFootprint)
Calculate a local space bounding box for a placeholder 3D model.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
constexpr void SetOrigin(const Vec &pos)
constexpr size_type GetWidth() const
constexpr BOX2< Vec > & Merge(const BOX2< Vec > &aRect)
Modify the position and size of the rectangle in order to contain aRect.
constexpr void SetSize(const SizeVec &size)
constexpr size_type GetHeight() const
constexpr coord_type GetLeft() const
constexpr const Vec & GetOrigin() const
constexpr coord_type GetRight() const
constexpr coord_type GetTop() const
constexpr coord_type GetBottom() const
static constexpr PCB_LAYER_ID ALL_LAYERS
! Temporary layer identifier to identify code that is not padstack-aware
PCB_LAYER_ID
A quick note on layer IDs:
void RotatePoint(int *pX, int *pY, const EDA_ANGLE &aAngle)
Calculate the new point of coord coord pX, pY, for a rotation center 0, 0.
VECTOR2< int32_t > VECTOR2I