RDimLinearData
Class in Entity Module
Header: #include <src/entity/RDimLinearData.h>
Inherits: RDimensionData
Inherited by: RDimAlignedData, RDimRotatedData
Description
Section titled “Description”Linear dimension entity data base class.
Scriptable: This class is available in script environments.
\abstract
Public Functions
Section titled “Public Functions”RDimLinearData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2) |
|
RDimLinearData(RDocument *document=NULL) |
|
| RVector | getExtensionPoint1() const |
| RVector | getExtensionPoint2() 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 void | recomputeDefinitionPoint(const RVector &oldExtPoint1, const RVector &oldExtPoint2, const RVector &newExtPoint1, const RVector &newExtPoint2) |
| virtual bool | rotate(double rotation, const RVector ¢er) |
| virtual bool | scale(const RVector &scaleFactors, const RVector ¢er) |
| virtual void | setDefinitionPoint(const RVector &p) |
| void | setExtensionPoint1(const RVector &p) |
| void | setExtensionPoint2(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”RDimLinearData(RDocument *document, const RDimLinearData &data) |
Protected Attributes
Section titled “Protected Attributes”| RVector | extensionPoint1 Definition point. |
| RVector | extensionPoint2 Definition point. |
Friends
Section titled “Friends”| class | RDimLinearEntity |
Member Documentation
Section titled “Member Documentation”RDimLinearData
Section titled “RDimLinearData”RDimLinearData::RDimLinearData(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.
RDimLinearData
Section titled “RDimLinearData”RDimLinearData::RDimLinearData(RDocument *document=NULL)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.
getExtensionPoint1
Section titled “getExtensionPoint1”RVector RDimLinearData::getExtensionPoint1() constinline const
getExtensionPoint2
Section titled “getExtensionPoint2”RVector RDimLinearData::getExtensionPoint2() constinline const
getType
Section titled “getType”virtual RS::EntityType RDimLinearData::getType() constvirtual inline const
Reimplemented from getType.
Reimplemented in getType, getType.
isSane
Section titled “isSane”virtual bool RDimLinearData::isSane() constvirtual const
Reimplemented from isSane.
Reimplemented in isSane.
isValid
Section titled “isValid”virtual bool RDimLinearData::isValid() constvirtual const
Reimplemented from isValid.
Reimplemented in isValid, isValid.
mirror
Section titled “mirror”virtual bool RDimLinearData::mirror(const RLine &axis)virtual
Reimplemented from mirror.
Reimplemented in mirror.
virtual bool RDimLinearData::move(const RVector &offset)virtual
Moves this entity by the given offset.
Reimplemented from move.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RDimLinearData::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.
Reimplemented in moveReferencePoint, moveReferencePoint.
recomputeDefinitionPoint
Section titled “recomputeDefinitionPoint”virtual void RDimLinearData::recomputeDefinitionPoint(const RVector &oldExtPoint1, const RVector &oldExtPoint2, const RVector &newExtPoint1, const RVector &newExtPoint2)virtual inline
Reimplemented in recomputeDefinitionPoint, recomputeDefinitionPoint.
rotate
Section titled “rotate”virtual bool RDimLinearData::rotate(double rotation, const RVector ¢er)virtual
Reimplemented from rotate.
Reimplemented in rotate.
virtual bool RDimLinearData::scale(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scale.
setDefinitionPoint
Section titled “setDefinitionPoint”virtual void RDimLinearData::setDefinitionPoint(const RVector &p)virtual inline
Reimplemented from setDefinitionPoint.
setExtensionPoint1
Section titled “setExtensionPoint1”void RDimLinearData::setExtensionPoint1(const RVector &p)inline
setExtensionPoint2
Section titled “setExtensionPoint2”void RDimLinearData::setExtensionPoint2(const RVector &p)inline
stretch
Section titled “stretch”virtual bool RDimLinearData::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 RDimLinearData::to2D()virtual inline
Reimplemented from to2D.
Reimplemented in to2D.
RDimLinearData
Section titled “RDimLinearData”RDimLinearData::RDimLinearData(RDocument *document, const RDimLinearData &data)protected
extensionPoint1
Section titled “extensionPoint1”RVector RDimLinearData::extensionPoint1protected
Definition point.
Startpoint of the first extension line.
extensionPoint2
Section titled “extensionPoint2”RVector RDimLinearData::extensionPoint2protected
Definition point.
Startpoint of the second extension line.
RDimLinearEntity
Section titled “RDimLinearEntity”friend class RDimLinearEntityprivate