RDimRotatedData
Class in Entity Module
Header: #include <src/entity/RDimRotatedData.h>
Inherits: RDimLinearData
Description
Section titled “Description”Rotated 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”RDimRotatedData() |
|
RDimRotatedData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2, double rotation) |
|
| virtual QString | getAutoLabel() const |
| virtual RBox | getBoundingBox(bool ignoreEmpty=false) const |
| virtual QList< RVector > | getDimPoints() const |
| virtual double | getMeasuredValue() const |
| virtual QList< RRefPoint > | getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const |
| double | getRotation() const |
| virtual RS::EntityType | getType() const |
| virtual bool | isSane() const |
| virtual bool | isValid() const |
| virtual bool | mirror(const RLine &axis) |
| 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 void | recomputeDefinitionPoint(const RVector &oldExtPoint1, const RVector &oldExtPoint2, const RVector &newExtPoint1, const RVector &newExtPoint2)Recompute definition point if extension point(s) have changed. |
| virtual bool | rotate(double rotation, const RVector ¢er) |
| void | setRotation(double r) |
Protected Functions
Section titled “Protected Functions”RDimRotatedData(RDocument *document, const RDimRotatedData &data) |
Private Attributes
Section titled “Private Attributes”| double | rotation Fixed angle of dimension line in rad. |
Friends
Section titled “Friends”| class | RDimRotatedEntity |
Member Documentation
Section titled “Member Documentation”RDimRotatedData
Section titled “RDimRotatedData”RDimRotatedData::RDimRotatedData()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.
RDimRotatedData
Section titled “RDimRotatedData”RDimRotatedData::RDimRotatedData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2, double rotation)Parameters:
extensionPoint1: Definition point. Startpoint of the first extension line.extensionPoint2: Definition point. Startpoint of the second extension line.
getAutoLabel
Section titled “getAutoLabel”virtual QString RDimRotatedData::getAutoLabel() constvirtual const
Reimplemented from getAutoLabel.
getBoundingBox
Section titled “getBoundingBox”virtual RBox RDimRotatedData::getBoundingBox(bool ignoreEmpty=false) constvirtual const
Returns: The bounding box that contains this entity.
Reimplemented from getBoundingBox.
getDimPoints
Section titled “getDimPoints”virtual QList< RVector > RDimRotatedData::getDimPoints() constvirtual const
getMeasuredValue
Section titled “getMeasuredValue”virtual double RDimRotatedData::getMeasuredValue() constvirtual const
Reimplemented from getMeasuredValue.
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RDimRotatedData::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.
getRotation
Section titled “getRotation”double RDimRotatedData::getRotation() constinline const
getType
Section titled “getType”virtual RS::EntityType RDimRotatedData::getType() constvirtual inline const
Reimplemented from getType.
isSane
Section titled “isSane”virtual bool RDimRotatedData::isSane() constvirtual const
Reimplemented from isSane.
isValid
Section titled “isValid”virtual bool RDimRotatedData::isValid() constvirtual const
Reimplemented from isValid.
mirror
Section titled “mirror”virtual bool RDimRotatedData::mirror(const RLine &axis)virtual
Reimplemented from mirror.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RDimRotatedData::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.
recomputeDefinitionPoint
Section titled “recomputeDefinitionPoint”virtual void RDimRotatedData::recomputeDefinitionPoint(const RVector &oldExtPoint1, const RVector &oldExtPoint2, const RVector &newExtPoint1, const RVector &newExtPoint2)virtual
Recompute definition point if extension point(s) have changed.
Reimplemented from recomputeDefinitionPoint.
rotate
Section titled “rotate”virtual bool RDimRotatedData::rotate(double rotation, const RVector ¢er)virtual
Reimplemented from rotate.
setRotation
Section titled “setRotation”void RDimRotatedData::setRotation(double r)inline
RDimRotatedData
Section titled “RDimRotatedData”RDimRotatedData::RDimRotatedData(RDocument *document, const RDimRotatedData &data)protected
rotation
Section titled “rotation”double RDimRotatedData::rotationprivate
Fixed angle of dimension line in rad.
RDimRotatedEntity
Section titled “RDimRotatedEntity”friend class RDimRotatedEntityprivate