Skip to content

RDimRotatedData

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

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

RDimRotatedData()
RDimRotatedData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2, double rotation)
virtual QString getAutoLabel() const
virtual RBox getBoundingBox(bool ignoreEmpty=false) const
virtual QList< RVector > getDimPoints() const
virtual double getMeasuredValue() const
virtual QList< RRefPoint > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const
double getRotation() const
virtual RS::EntityType getType() const
virtual bool isSane() const
virtual bool isValid() const
virtual bool mirror(const RLine &axis)
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)
Recompute definition point if extension point(s) have changed.
virtual bool rotate(double rotation, const RVector &center)
void setRotation(double r)
RDimRotatedData(RDocument *document, const RDimRotatedData &data)
double rotation
Fixed angle of dimension line in rad.
class RDimRotatedEntity

RDimRotatedData::RDimRotatedData()

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.

RDimRotatedData::RDimRotatedData(const RDimensionData &dimData, const RVector &extensionPoint1, const RVector &extensionPoint2, double rotation)

Parameters:

  • extensionPoint1: Definition point. Startpoint of the first extension line.
  • extensionPoint2: Definition point. Startpoint of the second extension line.

virtual QString RDimRotatedData::getAutoLabel() const

virtual const

Reimplemented from getAutoLabel.

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

virtual const

Returns: The bounding box that contains this entity.

Reimplemented from getBoundingBox.

virtual QList< RVector > RDimRotatedData::getDimPoints() const

virtual const

virtual double RDimRotatedData::getMeasuredValue() const

virtual const

Reimplemented from getMeasuredValue.

virtual QList< RRefPoint > RDimRotatedData::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.

double RDimRotatedData::getRotation() const

inline const

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

virtual inline const

Reimplemented from getType.

virtual bool RDimRotatedData::isSane() const

virtual const

Reimplemented from isSane.

virtual bool RDimRotatedData::isValid() const

virtual const

Reimplemented from isValid.

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

virtual

Reimplemented from mirror.

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

virtual

Recompute definition point if extension point(s) have changed.

Reimplemented from recomputeDefinitionPoint.

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

virtual

Reimplemented from rotate.

void RDimRotatedData::setRotation(double r)

inline

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

protected

double RDimRotatedData::rotation

private

Fixed angle of dimension line in rad.

friend class RDimRotatedEntity

private