RShapeProxy
Class in Math Module
Header: #include <src/core/math/RShapeProxy.h>
Description
Section titled “Description”Proxy for advanced shape functionality.
May be implemented by a plugin.
Public Functions
Section titled “Public Functions”| virtual | ~RShapeProxy() |
| virtual QList< QSharedPointer< RShape > > | getInnerMostContour(const RVector &position, const QList< QSharedPointer< RShape > > &shapes)=0 = 0Traces 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 |
Member Documentation
Section titled “Member Documentation”~RShapeProxy
Section titled “~RShapeProxy”virtual RShapeProxy::~RShapeProxy()virtual inline
getInnerMostContour
Section titled “getInnerMostContour”virtual QList< QSharedPointer< RShape > > RShapeProxy::getInnerMostContour(const RVector &position, const QList< QSharedPointer< RShape > > &shapes)=0 = 0pure 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.
roundAllCorners
Section titled “roundAllCorners”virtual QList< QSharedPointer< RShape > > RShapeProxy::roundAllCorners(const QList< QSharedPointer< RShape > > &shapes, double radius, bool inverted=false)=0 = 0pure virtual