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