Skip to content

RDimRadialData

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

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

RDimRadialData()
RDimRadialData(const RDimensionData &dimData, const RVector &chordPoint)
virtual QString getAutoLabel() const
RVector getCenter() const
RVector getChordPoint() const
virtual double getMeasuredValue() 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 setCenter(const RVector &p)
void setChordPoint(const RVector &p)
virtual void to2D()
RDimRadialData(RDocument *document, const RDimRadialData &data)
RVector chordPoint
Chord point.
class RDimRadialEntity

RDimRadialData::RDimRadialData()

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.

RDimRadialData::RDimRadialData(const RDimensionData &dimData, const RVector &chordPoint)

Parameters:

  • definitionPoint2: Definition point. Startpoint of the first extension line.

virtual QString RDimRadialData::getAutoLabel() const

virtual const

Reimplemented from getAutoLabel.

RVector RDimRadialData::getCenter() const

inline const

RVector RDimRadialData::getChordPoint() const

inline const

virtual double RDimRadialData::getMeasuredValue() const

virtual const

Reimplemented from getMeasuredValue.

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

virtual inline const

Reimplemented from getType.

virtual bool RDimRadialData::isSane() const

virtual const

Reimplemented from isSane.

virtual bool RDimRadialData::isValid() const

virtual const

Reimplemented from isValid.

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

virtual

Reimplemented from mirror.

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

virtual

Moves this entity by the given offset.

Reimplemented from move.

virtual bool RDimRadialData::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 RDimRadialData::rotate(double rotation, const RVector &center)

virtual

Reimplemented from rotate.

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

virtual

Reimplemented from scale.

void RDimRadialData::setCenter(const RVector &p)

inline

void RDimRadialData::setChordPoint(const RVector &p)

inline

virtual void RDimRadialData::to2D()

virtual inline

Reimplemented from to2D.

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

protected

RVector RDimRadialData::chordPoint

private

Chord point.

Definition point from RDimensionData is center.

friend class RDimRadialEntity

private