VIEW_OVERLAY: added Cross() method

This commit is contained in:
Tomasz Wlostowski 2020-10-07 14:59:06 +02:00
parent 8a7fc7e970
commit 30f8cc1346
2 changed files with 8 additions and 0 deletions

View File

@ -416,4 +416,11 @@ void VIEW_OVERLAY::SetLineWidth( double aLineWidth )
m_commands.push_back( new COMMAND_SET_WIDTH( aLineWidth ) );
}
void VIEW_OVERLAY::Cross( const VECTOR2D& aP, int aSize )
{
Line( aP + VECTOR2D( -aSize, -aSize ), aP + VECTOR2D( aSize, aSize ) );
Line( aP + VECTOR2D( aSize, -aSize ), aP + VECTOR2D( -aSize, aSize ) );
}
} // namespace

View File

@ -79,6 +79,7 @@ public:
void Circle( const VECTOR2D& aCenterPoint, double aRadius );
void Arc( const VECTOR2D& aCenterPoint, double aRadius, double aStartAngle, double aEndAngle );
void Rectangle( const VECTOR2D& aStartPoint, const VECTOR2D& aEndPoint );
void Cross( const VECTOR2D& aP, int aSize );
// Polyline primitives
void Polyline( std::deque<VECTOR2D>& aPointList );