Fixup cherry-picks for v8

This commit is contained in:
Seth Hillbrand 2024-06-29 11:22:00 -07:00
parent a3d218ffbc
commit fb82130530
4 changed files with 14 additions and 18 deletions

View File

@ -2413,7 +2413,7 @@ void SCH_IO_ALTIUM::ParsePieChart( const std::map<wxString, wxString>& aProperti
if( aSymbol.empty() && !IsComponentPartVisible( elem ) )
return;
SCH_SHAPE* line = new SCH_SHAPE( SHAPE_T::POLY, LAYER_DEVICE );
LIB_SHAPE* line = new LIB_SHAPE( symbol, SHAPE_T::POLY );
symbol->AddDrawItem( line, false );
line->SetUnit( std::max( 0, elem.ownerpartid ) );

View File

@ -149,8 +149,6 @@ public:
*/
int Intersect( const SHAPE_ARC& aArc, std::vector<VECTOR2I>* aIpsBuffer ) const;
bool IsClockwise() const;
void SetWidth( int aWidth )
{
m_width = aWidth;
@ -249,15 +247,6 @@ public:
void TransformToPolygon( SHAPE_POLY_SET& aBuffer, int aError,
ERROR_LOC aErrorLoc ) const override;
private:
bool ccw( const VECTOR2I& aA, const VECTOR2I& aB, const VECTOR2I& aC ) const
{
return ( ecoord{ aC.y } - aA.y ) * ( ecoord{ aB.x } - aA.x ) >
( ecoord{ aB.y } - aA.y ) * ( ecoord{ aC.x } - aA.x );
}
void update_bbox();
/**
* @return true if the arc is counter-clockwise.
*/
@ -276,6 +265,13 @@ private:
bool IsClockwise() const { return !IsCCW(); }
private:
bool ccw( const VECTOR2I& aA, const VECTOR2I& aB, const VECTOR2I& aC ) const
{
return ( ecoord{ aC.y } - aA.y ) * ( ecoord{ aB.x } - aA.x ) >
( ecoord{ aB.y } - aA.y ) * ( ecoord{ aC.x } - aA.x );
}
void update_bbox();
bool sliceContainsPoint( const VECTOR2I& p ) const;

View File

@ -372,12 +372,6 @@ const BOX2I SHAPE_ARC::BBox( int aClearance ) const
}
bool SHAPE_ARC::IsClockwise() const
{
return GetCentralAngle() < ANGLE_0;
}
VECTOR2I SHAPE_ARC::NearestPoint( const VECTOR2I& aP ) const
{
const static int s_epsilon = 8;

View File

@ -514,6 +514,12 @@ PCB_SELECTION& PCB_TOOL_BASE::selection()
}
BOX2I PCB_SELECTION::GetBoundingBox( bool aOnlyVisible ) const
{
return BOX2I();
}
EDA_ITEM* PCB_SELECTION::GetTopLeftItem( bool onlyModules ) const
{
return nullptr;