RDimOrdinateData
Class in Entity Module
Header: #include <src/entity/RDimOrdinateData.h>
Inherits: RDimensionData
Description
Section titled “Description”Ordinate 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”RDimOrdinateData() |
|
RDimOrdinateData(const RDimensionData &dimData, const RVector &leaderEndPoint, const RVector &definingPoint) |
|
| virtual QString | getAutoLabel() const |
| virtual RBox | getBoundingBox(bool ignoreEmpty) const |
| RVector | getDefiningPoint() const |
| RVector | getLeaderEndPoint() const |
| virtual double | getMeasuredValue() const |
| RVector | getOrigin() const |
| virtual QList< RRefPoint > | getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const |
| virtual RS::EntityType | getType() const |
| bool | isMeasuringXAxis() 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 | setDefiningPoint(const RVector &p) |
| void | setLeaderEndPoint(const RVector &p) |
| void | setMeasuringXAxis() |
| void | setMeasuringYAxis() |
| void | setOrigin(const RVector &p) |
| virtual bool | stretch(const RPolyline &area, const RVector &offset)Stretches the end points of this entity that are inside area by offset. |
| virtual void | to2D() |
Protected Functions
Section titled “Protected Functions”RDimOrdinateData(RDocument *document, const RDimOrdinateData &data) |
Private Attributes
Section titled “Private Attributes”| RVector | definingPoint Defining point (feature location). |
| RVector | leaderEndPoint End point of leader. |
| bool | xType True: measures x-value, false: y-value. |
Friends
Section titled “Friends”| class | RDimOrdinateEntity |
Member Documentation
Section titled “Member Documentation”RDimOrdinateData
Section titled “RDimOrdinateData”RDimOrdinateData::RDimOrdinateData()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.
RDimOrdinateData
Section titled “RDimOrdinateData”RDimOrdinateData::RDimOrdinateData(const RDimensionData &dimData, const RVector &leaderEndPoint, const RVector &definingPoint)Parameters:
leaderEndPoint: End point of leader (where the label is).definingPoint: The point where the ordinate is measured.
getAutoLabel
Section titled “getAutoLabel”virtual QString RDimOrdinateData::getAutoLabel() constvirtual const
Reimplemented from getAutoLabel.
getBoundingBox
Section titled “getBoundingBox”virtual RBox RDimOrdinateData::getBoundingBox(bool ignoreEmpty) constvirtual const
Returns: The bounding box that contains this entity.
Reimplemented from getBoundingBox.
getDefiningPoint
Section titled “getDefiningPoint”RVector RDimOrdinateData::getDefiningPoint() constinline const
getLeaderEndPoint
Section titled “getLeaderEndPoint”RVector RDimOrdinateData::getLeaderEndPoint() constinline const
getMeasuredValue
Section titled “getMeasuredValue”virtual double RDimOrdinateData::getMeasuredValue() constvirtual const
Reimplemented from getMeasuredValue.
getOrigin
Section titled “getOrigin”RVector RDimOrdinateData::getOrigin() constinline const
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RDimOrdinateData::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 RDimOrdinateData::getType() constvirtual inline const
Reimplemented from getType.
isMeasuringXAxis
Section titled “isMeasuringXAxis”bool RDimOrdinateData::isMeasuringXAxis() constinline const
isSane
Section titled “isSane”virtual bool RDimOrdinateData::isSane() constvirtual const
Reimplemented from isSane.
isValid
Section titled “isValid”virtual bool RDimOrdinateData::isValid() constvirtual const
Reimplemented from isValid.
mirror
Section titled “mirror”virtual bool RDimOrdinateData::mirror(const RLine &axis)virtual
Reimplemented from mirror.
virtual bool RDimOrdinateData::move(const RVector &offset)virtual
Moves this entity by the given offset.
Reimplemented from move.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RDimOrdinateData::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 RDimOrdinateData::rotate(double rotation, const RVector ¢er)virtual
Reimplemented from rotate.
virtual bool RDimOrdinateData::scale(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scale.
setDefiningPoint
Section titled “setDefiningPoint”void RDimOrdinateData::setDefiningPoint(const RVector &p)inline
setLeaderEndPoint
Section titled “setLeaderEndPoint”void RDimOrdinateData::setLeaderEndPoint(const RVector &p)inline
setMeasuringXAxis
Section titled “setMeasuringXAxis”void RDimOrdinateData::setMeasuringXAxis()inline
setMeasuringYAxis
Section titled “setMeasuringYAxis”void RDimOrdinateData::setMeasuringYAxis()inline
setOrigin
Section titled “setOrigin”void RDimOrdinateData::setOrigin(const RVector &p)inline
stretch
Section titled “stretch”virtual bool RDimOrdinateData::stretch(const RPolyline &area, const RVector &offset)virtual
Stretches the end points of this entity that are inside area by offset.
Reimplemented from stretch.
virtual void RDimOrdinateData::to2D()virtual inline
Reimplemented from to2D.
RDimOrdinateData
Section titled “RDimOrdinateData”RDimOrdinateData::RDimOrdinateData(RDocument *document, const RDimOrdinateData &data)protected
definingPoint
Section titled “definingPoint”RVector RDimOrdinateData::definingPointprivate
Defining point (feature location).
leaderEndPoint
Section titled “leaderEndPoint”RVector RDimOrdinateData::leaderEndPointprivate
End point of leader.
bool RDimOrdinateData::xTypeprivate
True: measures x-value, false: y-value.
RDimOrdinateEntity
Section titled “RDimOrdinateEntity”friend class RDimOrdinateEntityprivate