VIEW_OVERLAY: added Cross() method
This commit is contained in:
parent
8a7fc7e970
commit
30f8cc1346
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue