Skip to content

RDimArcLengthData

Class in Entity Module
Header: #include <src/entity/RDimArcLengthData.h>
Inherits: RDimAngularData

Arc length 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.

RDimArcLengthData()
RDimArcLengthData(const RDimensionData &dimData, const RVector &center, const RVector &extensionLine1End, const RVector &extensionLine2End)
virtual bool getAngles(double &ang1, double &ang2, bool &reversed, RVector &p1, RVector &p2) const
Finds out which angles this dimension actually measures.
int getArcSymbolType() const
virtual QString getAutoLabel() const
virtual RVector getCenter() const
virtual RVector getDimArcPosition() const
virtual RVector getExtensionLine1End() const
virtual RVector getExtensionLine2End() const
virtual double getMeasuredValue() const
virtual QString getMeasurement(bool resolveAutoMeasurement=true) const
double getRadius() 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 &center)
virtual bool scale(const RVector &scaleFactors, const RVector &center)
void setArcSymbolType(int t)
void setCenter(const RVector &p)
virtual void setDimArcPosition(const RVector &p)
virtual void setExtensionLine1End(const RVector &p)
virtual void setExtensionLine2End(const RVector &p)
virtual void to2D()
RDimArcLengthData(RDocument *document, const RDimArcLengthData &data)
int arcSymbolType
Arc position is definitionPoint.
RVector center
Start point of first extension line.
RVector extensionLine1End
End point of first extension line.
RVector extensionLine2End
End point of second extension line.
class RDimArcLengthEntity

RDimArcLengthData::RDimArcLengthData()

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.

RDimArcLengthData::RDimArcLengthData(const RDimensionData &dimData, const RVector &center, const RVector &extensionLine1End, const RVector &extensionLine2End)

Parameters:

  • definitionPoint: Definition point is extensionLine2End.

virtual bool RDimArcLengthData::getAngles(double &ang1, double &ang2, bool &reversed, RVector &p1, RVector &p2) const

virtual const

Finds out which angles this dimension actually measures.

Parameters:

  • ang1: Reference will return the start angle
  • ang2: Reference will return the end angle
  • reversed: Reference will return the reversed flag.

Returns: true: on success

Reimplemented from getAngles.

int RDimArcLengthData::getArcSymbolType() const

inline const

virtual QString RDimArcLengthData::getAutoLabel() const

virtual const

Reimplemented from getAutoLabel.

virtual RVector RDimArcLengthData::getCenter() const

virtual inline const

Reimplemented from getCenter.

virtual RVector RDimArcLengthData::getDimArcPosition() const

virtual inline const

Reimplemented from getDimArcPosition.

virtual RVector RDimArcLengthData::getExtensionLine1End() const

virtual inline const

Reimplemented from getExtensionLine1End.

virtual RVector RDimArcLengthData::getExtensionLine2End() const

virtual inline const

Reimplemented from getExtensionLine2End.

virtual double RDimArcLengthData::getMeasuredValue() const

virtual const

Reimplemented from getMeasuredValue.

virtual QString RDimArcLengthData::getMeasurement(bool resolveAutoMeasurement=true) const

virtual const

Reimplemented from getMeasurement.

double RDimArcLengthData::getRadius() const

const

virtual QList< RRefPoint > RDimArcLengthData::getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const

virtual 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.

virtual RS::EntityType RDimArcLengthData::getType() const

virtual inline const

Reimplemented from getType.

virtual bool RDimArcLengthData::isSane() const

virtual const

Reimplemented from isSane.

virtual bool RDimArcLengthData::isValid() const

virtual const

Reimplemented from isValid.

virtual bool RDimArcLengthData::mirror(const RLine &axis)

virtual

Reimplemented from mirror.

virtual bool RDimArcLengthData::move(const RVector &offset)

virtual

Moves this entity by the given offset.

Reimplemented from move.

virtual bool RDimArcLengthData::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.

virtual bool RDimArcLengthData::rotate(double rotation, const RVector &center)

virtual

Reimplemented from rotate.

virtual bool RDimArcLengthData::scale(const RVector &scaleFactors, const RVector &center)

virtual

Reimplemented from scale.

void RDimArcLengthData::setArcSymbolType(int t)

inline

void RDimArcLengthData::setCenter(const RVector &p)

inline

virtual void RDimArcLengthData::setDimArcPosition(const RVector &p)

virtual inline

Reimplemented from setDimArcPosition.

virtual void RDimArcLengthData::setExtensionLine1End(const RVector &p)

virtual inline

Reimplemented from setExtensionLine1End.

virtual void RDimArcLengthData::setExtensionLine2End(const RVector &p)

virtual inline

Reimplemented from setExtensionLine2End.

virtual void RDimArcLengthData::to2D()

virtual inline

Reimplemented from to2D.

RDimArcLengthData::RDimArcLengthData(RDocument *document, const RDimArcLengthData &data)

protected

int RDimArcLengthData::arcSymbolType

private

Arc position is definitionPoint.

Arc symbol type 0: before, 1: above, 2: off

RVector RDimArcLengthData::center

private

Start point of first extension line.

RVector RDimArcLengthData::extensionLine1End

private

End point of first extension line.

RVector RDimArcLengthData::extensionLine2End

private

End point of second extension line.

friend class RDimArcLengthEntity

private