Fixup cherry-picks for v8
This commit is contained in:
parent
a3d218ffbc
commit
fb82130530
|
@ -2413,7 +2413,7 @@ void SCH_IO_ALTIUM::ParsePieChart( const std::map<wxString, wxString>& aProperti
|
||||||
if( aSymbol.empty() && !IsComponentPartVisible( elem ) )
|
if( aSymbol.empty() && !IsComponentPartVisible( elem ) )
|
||||||
return;
|
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 );
|
symbol->AddDrawItem( line, false );
|
||||||
|
|
||||||
line->SetUnit( std::max( 0, elem.ownerpartid ) );
|
line->SetUnit( std::max( 0, elem.ownerpartid ) );
|
||||||
|
|
|
@ -149,8 +149,6 @@ public:
|
||||||
*/
|
*/
|
||||||
int Intersect( const SHAPE_ARC& aArc, std::vector<VECTOR2I>* aIpsBuffer ) const;
|
int Intersect( const SHAPE_ARC& aArc, std::vector<VECTOR2I>* aIpsBuffer ) const;
|
||||||
|
|
||||||
bool IsClockwise() const;
|
|
||||||
|
|
||||||
void SetWidth( int aWidth )
|
void SetWidth( int aWidth )
|
||||||
{
|
{
|
||||||
m_width = aWidth;
|
m_width = aWidth;
|
||||||
|
@ -249,15 +247,6 @@ public:
|
||||||
void TransformToPolygon( SHAPE_POLY_SET& aBuffer, int aError,
|
void TransformToPolygon( SHAPE_POLY_SET& aBuffer, int aError,
|
||||||
ERROR_LOC aErrorLoc ) const override;
|
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.
|
* @return true if the arc is counter-clockwise.
|
||||||
*/
|
*/
|
||||||
|
@ -276,6 +265,13 @@ private:
|
||||||
bool IsClockwise() const { return !IsCCW(); }
|
bool IsClockwise() const { return !IsCCW(); }
|
||||||
|
|
||||||
private:
|
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;
|
bool sliceContainsPoint( const VECTOR2I& p ) const;
|
||||||
|
|
||||||
|
|
|
@ -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
|
VECTOR2I SHAPE_ARC::NearestPoint( const VECTOR2I& aP ) const
|
||||||
{
|
{
|
||||||
const static int s_epsilon = 8;
|
const static int s_epsilon = 8;
|
||||||
|
|
|
@ -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
|
EDA_ITEM* PCB_SELECTION::GetTopLeftItem( bool onlyModules ) const
|
||||||
{
|
{
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Reference in New Issue