RDimensionData
Class in Entity Module
Header: #include <src/entity/RDimensionData.h>
Inherits: REntityData
Inherited by: RDimAngularData, RDimDiametricData, RDimLinearData, RDimOrdinateData, RDimRadialData
Description
Section titled “Description”Base class for dimension entity data classes.
Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RDimensionData(const RVector &definitionPoint, const RVector &textPositionCenter, RS::VAlign valign, RS::HAlign halign, RS::TextLineSpacingStyle lineSpacingStyle, double lineSpacingFactor, const QString &text, const QString &fontName, double textRotation) |
|
RDimensionData(RDocument *document=NULL) |
|
| void | adjustExtensionLineFixLength(RLine &extLine1, RLine &extLine2, bool addDimExe=true) const |
| void | clearStyleOverrides() |
| virtual bool | clickReferencePoint(const RVector &referencePoint)Called when user clicks a reference point. |
| QString | formatAngleLabel(double textAngle) const |
| QString | formatLabel(double distance) const |
| virtual QString | getAutoLabel() const |
| bool | getBoolOverride(RS::KnownVariable key) const |
| virtual RBox | getBoundingBox(bool ignoreEmpty=false) const |
| RColor | getColorOverride(RS::KnownVariable key) const |
| RVector | getDefinitionPoint() const |
| int | getDimadec() const |
| double | getDimasz() const |
| int | getDimaunit() const |
| int | getDimazin() const |
| int | getDimblk() const |
| QString | getDimblkName() const |
| QString | getDimBlockName() const |
| RColor | getDimclrt() const |
| int | getDimdec() const |
| double | getDimdli() const |
| int | getDimdsep() const |
| QSharedPointer< RBlockReferenceEntity > | getDimensionBlockReference() const |
| double | getDimexe() const |
| double | getDimexo() const |
| double | getDimgap() const |
| int | getDimjust() const |
| double | getDimlfac() const |
| int | getDimlunit() const |
| double | getDimscale() const |
| int | getDimtad() const |
| bool | getDimtih() const |
| double | getDimtsz() const |
| double | getDimtxt() const |
| bool | getDimXBool(RS::KnownVariable key) const |
| RColor | getDimXColor(RS::KnownVariable key) const |
| double | getDimXDouble(RS::KnownVariable key) const |
| int | getDimXInt(RS::KnownVariable key) const |
| QVariant | getDimXVariant(RS::KnownVariable key) const |
| int | getDimzin() const |
| virtual double | getDistanceTo(const RVector &point, bool limited=true, double range=0.0, bool draft=false, double strictRange=RMAXDOUBLE) const |
| double | getDoubleOverride(RS::KnownVariable key) const |
| double | getExtLineFixLength() const |
| QString | getFontName() const |
| int | getIntOverride(RS::KnownVariable key) const |
| double | getLinearFactor() const |
| double | getLineSpacingFactor() const |
| RS::TextLineSpacingStyle | getLineSpacingStyle() const |
| QString | getLowerTolerance() const |
| virtual double | getMeasuredValue() const |
| virtual QString | getMeasurement(bool resolveAutoMeasurement=true) const |
| RDimStyleData | getOverrides() const |
| virtual RVector | getPointOnEntity() const |
| virtual QList< RRefPoint > | getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const |
| virtual QList< QSharedPointer< RShape > > | getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) const |
| QString | getText() const |
| RTextData & | getTextData(bool noRender=false) constCreates a dimensioning line (line with one, two or no arrows). |
| virtual RVector | getTextPosition() const |
| double | getTextRotation() const |
| virtual RS::EntityType | getType() const |
| QString | getUpperTolerance() const |
| QVariant | getVariantOverride(RS::KnownVariable key) const |
| bool | hasCustomTextPosition() const |
| bool | hasDimensionBlockReference() const |
| bool | hasOverride(RS::KnownVariable key) const |
| bool | hasOverrides() const |
| bool | hasSpaceForArrows() const |
| RTextData & | initTextData() constInitializes the text data of the text label of this dimension. |
| virtual bool | intersectsWith(const RShape &shape) const |
| bool | isArrow1Flipped() const |
| bool | isArrow2Flipped() const |
| bool | isDimXScaled(RS::KnownVariable var) const |
| bool | isExtLineFix() 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. |
| void | render() const |
| virtual bool | rotate(double rotation, const RVector ¢er) |
| virtual bool | scale(const RVector &scaleFactors, const RVector ¢er) |
| virtual void | scaleVisualProperties(double scaleFactor) |
| void | setArrow1Flipped(bool on) |
| void | setArrow2Flipped(bool on) |
| void | setCustomTextPosition(bool on) |
| virtual void | setDefinitionPoint(const RVector &p) |
| void | setDimadec(int v) |
| void | setDimasz(double v) |
| void | setDimaunit(int v) |
| void | setDimazin(int v) |
| void | setDimBlockName(const QString &bn) |
| void | setDimclrt(const RColor &v) |
| void | setDimdec(int v) |
| void | setDimdli(double v) |
| void | setDimdsep(int v) |
| void | setDimexe(double v) |
| void | setDimexo(double v) |
| void | setDimgap(double v) |
| void | setDimlfac(double f) |
| void | setDimlunit(int l) |
| void | setDimscale(double f) |
| void | setDimtad(int v) |
| void | setDimtih(bool v) |
| void | setDimtsz(double t) |
| void | setDimtxt(double t) |
| void | setDimXBool(RS::KnownVariable key, bool v) |
| void | setDimXColor(RS::KnownVariable key, const RColor &v) |
| void | setDimXDouble(RS::KnownVariable key, double v) |
| void | setDimXInt(RS::KnownVariable key, int v) |
| void | setDimXVariant(RS::KnownVariable key, const QVariant &v) |
| void | setDimzin(int v) |
| void | setExtLineFix(bool on) |
| void | setExtLineFixLength(double v) |
| void | setFontName(const QString &fn) |
| void | setLinearFactor(double f) |
| void | setLowerTolerance(const QString &t) |
| void | setText(const QString &t) |
| void | setTextPosition(const RVector &p) |
| void | setTextRotation(double r) |
| void | setUpperTolerance(const QString &t) |
| virtual void | to2D() |
| virtual void | update() constEntities can reimplement this function to invalidate any internal cache (mark the entity as dirty). |
| void | updateArrowPos1(const RVector &p) const |
| void | updateArrowPos2(const RVector &p) const |
| void | updateBoundingBox(const RBox &box) const |
| void | updateShapes(const QList< QSharedPointer< RShape > > &s) const |
| void | updateTextData(const RTextData &d) const |
| void | updateTextPositionCenter(const RVector &p) const |
| void | updateTextPositionSide(const RVector &p) const |
| bool | useArchTick() const |
Protected Functions
Section titled “Protected Functions”RDimensionData(RDocument *document, const RDimensionData &data) |
Protected Attributes
Section titled “Protected Attributes”| bool | arrow1Flipped |
| RVector | arrow1Pos |
| bool | arrow2Flipped |
| RVector | arrow2Pos |
| bool | autoTextPos True if the textPosition should be automatically calculated. |
| RBox | boundingBox |
| double | defaultAngle |
| RVector | definitionPoint Definition point. |
| QString | dimBlockName Dimension text color. |
| double | dimLineLength |
| bool | dirty |
| bool | extLineFix |
| double | extLineFixLength |
| QString | fontName Dimension font name. |
| RS::HAlign | halign Horizontal alignment. |
| double | lineSpacingFactor Line spacing factor. |
| RS::TextLineSpacingStyle | lineSpacingStyle Line spacing style. |
| QString | lowerTolerance Lower tolerance limit. |
| RDimStyleData | overrides |
| QList< QSharedPointer< RShape > > | shapes |
| QString | text Text string entered explicitly by user or null or “<>” for the actual measurement or “ “ (one blank space) for suppressing the text. |
| RTextData | textData |
| RVector | textPositionCenter Middle point of dimension text. |
| RVector | textPositionSide Middle point of dimension text when automatically moved to the side for lack of space. |
| double | textRotation Rotation angle of dimension text away from default orientation. |
| QString | upperTolerance Upper tolerance limit. |
| RS::VAlign | valign Vertical alignment. |
Friends
Section titled “Friends”| class | RDimensionEntity |
Member Documentation
Section titled “Member Documentation”RDimensionData
Section titled “RDimensionData”RDimensionData::RDimensionData(const RVector &definitionPoint, const RVector &textPositionCenter, RS::VAlign valign, RS::HAlign halign, RS::TextLineSpacingStyle lineSpacingStyle, double lineSpacingFactor, const QString &text, const QString &fontName, double textRotation)Parameters:
definitionPoint: Definition point.textPosition: Middle point of dimension text.valign: Vertical alignment.halign: Horizontal alignment.lineSpacingStyle: Line spacing style.lineSpacingFactor: Line spacing factor.text: Text string entered explicitly by user or null or “<>” for the actual measurement or “ “ (one blank space). for suppressing the text.style: Dimension style name.textRotation: Rotation angle of dimension text away from default orientation.
RDimensionData
Section titled “RDimensionData”RDimensionData::RDimensionData(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.
adjustExtensionLineFixLength
Section titled “adjustExtensionLineFixLength”void RDimensionData::adjustExtensionLineFixLength(RLine &extLine1, RLine &extLine2, bool addDimExe=true) constconst
clearStyleOverrides
Section titled “clearStyleOverrides”void RDimensionData::clearStyleOverrides()inline
clickReferencePoint
Section titled “clickReferencePoint”virtual bool RDimensionData::clickReferencePoint(const RVector &referencePoint)virtual
Called when user clicks a reference point.
Returns: True if clicking the reference point had any immediate effect.
Reimplemented from clickReferencePoint.
formatAngleLabel
Section titled “formatAngleLabel”QString RDimensionData::formatAngleLabel(double textAngle) constconst
formatLabel
Section titled “formatLabel”QString RDimensionData::formatLabel(double distance) constconst
getAutoLabel
Section titled “getAutoLabel”virtual QString RDimensionData::getAutoLabel() constvirtual inline const
Reimplemented in getAutoLabel, getAutoLabel, getAutoLabel, getAutoLabel, getAutoLabel, getAutoLabel, getAutoLabel.
getBoolOverride
Section titled “getBoolOverride”bool RDimensionData::getBoolOverride(RS::KnownVariable key) constconst
getBoundingBox
Section titled “getBoundingBox”virtual RBox RDimensionData::getBoundingBox(bool ignoreEmpty=false) constvirtual const
Returns: The bounding box that contains this entity.
Reimplemented from getBoundingBox.
Reimplemented in getBoundingBox, getBoundingBox, getBoundingBox.
getColorOverride
Section titled “getColorOverride”RColor RDimensionData::getColorOverride(RS::KnownVariable key) constconst
getDefinitionPoint
Section titled “getDefinitionPoint”RVector RDimensionData::getDefinitionPoint() constinline const
getDimadec
Section titled “getDimadec”int RDimensionData::getDimadec() constinline const
getDimasz
Section titled “getDimasz”double RDimensionData::getDimasz() constinline const
getDimaunit
Section titled “getDimaunit”int RDimensionData::getDimaunit() constinline const
getDimazin
Section titled “getDimazin”int RDimensionData::getDimazin() constinline const
getDimblk
Section titled “getDimblk”int RDimensionData::getDimblk() constinline const
getDimblkName
Section titled “getDimblkName”QString RDimensionData::getDimblkName() constconst
getDimBlockName
Section titled “getDimBlockName”QString RDimensionData::getDimBlockName() constinline const
getDimclrt
Section titled “getDimclrt”RColor RDimensionData::getDimclrt() constinline const
getDimdec
Section titled “getDimdec”int RDimensionData::getDimdec() constinline const
getDimdli
Section titled “getDimdli”double RDimensionData::getDimdli() constinline const
getDimdsep
Section titled “getDimdsep”int RDimensionData::getDimdsep() constinline const
getDimensionBlockReference
Section titled “getDimensionBlockReference”QSharedPointer< RBlockReferenceEntity > RDimensionData::getDimensionBlockReference() constconst
getDimexe
Section titled “getDimexe”double RDimensionData::getDimexe() constinline const
getDimexo
Section titled “getDimexo”double RDimensionData::getDimexo() constinline const
getDimgap
Section titled “getDimgap”double RDimensionData::getDimgap() constinline const
getDimjust
Section titled “getDimjust”int RDimensionData::getDimjust() constinline const
getDimlfac
Section titled “getDimlfac”double RDimensionData::getDimlfac() constinline const
getDimlunit
Section titled “getDimlunit”int RDimensionData::getDimlunit() constinline const
getDimscale
Section titled “getDimscale”double RDimensionData::getDimscale() constinline const
getDimtad
Section titled “getDimtad”int RDimensionData::getDimtad() constinline const
Returns: 0 for text above dimension line, otherwise text on dimension line.
getDimtih
Section titled “getDimtih”bool RDimensionData::getDimtih() constinline const
Returns: 0 for aligned, other for horizontal text label.
getDimtsz
Section titled “getDimtsz”double RDimensionData::getDimtsz() constinline const
getDimtxt
Section titled “getDimtxt”double RDimensionData::getDimtxt() constinline const
getDimXBool
Section titled “getDimXBool”bool RDimensionData::getDimXBool(RS::KnownVariable key) constconst
getDimXColor
Section titled “getDimXColor”RColor RDimensionData::getDimXColor(RS::KnownVariable key) constconst
getDimXDouble
Section titled “getDimXDouble”double RDimensionData::getDimXDouble(RS::KnownVariable key) constconst
getDimXInt
Section titled “getDimXInt”int RDimensionData::getDimXInt(RS::KnownVariable key) constconst
getDimXVariant
Section titled “getDimXVariant”QVariant RDimensionData::getDimXVariant(RS::KnownVariable key) constconst
getDimzin
Section titled “getDimzin”int RDimensionData::getDimzin() constinline const
getDistanceTo
Section titled “getDistanceTo”virtual double RDimensionData::getDistanceTo(const RVector &point, bool limited=true, double range=0.0, bool draft=false, double strictRange=RMAXDOUBLE) constvirtual const
Returns: The shortest distance from this entity to the given point.
Parameters:
limited: Limit lines, arcs at end points, otherwise the orthogonal distance to the unlimited line / circle is returned.range: This is returned for solid filled entities (solid filled or dense hatches, text entities) if the point is on the entity and the distance would be zero.draft: Calculate based on draft mode representation of the entity.strictRange: If limited, this is the maximum range from either end point of the entity. Zero to only return distances that are strictly orthogonal to the entity.
Reimplemented from getDistanceTo.
getDoubleOverride
Section titled “getDoubleOverride”double RDimensionData::getDoubleOverride(RS::KnownVariable key) constconst
getExtLineFixLength
Section titled “getExtLineFixLength”double RDimensionData::getExtLineFixLength() constinline const
getFontName
Section titled “getFontName”QString RDimensionData::getFontName() constinline const
getIntOverride
Section titled “getIntOverride”int RDimensionData::getIntOverride(RS::KnownVariable key) constconst
getLinearFactor
Section titled “getLinearFactor”double RDimensionData::getLinearFactor() constinline const
getLineSpacingFactor
Section titled “getLineSpacingFactor”double RDimensionData::getLineSpacingFactor() constinline const
getLineSpacingStyle
Section titled “getLineSpacingStyle”RS::TextLineSpacingStyle RDimensionData::getLineSpacingStyle() constinline const
getLowerTolerance
Section titled “getLowerTolerance”QString RDimensionData::getLowerTolerance() constinline const
getMeasuredValue
Section titled “getMeasuredValue”virtual double RDimensionData::getMeasuredValue() constvirtual inline const
Reimplemented in getMeasuredValue, getMeasuredValue, getMeasuredValue, getMeasuredValue, getMeasuredValue, getMeasuredValue, getMeasuredValue.
getMeasurement
Section titled “getMeasurement”virtual QString RDimensionData::getMeasurement(bool resolveAutoMeasurement=true) constvirtual const
Reimplemented in getMeasurement.
getOverrides
Section titled “getOverrides”RDimStyleData RDimensionData::getOverrides() constinline const
getPointOnEntity
Section titled “getPointOnEntity”virtual RVector RDimensionData::getPointOnEntity() constvirtual const
Returns: A point that is on the entity. Used to check if an entity is inside a polygon.
Reimplemented from getPointOnEntity.
getReferencePoints
Section titled “getReferencePoints”virtual QList< RRefPoint > RDimensionData::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.
Reimplemented in getReferencePoints, getReferencePoints, getReferencePoints, getReferencePoints, getReferencePoints, getReferencePoints, getReferencePoints, getReferencePoints, getReferencePoints.
getShapes
Section titled “getShapes”virtual QList< QSharedPointer< RShape > > RDimensionData::getShapes(const RBox &queryBox=RDEFAULT_RBOX, bool ignoreComplex=false, bool segment=false, QList< RObject::Id > *entityIds=NULL) constvirtual inline const
Returns: Shapes that represent the geometry of this entity.
Parameters:
queryBox: Limit returned shapes to query boxignoreComplex: Ignore complex shapes and explode those into simple shapessegment: Split up splines into spline segments
Reimplemented from getShapes.
getText
Section titled “getText”QString RDimensionData::getText() constinline const
getTextData
Section titled “getTextData”RTextData & RDimensionData::getTextData(bool noRender=false) constconst
Creates a dimensioning line (line with one, two or no arrows).
Returns: Text data of the text label.
getTextPosition
Section titled “getTextPosition”virtual RVector RDimensionData::getTextPosition() constvirtual inline const
getTextRotation
Section titled “getTextRotation”double RDimensionData::getTextRotation() constinline const
getType
Section titled “getType”virtual RS::EntityType RDimensionData::getType() constvirtual inline const
Reimplemented from getType.
Reimplemented in getType, getType, getType, getType, getType, getType, getType, getType, getType, getType.
getUpperTolerance
Section titled “getUpperTolerance”QString RDimensionData::getUpperTolerance() constinline const
getVariantOverride
Section titled “getVariantOverride”QVariant RDimensionData::getVariantOverride(RS::KnownVariable key) constconst
hasCustomTextPosition
Section titled “hasCustomTextPosition”bool RDimensionData::hasCustomTextPosition() constconst
hasDimensionBlockReference
Section titled “hasDimensionBlockReference”bool RDimensionData::hasDimensionBlockReference() constconst
hasOverride
Section titled “hasOverride”bool RDimensionData::hasOverride(RS::KnownVariable key) constinline const
hasOverrides
Section titled “hasOverrides”bool RDimensionData::hasOverrides() constinline const
hasSpaceForArrows
Section titled “hasSpaceForArrows”bool RDimensionData::hasSpaceForArrows() constconst
initTextData
Section titled “initTextData”RTextData & RDimensionData::initTextData() constconst
Initializes the text data of the text label of this dimension.
The text data is created at 0/0 at an angle or 0. Moving the label to the right position at the right angle is up to the particular dimension implementation.
intersectsWith
Section titled “intersectsWith”virtual bool RDimensionData::intersectsWith(const RShape &shape) constvirtual const
Returns: True if this entity intersects with the given shape, false otherwise.
Reimplemented from intersectsWith.
isArrow1Flipped
Section titled “isArrow1Flipped”bool RDimensionData::isArrow1Flipped() constinline const
isArrow2Flipped
Section titled “isArrow2Flipped”bool RDimensionData::isArrow2Flipped() constinline const
isDimXScaled
Section titled “isDimXScaled”bool RDimensionData::isDimXScaled(RS::KnownVariable var) constinline const
isExtLineFix
Section titled “isExtLineFix”bool RDimensionData::isExtLineFix() constinline const
isSane
Section titled “isSane”virtual bool RDimensionData::isSane() constvirtual const
Reimplemented from isSane.
Reimplemented in isSane, isSane, isSane, isSane, isSane, isSane, isSane, isSane, isSane.
isValid
Section titled “isValid”virtual bool RDimensionData::isValid() constvirtual const
Reimplemented from isValid.
Reimplemented in isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid, isValid.
mirror
Section titled “mirror”virtual bool RDimensionData::mirror(const RLine &axis)virtual
Reimplemented from mirror.
Reimplemented in mirror, mirror, mirror, mirror, mirror, mirror, mirror, mirror.
virtual bool RDimensionData::move(const RVector &offset)virtual
Moves this entity by the given offset.
Reimplemented from move.
Reimplemented in move, move, move, move, move, move, move.
moveReferencePoint
Section titled “moveReferencePoint”virtual bool RDimensionData::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, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint, moveReferencePoint.
render
Section titled “render”void RDimensionData::render() constconst
rotate
Section titled “rotate”virtual bool RDimensionData::rotate(double rotation, const RVector ¢er)virtual
Reimplemented from rotate.
Reimplemented in rotate, rotate, rotate, rotate, rotate, rotate, rotate, rotate.
virtual bool RDimensionData::scale(const RVector &scaleFactors, const RVector ¢er)virtual
Reimplemented from scale.
Reimplemented in scale, scale, scale, scale, scale, scale, scale.
scaleVisualProperties
Section titled “scaleVisualProperties”virtual void RDimensionData::scaleVisualProperties(double scaleFactor)virtual
Reimplemented from scaleVisualProperties.
setArrow1Flipped
Section titled “setArrow1Flipped”void RDimensionData::setArrow1Flipped(bool on)inline
setArrow2Flipped
Section titled “setArrow2Flipped”void RDimensionData::setArrow2Flipped(bool on)inline
setCustomTextPosition
Section titled “setCustomTextPosition”void RDimensionData::setCustomTextPosition(bool on)setDefinitionPoint
Section titled “setDefinitionPoint”virtual void RDimensionData::setDefinitionPoint(const RVector &p)virtual inline
Reimplemented in setDefinitionPoint.
setDimadec
Section titled “setDimadec”void RDimensionData::setDimadec(int v)inline
setDimasz
Section titled “setDimasz”void RDimensionData::setDimasz(double v)inline
setDimaunit
Section titled “setDimaunit”void RDimensionData::setDimaunit(int v)inline
setDimazin
Section titled “setDimazin”void RDimensionData::setDimazin(int v)inline
setDimBlockName
Section titled “setDimBlockName”void RDimensionData::setDimBlockName(const QString &bn)inline
setDimclrt
Section titled “setDimclrt”void RDimensionData::setDimclrt(const RColor &v)inline
setDimdec
Section titled “setDimdec”void RDimensionData::setDimdec(int v)inline
setDimdli
Section titled “setDimdli”void RDimensionData::setDimdli(double v)inline
setDimdsep
Section titled “setDimdsep”void RDimensionData::setDimdsep(int v)inline
setDimexe
Section titled “setDimexe”void RDimensionData::setDimexe(double v)inline
setDimexo
Section titled “setDimexo”void RDimensionData::setDimexo(double v)inline
setDimgap
Section titled “setDimgap”void RDimensionData::setDimgap(double v)inline
setDimlfac
Section titled “setDimlfac”void RDimensionData::setDimlfac(double f)inline
setDimlunit
Section titled “setDimlunit”void RDimensionData::setDimlunit(int l)inline
setDimscale
Section titled “setDimscale”void RDimensionData::setDimscale(double f)inline
setDimtad
Section titled “setDimtad”void RDimensionData::setDimtad(int v)inline
setDimtih
Section titled “setDimtih”void RDimensionData::setDimtih(bool v)inline
setDimtsz
Section titled “setDimtsz”void RDimensionData::setDimtsz(double t)inline
setDimtxt
Section titled “setDimtxt”void RDimensionData::setDimtxt(double t)inline
setDimXBool
Section titled “setDimXBool”void RDimensionData::setDimXBool(RS::KnownVariable key, bool v)setDimXColor
Section titled “setDimXColor”void RDimensionData::setDimXColor(RS::KnownVariable key, const RColor &v)setDimXDouble
Section titled “setDimXDouble”void RDimensionData::setDimXDouble(RS::KnownVariable key, double v)setDimXInt
Section titled “setDimXInt”void RDimensionData::setDimXInt(RS::KnownVariable key, int v)setDimXVariant
Section titled “setDimXVariant”void RDimensionData::setDimXVariant(RS::KnownVariable key, const QVariant &v)setDimzin
Section titled “setDimzin”void RDimensionData::setDimzin(int v)inline
setExtLineFix
Section titled “setExtLineFix”void RDimensionData::setExtLineFix(bool on)inline
setExtLineFixLength
Section titled “setExtLineFixLength”void RDimensionData::setExtLineFixLength(double v)inline
setFontName
Section titled “setFontName”void RDimensionData::setFontName(const QString &fn)inline
setLinearFactor
Section titled “setLinearFactor”void RDimensionData::setLinearFactor(double f)inline
setLowerTolerance
Section titled “setLowerTolerance”void RDimensionData::setLowerTolerance(const QString &t)inline
setText
Section titled “setText”void RDimensionData::setText(const QString &t)inline
setTextPosition
Section titled “setTextPosition”void RDimensionData::setTextPosition(const RVector &p)inline
setTextRotation
Section titled “setTextRotation”void RDimensionData::setTextRotation(double r)inline
setUpperTolerance
Section titled “setUpperTolerance”void RDimensionData::setUpperTolerance(const QString &t)inline
virtual void RDimensionData::to2D()virtual
Reimplemented from to2D.
Reimplemented in to2D, to2D, to2D, to2D, to2D, to2D, to2D, to2D.
update
Section titled “update”virtual void RDimensionData::update() constvirtual const
Entities can reimplement this function to invalidate any internal cache (mark the entity as dirty).
Reimplemented from update.
updateArrowPos1
Section titled “updateArrowPos1”void RDimensionData::updateArrowPos1(const RVector &p) constinline const
updateArrowPos2
Section titled “updateArrowPos2”void RDimensionData::updateArrowPos2(const RVector &p) constinline const
updateBoundingBox
Section titled “updateBoundingBox”void RDimensionData::updateBoundingBox(const RBox &box) constinline const
updateShapes
Section titled “updateShapes”void RDimensionData::updateShapes(const QList< QSharedPointer< RShape > > &s) constinline const
updateTextData
Section titled “updateTextData”void RDimensionData::updateTextData(const RTextData &d) constinline const
updateTextPositionCenter
Section titled “updateTextPositionCenter”void RDimensionData::updateTextPositionCenter(const RVector &p) constinline const
updateTextPositionSide
Section titled “updateTextPositionSide”void RDimensionData::updateTextPositionSide(const RVector &p) constinline const
useArchTick
Section titled “useArchTick”bool RDimensionData::useArchTick() constinline const
RDimensionData
Section titled “RDimensionData”RDimensionData::RDimensionData(RDocument *document, const RDimensionData &data)protected
arrow1Flipped
Section titled “arrow1Flipped”bool RDimensionData::arrow1Flippedprotected
arrow1Pos
Section titled “arrow1Pos”RVector RDimensionData::arrow1Posprotected
arrow2Flipped
Section titled “arrow2Flipped”bool RDimensionData::arrow2Flippedprotected
arrow2Pos
Section titled “arrow2Pos”RVector RDimensionData::arrow2Posprotected
autoTextPos
Section titled “autoTextPos”bool RDimensionData::autoTextPosprotected
True if the textPosition should be automatically calculated.
boundingBox
Section titled “boundingBox”RBox RDimensionData::boundingBoxprotected
defaultAngle
Section titled “defaultAngle”double RDimensionData::defaultAngleprotected
definitionPoint
Section titled “definitionPoint”RVector RDimensionData::definitionPointprotected
Definition point.
dimBlockName
Section titled “dimBlockName”QString RDimensionData::dimBlockNameprotected
Dimension text color.
Dimension appearance is defined in this block
dimLineLength
Section titled “dimLineLength”double RDimensionData::dimLineLengthprotected
bool RDimensionData::dirtyprotected
extLineFix
Section titled “extLineFix”bool RDimensionData::extLineFixprotected
extLineFixLength
Section titled “extLineFixLength”double RDimensionData::extLineFixLengthprotected
fontName
Section titled “fontName”QString RDimensionData::fontNameprotected
Dimension font name.
halign
Section titled “halign”RS::HAlign RDimensionData::halignprotected
Horizontal alignment.
lineSpacingFactor
Section titled “lineSpacingFactor”double RDimensionData::lineSpacingFactorprotected
Line spacing factor.
lineSpacingStyle
Section titled “lineSpacingStyle”RS::TextLineSpacingStyle RDimensionData::lineSpacingStyleprotected
Line spacing style.
lowerTolerance
Section titled “lowerTolerance”QString RDimensionData::lowerToleranceprotected
Lower tolerance limit.
overrides
Section titled “overrides”RDimStyleData RDimensionData::overridesprotected
shapes
Section titled “shapes”QList<QSharedPointer<RShape> > RDimensionData::shapesprotected
QString RDimensionData::textprotected
Text string entered explicitly by user or null or “<>” for the actual measurement or “ “ (one blank space) for suppressing the text.
textData
Section titled “textData”RTextData RDimensionData::textDataprotected
textPositionCenter
Section titled “textPositionCenter”RVector RDimensionData::textPositionCenterprotected
Middle point of dimension text.
textPositionSide
Section titled “textPositionSide”RVector RDimensionData::textPositionSideprotected
Middle point of dimension text when automatically moved to the side for lack of space.
textRotation
Section titled “textRotation”double RDimensionData::textRotationprotected
Rotation angle of dimension text away from default orientation.
upperTolerance
Section titled “upperTolerance”QString RDimensionData::upperToleranceprotected
Upper tolerance limit.
valign
Section titled “valign”RS::VAlign RDimensionData::valignprotected
Vertical alignment.
RDimensionEntity
Section titled “RDimensionEntity”friend class RDimensionEntityprivate