Skip to content

RDimOrdinateData

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

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

RDimOrdinateData()
RDimOrdinateData(const RDimensionData &dimData, const RVector &leaderEndPoint, const RVector &definingPoint)
virtual QString getAutoLabel() const
virtual RBox getBoundingBox(bool ignoreEmpty) const
RVector getDefiningPoint() const
RVector getLeaderEndPoint() const
virtual double getMeasuredValue() const
RVector getOrigin() const
virtual QList< RRefPoint > getReferencePoints(RS::ProjectionRenderingHint hint=RS::RenderTop) const
virtual RS::EntityType getType() const
bool isMeasuringXAxis() 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 setDefiningPoint(const RVector &p)
void setLeaderEndPoint(const RVector &p)
void setMeasuringXAxis()
void setMeasuringYAxis()
void setOrigin(const RVector &p)
virtual bool stretch(const RPolyline &area, const RVector &offset)
Stretches the end points of this entity that are inside area by offset.
virtual void to2D()
RDimOrdinateData(RDocument *document, const RDimOrdinateData &data)
RVector definingPoint
Defining point (feature location).
RVector leaderEndPoint
End point of leader.
bool xType
True: measures x-value, false: y-value.
class RDimOrdinateEntity

RDimOrdinateData::RDimOrdinateData()

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.

RDimOrdinateData::RDimOrdinateData(const RDimensionData &dimData, const RVector &leaderEndPoint, const RVector &definingPoint)

Parameters:

  • leaderEndPoint: End point of leader (where the label is).
  • definingPoint: The point where the ordinate is measured.

virtual QString RDimOrdinateData::getAutoLabel() const

virtual const

Reimplemented from getAutoLabel.

virtual RBox RDimOrdinateData::getBoundingBox(bool ignoreEmpty) const

virtual const

Returns: The bounding box that contains this entity.

Reimplemented from getBoundingBox.

RVector RDimOrdinateData::getDefiningPoint() const

inline const

RVector RDimOrdinateData::getLeaderEndPoint() const

inline const

virtual double RDimOrdinateData::getMeasuredValue() const

virtual const

Reimplemented from getMeasuredValue.

RVector RDimOrdinateData::getOrigin() const

inline const

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

virtual inline const

Reimplemented from getType.

bool RDimOrdinateData::isMeasuringXAxis() const

inline const

virtual bool RDimOrdinateData::isSane() const

virtual const

Reimplemented from isSane.

virtual bool RDimOrdinateData::isValid() const

virtual const

Reimplemented from isValid.

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

virtual

Reimplemented from mirror.

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

virtual

Moves this entity by the given offset.

Reimplemented from move.

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

virtual

Reimplemented from rotate.

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

virtual

Reimplemented from scale.

void RDimOrdinateData::setDefiningPoint(const RVector &p)

inline

void RDimOrdinateData::setLeaderEndPoint(const RVector &p)

inline

void RDimOrdinateData::setMeasuringXAxis()

inline

void RDimOrdinateData::setMeasuringYAxis()

inline

void RDimOrdinateData::setOrigin(const RVector &p)

inline

virtual bool RDimOrdinateData::stretch(const RPolyline &area, const RVector &offset)

virtual

Stretches the end points of this entity that are inside area by offset.

Reimplemented from stretch.

virtual void RDimOrdinateData::to2D()

virtual inline

Reimplemented from to2D.

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

protected

RVector RDimOrdinateData::definingPoint

private

Defining point (feature location).

RVector RDimOrdinateData::leaderEndPoint

private

End point of leader.

bool RDimOrdinateData::xType

private

True: measures x-value, false: y-value.

friend class RDimOrdinateEntity

private