Public Member Functions |
| double | angleToParam (double a) const |
| virtual REllipse * | clone () const |
| void | correctMajorMinor () |
| double | getAngle () const |
| double | getAngleLength (bool allowForZeroLength=false) const |
| virtual RBox | getBoundingBox () const |
| QList< RVector > | getBoxCorners () |
| RVector | getCenter () const |
| virtual QList< RVector > | getCenterPoints () const |
| double | getDirection1 () const |
| double | getDirection2 () const |
| double | getEndAngle () const |
| double | getEndParam () const |
| virtual RVector | getEndPoint () const |
| virtual QList< RVector > | getEndPoints () const |
| QList< RVector > | getFoci () const |
| double | getLength () const |
| RVector | getMajorPoint () const |
| double | getMajorRadius () const |
| virtual QList< RVector > | getMiddlePoints () const |
| RVector | getMinorPoint () const |
| double | getMinorRadius () const |
| double | getParamTo (const RVector &pos) |
| RVector | getPointAt (double angle) |
| virtual QList< RVector > | getPointsWithDistanceToEnd (double distance, RS::From from=RS::FromAny) const |
| double | getRadiusAt (double angle) |
| double | getRatio () const |
| double | getSimpsonLength (double f1, double f2) const |
| double | getStartAngle () const |
| double | getStartParam () const |
| virtual RVector | getStartPoint () const |
| double | getSweep () const |
| QList< RLine > | getTangents (const RVector &point) const |
| virtual RS::Ending | getTrimEnd (const RVector &coord, const RVector &trimPoint) |
| virtual RVector | getVectorTo (const RVector &point, bool limited=true) const |
| bool | isCircular () const |
| bool | isFullEllipse () const |
| bool | isReversed () const |
| bool | isValid () |
| virtual bool | mirror (const RLine &axis) |
| virtual bool | move (const RVector &offset) |
| void | moveEndPoint (const RVector &pos, bool changeAngleOnly=false) |
| void | moveStartPoint (const RVector &pos, bool changeAngleOnly=false) |
| | REllipse () |
| | Creates an ellipse shape with invalid.
|
| | REllipse (const RVector ¢er, const RVector &majorPoint, double ratio, double startParam, double endParam, bool reversed) |
| virtual bool | reverse () |
| virtual bool | rotate (double rotation, const RVector ¢er=RDEFAULT_RVECTOR) |
| virtual bool | scale (const RVector &scaleFactors, const RVector ¢er=RDEFAULT_RVECTOR) |
| void | setAngle (double a) |
| | Sets the rotation angle of this ellipse without changing the major radius.
|
| void | setCenter (const RVector &vector) |
| void | setEndAngle (double a) |
| void | setEndParam (double endParam) |
| void | setMajorPoint (const RVector &vector) |
| | Sets the major point relative to the center point.
|
| void | setMinorPoint (const RVector &p) |
| | Sets the minor point relative to the center point.
|
| void | setRatio (double radius) |
| void | setReversed (bool reversed) |
| void | setStartAngle (double a) |
| void | setStartParam (double startParam) |
| bool | switchMajorMinor () |
| virtual void | to2D () |
| | Flattens this shape to the X/Y plane.
|
| virtual void | trimEndPoint (const RVector &p) |
| virtual void | trimStartPoint (const RVector &p) |
| virtual | ~REllipse () |
| virtual bool | flipHorizontal () |
| virtual bool | flipVertical () |
| virtual RVector | getClosestPointOnShape (const RVector &p, bool limited=true) const |
| virtual double | getDistanceTo (const RVector &point, bool limited=true) const |
| QList< RVector > | getIntersectionPoints (const RShape &other, bool limited=true, bool same=false) const |
| virtual RVector | getPointAtPercent (double p) const |
| virtual RVector | getVectorFromEndpointTo (const RVector &point) const |
| virtual bool | intersectsWith (const RShape &other, bool limited=true) const |
| virtual bool | isInterpolated () const |
| | Reimplement and return true if this shape relies on interpolation for geometrical operations such as finding intersection points.
|
| virtual bool | isOnShape (const RVector &point, bool limited=true, double tolerance=RDEFAULT_TOLERANCE_1E_MIN4) const |
| | RShape () |
| virtual bool | scale (double scaleFactor, const RVector ¢er=RVector()) |
| virtual bool | stretch (const RBox &area, const RVector &offset) |
| virtual bool | stretch (const RPolyline &area, const RVector &offset) |
| virtual | ~RShape () |
| virtual | ~RDirected () |
Static Public Member Functions |
| static REllipse | createFromEquation (double a, double b, double c) |
| static REllipse | createInscribed (const QList< RVector > &quad) |
| static QList< RVector > | getIntersectionPoints (const RShape &shape1, const RShape &shape2, bool limited=true, bool same=false) |
| static QList< RVector > | getIntersectionPointsAA (const RArc &arc1, const RArc &arc2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsAC (const RArc &arc1, const RCircle &circle2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsAE (const RArc &arc1, const REllipse &ellipse2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsAX (const RArc &arc1, const RExplodable &explodable2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsCC (const RCircle &circle1, const RCircle &circle2) |
| static QList< RVector > | getIntersectionPointsCE (const RCircle &circle1, const REllipse &ellipse2) |
| static QList< RVector > | getIntersectionPointsCX (const RCircle &circle1, const RExplodable &explodable2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsEE (const REllipse &ellipse1, const REllipse &ellipse2) |
| static QList< RVector > | getIntersectionPointsEX (const REllipse &ellipse1, const RExplodable &explodable2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsLA (const RLine &line1, const RArc &arc2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsLC (const RLine &line1, const RCircle &circle2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsLE (const RLine &line1, const REllipse &ellipse2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsLL (const RLine &line1, const RLine &line2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsLX (const RLine &line1, const RExplodable &explodable2, bool limited=true) |
| static QList< RVector > | getIntersectionPointsXX (const RExplodable &explodable1, const RExplodable &explodable2, bool limited=true, bool same=false) |
| static bool | order (QList< QList< QSharedPointer< RShape > > > &boundary) |
| | Orders the given list of loops into a list of closed loops in which all shapes are connected end to start point.
|
Low-level mathematical representation of an ellipse or ellipse arc.
- Scriptable:
- This class is wrapped for script environments.
- Shared Pointer Support:
- Script wrappers of this class support wrapping in QSharedPointer.
- Copyable:
- Script wrappers of this class should pass objects by reference.
- Stream Operator:
- Script wrappers of this class use the stream operator for the output of toString().