Browse Source

VIEW_OVERLAY: added Cross() method

6.0.7
Tomasz Wlostowski 5 years ago
parent
commit
30f8cc1346
  1. 7
      common/view/view_overlay.cpp
  2. 1
      include/view/view_overlay.h

7
common/view/view_overlay.cpp

@ -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

1
include/view/view_overlay.h

@ -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…
Cancel
Save