RDimArcLengthData
Class in Entity Module
Header: #include <src/entity/RDimArcLengthData.h>
Inherits: RDimAngularData
Description
Section titled “Description”Arc length dimension entity data class.
Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Functions
Section titled “Public Functions”RDimArcLengthData() |
|
RDimArcLengthData(const RDimensionData &dimData, const RVector ¢er, const RVector &extensionLine1End, const RVector &extensionLine2End) |
|
| virtual bool | getAngles(double &ang1, double &ang2, bool &reversed, RVector &p1, RVector &p2) constFinds out which angles this dimension actually measures. |
| int | getArcSymbolType() const |
| virtual QString | getAutoLabel() const |
| virtual RVector | getCenter() const |
| virtual RVector | getDimArcPosition() const |
| virtual RVector | getExtensionLine1End() const |
| virtual RVector | getExtensionLine2End() const |
| virtual double | getMeasuredValue() const |
| virtual QString | getMeasurement(bool resolveAutoMeasurement=true) const |
| double | getRadius() const |
| virtual QList< RRefPoint > | getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const |
| virtual RS::EntityType | getType() const |
| virtual bool | isSane() const |
| virtual bool | isValid() const |
| virtual bool | mirror(const RLine &axis) |
| virtual bool | move(const RVector &offset)Moves this entity by the given offset. |
| virtual bool | moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)Moves the given reference point to the given target point or does nothing if this entity has no reference point as the given location. |
| virtual bool | rotate(double rotation, const RVector ¢er) |
| virtual bool | scale(const RVector &scaleFactors, const RVector ¢er) |
| void | setArcSymbolType(int t) |
| void | setCenter(const RVector &p) |
| virtual void | setDimArcPosition(const RVector &p) |
| virtual void | setExtensionLine1End(const RVector &p) |
| virtual void | setExtensionLine2End(const RVector &p) |
| virtual void | to2D() |
Protected Functions
Section titled “Protected Functions”RDimArcLengthData(RDocument *document, const RDimArcLengthData &data) |
Private Attributes
Section titled “Private Attributes”| int | arcSymbolType Arc position is definitionPoint. |
| RVector | center Start point of first extension line. |
| RVector | extensionLine1End End point of first extension line. |
| RVector | extensionLine2End End point of second extension line. |
Friends
Section titled “Friends”| class | RDimArcLengthEntity |
Member Documentation
Section titled “Member Documentation”RDimArcLengthData
Section titled “RDimArcLengthData”RDimArcLengthData::RDimArcLengthData()All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD.
RDimArcLengthData
Section titled “RDimArcLengthData”RDimArcLengthData::RDimArcLengthData(const RDimensionData &dimData, const RVector ¢er, const RVector &extensionLine1End, const RVector &extensionLine2End)Parameters:
definitionPoint: Definition point is extensionLine2End.
getAngles
Section titled “getAngles”virtual bool RDimArcLengthData::getAngles(double &ang1, double &ang2, bool &reversed, RVector &p1, RVector &p2) constvirtual const
Finds out which angles this dimension actually measures.
Parameters:
ang1: Reference will return the start angleang2: Reference will return the end anglereversed: Reference will return the reversed flag.
Returns: true: on success
Reimplemented from getAngles.
getArcSymbolType
Section titled “getArcSymbolType”int RDimArcLengthData::getArcSymbolType() constinline const
getAutoLabel
Section titled “getAutoLabel”virtual QString RDimArcLengthData::getAutoLabel() constvirtual const
Reimplemented from getAutoLabel.
getCenter
Section titled “getCenter”virtual RVector RDimArcLengthData::getCenter() constvirtual inline const
Reimplemented from getCenter.
getDimArcPosition
Section titled “getDimArcPosition”virtual RVector RDimArcLengthData::getDimArcPosition() constvirtual inline const
Reimplemented from getDimArcPosition.
getExtensionLine1End
Section titled “getExtensionLine1End”virtual RVector RDimArcLengthData::getExtensionLine1End() constvirtual inline const
Reimplemented from getExtensionLine1End.
getExtensionLine2End
Section titled “getExtensionLine2End”virtual RVector RDimArcLengthData::getExtensionLine2End() constvirtual inline const
Reimplemented from getExtensionLine2End.
getMeasuredValue
Section titled “getMeasuredValue”virtual double RDimArcLengthData::getMeasuredValue() constvirtual const
Reimplemented from getMeasuredValue.
getMeasurement
Section titled “getMeasurement”virtual QString RDimArcLengthData::getMeasurement(bool resolveAutoMeasurement=true) constvirtual const
Reimplemented from getMeasurement.
getRadius
Section titled “getRadius”double RDimArcLengthData::getRadius() constconst
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RDimArcLengthData::getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) constvirtual const
Returns: Vector of reference points of this entity. Reference points can usually be moved around by the user to change the geometry of the entity.
Reimplemented from getReferencePoints.
getType
Section titled “getType”virtual RS::EntityType RDimArcLengthData::getType() constvirtual inline const
Reimplemented from getType.
isSane
Section titled “isSane”virtual bool RDimArcLengthData::isSane() constvirtual const
Reimplemented from isSane.
isValid
Section titled “isValid”virtual bool RDimArcLengthData::isValid() constvirtual const
Reimplemented from isValid.
mirror
Section titled “mirror”virtual bool RDimArcLengthData::mirror(const RLine &axis)virtual
Reimplemented from mirror.
virtual bool RDimArcLengthData::move(const RVector &offset)virtual
Moves this entity by the given offset.
Reimplemented from move.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RDimArcLengthData::moveReferencePoint(const RVector &referencePoint, const RVector &targetPoint, Qt::KeyboardModifiers modifiers=Qt::NoModifier)virtual
Moves the given reference point to the given target point or does nothing if this entity has no reference point as the given location.
Returns: True if a reference point has been moved successfully, false otherwise.
Reimplemented from moveReferencePoint.
rotate
Section titled “rotate”virtual bool RDimArcLengthData::rotate(double rotation, const RVector ¢er)virtual
Reimplemented from rotate.
virtual bool RDimArcLengthData::scale(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scale.
setArcSymbolType
Section titled “setArcSymbolType”void RDimArcLengthData::setArcSymbolType(int t)inline
setCenter
Section titled “setCenter”void RDimArcLengthData::setCenter(const RVector &p)inline
setDimArcPosition
Section titled “setDimArcPosition”virtual void RDimArcLengthData::setDimArcPosition(const RVector &p)virtual inline
Reimplemented from setDimArcPosition.
setExtensionLine1End
Section titled “setExtensionLine1End”virtual void RDimArcLengthData::setExtensionLine1End(const RVector &p)virtual inline
Reimplemented from setExtensionLine1End.
setExtensionLine2End
Section titled “setExtensionLine2End”virtual void RDimArcLengthData::setExtensionLine2End(const RVector &p)virtual inline
Reimplemented from setExtensionLine2End.
virtual void RDimArcLengthData::to2D()virtual inline
Reimplemented from to2D.
RDimArcLengthData
Section titled “RDimArcLengthData”RDimArcLengthData::RDimArcLengthData(RDocument *document, const RDimArcLengthData &data)protected
arcSymbolType
Section titled “arcSymbolType”int RDimArcLengthData::arcSymbolTypeprivate
Arc position is definitionPoint.
Arc symbol type 0: before, 1: above, 2: off
center
Section titled “center”RVector RDimArcLengthData::centerprivate
Start point of first extension line.
extensionLine1End
Section titled “extensionLine1End”RVector RDimArcLengthData::extensionLine1Endprivate
End point of first extension line.
extensionLine2End
Section titled “extensionLine2End”RVector RDimArcLengthData::extensionLine2Endprivate
End point of second extension line.
RDimArcLengthEntity
Section titled “RDimArcLengthEntity”friend class RDimArcLengthEntityprivate