Skip to content

RShapeProxy

Class in Math Module
Header: #include <src/core/math/RShapeProxy.h>

Proxy for advanced shape functionality.

May be implemented by a plugin.

virtual ~RShapeProxy()
virtual QList< QSharedPointer< RShape > > getInnerMostContour(const RVector &position, const QList< QSharedPointer< RShape > > &shapes)=0 = 0
Traces the inner most (smallest) closed contour around the given position from the arrangement formed by the given shapes.
virtual QList< QSharedPointer< RShape > > roundAllCorners(const QList< QSharedPointer< RShape > > &shapes, double radius, bool inverted=false)=0 = 0

virtual RShapeProxy::~RShapeProxy()

virtual inline

virtual QList< QSharedPointer< RShape > > RShapeProxy::getInnerMostContour(const RVector &position, const QList< QSharedPointer< RShape > > &shapes)=0 = 0

pure virtual

Traces the inner most (smallest) closed contour around the given position from the arrangement formed by the given shapes.

Parameters:

  • position: Point inside the region to trace (e.g. a click point).
  • shapes: Boundary shapes (lines, arcs, circles, ellipses, splines, polylines) that may form contours. Polylines are exploded internally.

Returns: The ordered shapes forming the traced contour (counter-clockwise), or an empty list if no closed contour was found.

virtual QList< QSharedPointer< RShape > > RShapeProxy::roundAllCorners(const QList< QSharedPointer< RShape > > &shapes, double radius, bool inverted=false)=0 = 0

pure virtual