Rotate support for pads.
This commit is contained in:
parent
583de985c7
commit
8e90a6167b
|
@ -829,6 +829,13 @@ int D_PAD::Compare( const D_PAD* padref, const D_PAD* padcmp )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void D_PAD::Rotate( const wxPoint& aRotCentre, double aAngle )
|
||||||
|
{
|
||||||
|
RotatePoint( &m_Pos, aRotCentre, aAngle );
|
||||||
|
m_Orient += aAngle;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
wxString D_PAD::ShowPadShape() const
|
wxString D_PAD::ShowPadShape() const
|
||||||
{
|
{
|
||||||
switch( GetShape() )
|
switch( GetShape() )
|
||||||
|
|
|
@ -400,6 +400,7 @@ public:
|
||||||
SetLocalCoord();
|
SetLocalCoord();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Rotate( const wxPoint& aRotCentre, double aAngle );
|
||||||
|
|
||||||
wxString GetSelectMenuText() const;
|
wxString GetSelectMenuText() const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue