Skip to content

RDimAlignedData

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

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

RDimAlignedData()
RDimAlignedData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2)
double getAngle() const
virtual QString getAutoLabel() const
virtual RBox getBoundingBox(bool ignoreEmpty=false) const
virtual double getMeasuredValue() const
virtual QList< RRefPoint > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const
virtual RS::EntityType getType() const
virtual bool isValid() const
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 void to2D()
void updateRefDefinitionPoint1(const RVector &v) const
void updateRefDefinitionPoint2(const RVector &v) const
RDimAlignedData(RDocument *document, const RDimAlignedData &data)
RVector refDefinitionPoint1
RVector refDefinitionPoint2
class RDimAlignedEntity

RDimAlignedData::RDimAlignedData()

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.

RDimAlignedData::RDimAlignedData(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.

double RDimAlignedData::getAngle() const

const

virtual QString RDimAlignedData::getAutoLabel() const

virtual const

Reimplemented from getAutoLabel.

virtual RBox RDimAlignedData::getBoundingBox(bool ignoreEmpty=false) const

virtual const

Returns: The bounding box that contains this entity.

Reimplemented from getBoundingBox.

virtual double RDimAlignedData::getMeasuredValue() const

virtual const

Reimplemented from getMeasuredValue.

virtual QList< RRefPoint > RDimAlignedData::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 RDimAlignedData::getType() const

virtual inline const

Reimplemented from getType.

virtual bool RDimAlignedData::isValid() const

virtual const

Reimplemented from isValid.

virtual bool RDimAlignedData::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 void RDimAlignedData::recomputeDefinitionPoint(const RVector &oldExtPoint1, const RVector &oldExtPoint2, const RVector &newExtPoint1, const RVector &newExtPoint2)

virtual

Reimplemented from recomputeDefinitionPoint.

virtual void RDimAlignedData::to2D()

virtual inline

Reimplemented from to2D.

void RDimAlignedData::updateRefDefinitionPoint1(const RVector &v) const

inline const

void RDimAlignedData::updateRefDefinitionPoint2(const RVector &v) const

inline const

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

protected

RVector RDimAlignedData::refDefinitionPoint1

private

RVector RDimAlignedData::refDefinitionPoint2

private

friend class RDimAlignedEntity

private