RDimAlignedData
Class in Entity Module
Header: #include <src/entity/RDimAlignedData.h>
Inherits: RDimLinearData
Description
Section titled “Description”Aligned 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”RDimAlignedData() |
|
RDimAlignedData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2) |
|
| double | getAngle() const |
| virtual QString | getAutoLabel() const |
| virtual RBox | getBoundingBox(bool ignoreEmpty=false) const |
| virtual double | getMeasuredValue() const |
| virtual QList< RRefPoint > | getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const |
| virtual RS::EntityType | getType() const |
| virtual bool | isValid() const |
| 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) |
| virtual void | to2D() |
| void | updateRefDefinitionPoint1(const RVector &v) const |
| void | updateRefDefinitionPoint2(const RVector &v) const |
Protected Functions
Section titled “Protected Functions”RDimAlignedData(RDocument *document, const RDimAlignedData &data) |
Private Attributes
Section titled “Private Attributes”| RVector | refDefinitionPoint1 |
| RVector | refDefinitionPoint2 |
Friends
Section titled “Friends”| class | RDimAlignedEntity |
Member Documentation
Section titled “Member Documentation”RDimAlignedData
Section titled “RDimAlignedData”RDimAlignedData::RDimAlignedData()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.
RDimAlignedData
Section titled “RDimAlignedData”RDimAlignedData::RDimAlignedData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2)Parameters:
extensionPoint1: Definition point. Startpoint of the first extension line.extensionPoint2: Definition point. Startpoint of the second extension line.
getAngle
Section titled “getAngle”double RDimAlignedData::getAngle() constconst
getAutoLabel
Section titled “getAutoLabel”virtual QString RDimAlignedData::getAutoLabel() constvirtual const
Reimplemented from getAutoLabel.
getBoundingBox
Section titled “getBoundingBox”virtual RBox RDimAlignedData::getBoundingBox(bool ignoreEmpty=false) constvirtual const
Returns: The bounding box that contains this entity.
Reimplemented from getBoundingBox.
getMeasuredValue
Section titled “getMeasuredValue”virtual double RDimAlignedData::getMeasuredValue() constvirtual const
Reimplemented from getMeasuredValue.
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RDimAlignedData::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 RDimAlignedData::getType() constvirtual inline const
Reimplemented from getType.
isValid
Section titled “isValid”virtual bool RDimAlignedData::isValid() constvirtual const
Reimplemented from isValid.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RDimAlignedData::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 RDimAlignedData::recomputeDefinitionPoint(const RVector &oldExtPoint1, const RVector &oldExtPoint2, const RVector &newExtPoint1, const RVector &newExtPoint2)virtual
Reimplemented from recomputeDefinitionPoint.
virtual void RDimAlignedData::to2D()virtual inline
Reimplemented from to2D.
updateRefDefinitionPoint1
Section titled “updateRefDefinitionPoint1”void RDimAlignedData::updateRefDefinitionPoint1(const RVector &v) constinline const
updateRefDefinitionPoint2
Section titled “updateRefDefinitionPoint2”void RDimAlignedData::updateRefDefinitionPoint2(const RVector &v) constinline const
RDimAlignedData
Section titled “RDimAlignedData”RDimAlignedData::RDimAlignedData(RDocument *document, const RDimAlignedData &data)protected
refDefinitionPoint1
Section titled “refDefinitionPoint1”RVector RDimAlignedData::refDefinitionPoint1private
refDefinitionPoint2
Section titled “refDefinitionPoint2”RVector RDimAlignedData::refDefinitionPoint2private
RDimAlignedEntity
Section titled “RDimAlignedEntity”friend class RDimAlignedEntityprivate