RDimDiametricData
Class in Entity Module
Header: #include <src/entity/RDimDiametricData.h>
Inherits: RDimensionData
Description
Section titled “Description”Diametric 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”RDimDiametricData() |
|
RDimDiametricData(const RDimensionData &dimData, const RVector &choordPoint) |
|
| virtual QString | getAutoLabel() const |
| RVector | getChordPoint() const |
| RVector | getFarChordPoint() const |
| virtual double | getMeasuredValue() 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 | setChordPoint(const RVector &p) |
| void | setFarChordPoint(const RVector &p) |
| virtual void | to2D() |
Protected Functions
Section titled “Protected Functions”RDimDiametricData(RDocument *document, const RDimDiametricData &data) |
Private Attributes
Section titled “Private Attributes”| RVector | chordPoint Chord point. |
Friends
Section titled “Friends”| class | RDimDiametricEntity |
Member Documentation
Section titled “Member Documentation”RDimDiametricData
Section titled “RDimDiametricData”RDimDiametricData::RDimDiametricData()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.
RDimDiametricData
Section titled “RDimDiametricData”RDimDiametricData::RDimDiametricData(const RDimensionData &dimData, const RVector &choordPoint)Parameters:
definitionPoint2: Definition point. Startpoint of the first extension line.
getAutoLabel
Section titled “getAutoLabel”virtual QString RDimDiametricData::getAutoLabel() constvirtual const
Reimplemented from getAutoLabel.
getChordPoint
Section titled “getChordPoint”RVector RDimDiametricData::getChordPoint() constinline const
getFarChordPoint
Section titled “getFarChordPoint”RVector RDimDiametricData::getFarChordPoint() constinline const
getMeasuredValue
Section titled “getMeasuredValue”virtual double RDimDiametricData::getMeasuredValue() constvirtual const
Reimplemented from getMeasuredValue.
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RDimDiametricData::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 RDimDiametricData::getType() constvirtual inline const
Reimplemented from getType.
isSane
Section titled “isSane”virtual bool RDimDiametricData::isSane() constvirtual const
Reimplemented from isSane.
isValid
Section titled “isValid”virtual bool RDimDiametricData::isValid() constvirtual const
Reimplemented from isValid.
mirror
Section titled “mirror”virtual bool RDimDiametricData::mirror(const RLine &axis)virtual
Reimplemented from mirror.
virtual bool RDimDiametricData::move(const RVector &offset)virtual
Moves this entity by the given offset.
Reimplemented from move.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RDimDiametricData::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 RDimDiametricData::rotate(double rotation, const RVector ¢er)virtual
Reimplemented from rotate.
virtual bool RDimDiametricData::scale(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scale.
setChordPoint
Section titled “setChordPoint”void RDimDiametricData::setChordPoint(const RVector &p)inline
setFarChordPoint
Section titled “setFarChordPoint”void RDimDiametricData::setFarChordPoint(const RVector &p)inline
virtual void RDimDiametricData::to2D()virtual inline
Reimplemented from to2D.
RDimDiametricData
Section titled “RDimDiametricData”RDimDiametricData::RDimDiametricData(RDocument *document, const RDimDiametricData &data)protected
chordPoint
Section titled “chordPoint”RVector RDimDiametricData::chordPointprivate
Chord point.
Definition point from RDimensionData is near chord point.
RDimDiametricEntity
Section titled “RDimDiametricEntity”friend class RDimDiametricEntityprivate