Skip to content

RDimLinearEntity

Class in Entity Module
Header: #include <src/entity/RDimLinearEntity.h>
Inherits: RDimensionEntity
Inherited by: RDimAlignedEntity, RDimRotatedEntity

Linear dimension entity base class.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RDimLinearEntity(RDocument *document)
virtual ~RDimLinearEntity()
virtual const RDimLinearData & getData() const =0 = 0
virtual RDimLinearData & getData()=0 = 0
RVector getExtensionPoint1() const
RVector getExtensionPoint2() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
void setExtensionPoint1(const RVector &p)
void setExtensionPoint2(const RVector &p)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
static void init()
static RPropertyTypeId PropertyArchTick
static RPropertyTypeId PropertyArrow1Flipped
static RPropertyTypeId PropertyArrow2Flipped
static RPropertyTypeId PropertyAutoTextPos
static RPropertyTypeId PropertyBlock
static RPropertyTypeId PropertyColor
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDimadec
static RPropertyTypeId PropertyDimasz
static RPropertyTypeId PropertyDimaunit
static RPropertyTypeId PropertyDimazin
static RPropertyTypeId PropertyDimBlockName
static RPropertyTypeId PropertyDimclrt
static RPropertyTypeId PropertyDimdec
static RPropertyTypeId PropertyDimdsep
static RPropertyTypeId PropertyDimensionLinePosX
static RPropertyTypeId PropertyDimensionLinePosY
static RPropertyTypeId PropertyDimensionLinePosZ
static RPropertyTypeId PropertyDimexe
static RPropertyTypeId PropertyDimexo
static RPropertyTypeId PropertyDimgap
static RPropertyTypeId PropertyDimlfac
static RPropertyTypeId PropertyDimlunit
static RPropertyTypeId PropertyDimscale
static RPropertyTypeId PropertyDimtad
static RPropertyTypeId PropertyDimtih
static RPropertyTypeId PropertyDimtsz
static RPropertyTypeId PropertyDimtxt
static RPropertyTypeId PropertyDimzin
static RPropertyTypeId PropertyDisplayedColor
static RPropertyTypeId PropertyDrawOrder
static RPropertyTypeId PropertyExtensionPoint1X
static RPropertyTypeId PropertyExtensionPoint1Y
static RPropertyTypeId PropertyExtensionPoint1Z
static RPropertyTypeId PropertyExtensionPoint2X
static RPropertyTypeId PropertyExtensionPoint2Y
static RPropertyTypeId PropertyExtensionPoint2Z
static RPropertyTypeId PropertyExtLineFix
static RPropertyTypeId PropertyExtLineFixLength
static RPropertyTypeId PropertyFontName
static RPropertyTypeId PropertyHandle
static RPropertyTypeId PropertyLayer
static RPropertyTypeId PropertyLinetype
static RPropertyTypeId PropertyLinetypeScale
static RPropertyTypeId PropertyLineweight
static RPropertyTypeId PropertyLowerTolerance
static RPropertyTypeId PropertyMeasuredValue
static RPropertyTypeId PropertyMiddleOfTextX
static RPropertyTypeId PropertyMiddleOfTextY
static RPropertyTypeId PropertyMiddleOfTextZ
static RPropertyTypeId PropertyProtected
static RPropertyTypeId PropertyText
static RPropertyTypeId PropertyType
static RPropertyTypeId PropertyUpperTolerance
static RPropertyTypeId PropertyWorkingSet
virtual void print(QDebug dbg) const
Stream operator for QDebug.

RDimLinearEntity::RDimLinearEntity(RDocument *document)

virtual RDimLinearEntity::~RDimLinearEntity()

virtual

virtual const RDimLinearData & RDimLinearEntity::getData() const =0 = 0

pure virtual const

Returns: Const reference to the data object of the entity.

Reimplemented from getData.

Reimplemented in getData, getData.

virtual RDimLinearData & RDimLinearEntity::getData()=0 = 0

pure virtual

Returns: Reference to the data object of the entity.

Reimplemented from getData.

Reimplemented in getData, getData.

RVector RDimLinearEntity::getExtensionPoint1() const

inline const

RVector RDimLinearEntity::getExtensionPoint2() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RDimLinearEntity::getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)

virtual

Returns: The value and attributes of the given property or an invalid property if this property owner has no property with the given ID.

Reimplemented from getProperty.

Reimplemented in getProperty, getProperty.

void RDimLinearEntity::setExtensionPoint1(const RVector &p)

inline

void RDimLinearEntity::setExtensionPoint2(const RVector &p)

inline

virtual bool RDimLinearEntity::setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)

virtual

Sets the given property to the given value.

If this property owner does not know a property with that ID, it is up to the property owner what happens. The property might be added into a list of dynamic properties or dropped.

Returns: True if the property owner was modified in any way, false otherwise.

Reimplemented from setProperty.

Reimplemented in setProperty, setProperty.

static void RDimLinearEntity::init()

static

static RPropertyTypeId RDimLinearEntity::PropertyArchTick

static

static RPropertyTypeId RDimLinearEntity::PropertyArrow1Flipped

static

static RPropertyTypeId RDimLinearEntity::PropertyArrow2Flipped

static

static RPropertyTypeId RDimLinearEntity::PropertyAutoTextPos

static

static RPropertyTypeId RDimLinearEntity::PropertyBlock

static

static RPropertyTypeId RDimLinearEntity::PropertyColor

static

static RPropertyTypeId RDimLinearEntity::PropertyCustom

static

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.

static RPropertyTypeId RDimLinearEntity::PropertyDimadec

static

static RPropertyTypeId RDimLinearEntity::PropertyDimasz

static

static RPropertyTypeId RDimLinearEntity::PropertyDimaunit

static

static RPropertyTypeId RDimLinearEntity::PropertyDimazin

static

static RPropertyTypeId RDimLinearEntity::PropertyDimBlockName

static

static RPropertyTypeId RDimLinearEntity::PropertyDimclrt

static

static RPropertyTypeId RDimLinearEntity::PropertyDimdec

static

static RPropertyTypeId RDimLinearEntity::PropertyDimdsep

static

static RPropertyTypeId RDimLinearEntity::PropertyDimensionLinePosX

static

static RPropertyTypeId RDimLinearEntity::PropertyDimensionLinePosY

static

static RPropertyTypeId RDimLinearEntity::PropertyDimensionLinePosZ

static

static RPropertyTypeId RDimLinearEntity::PropertyDimexe

static

static RPropertyTypeId RDimLinearEntity::PropertyDimexo

static

static RPropertyTypeId RDimLinearEntity::PropertyDimgap

static

static RPropertyTypeId RDimLinearEntity::PropertyDimlfac

static

static RPropertyTypeId RDimLinearEntity::PropertyDimlunit

static

static RPropertyTypeId RDimLinearEntity::PropertyDimscale

static

static RPropertyTypeId RDimLinearEntity::PropertyDimtad

static

static RPropertyTypeId RDimLinearEntity::PropertyDimtih

static

static RPropertyTypeId RDimLinearEntity::PropertyDimtsz

static

static RPropertyTypeId RDimLinearEntity::PropertyDimtxt

static

static RPropertyTypeId RDimLinearEntity::PropertyDimzin

static

static RPropertyTypeId RDimLinearEntity::PropertyDisplayedColor

static

static RPropertyTypeId RDimLinearEntity::PropertyDrawOrder

static

static RPropertyTypeId RDimLinearEntity::PropertyExtensionPoint1X

static

static RPropertyTypeId RDimLinearEntity::PropertyExtensionPoint1Y

static

static RPropertyTypeId RDimLinearEntity::PropertyExtensionPoint1Z

static

static RPropertyTypeId RDimLinearEntity::PropertyExtensionPoint2X

static

static RPropertyTypeId RDimLinearEntity::PropertyExtensionPoint2Y

static

static RPropertyTypeId RDimLinearEntity::PropertyExtensionPoint2Z

static

static RPropertyTypeId RDimLinearEntity::PropertyExtLineFix

static

static RPropertyTypeId RDimLinearEntity::PropertyExtLineFixLength

static

static RPropertyTypeId RDimLinearEntity::PropertyFontName

static

static RPropertyTypeId RDimLinearEntity::PropertyHandle

static

static RPropertyTypeId RDimLinearEntity::PropertyLayer

static

static RPropertyTypeId RDimLinearEntity::PropertyLinetype

static

static RPropertyTypeId RDimLinearEntity::PropertyLinetypeScale

static

static RPropertyTypeId RDimLinearEntity::PropertyLineweight

static

static RPropertyTypeId RDimLinearEntity::PropertyLowerTolerance

static

static RPropertyTypeId RDimLinearEntity::PropertyMeasuredValue

static

static RPropertyTypeId RDimLinearEntity::PropertyMiddleOfTextX

static

static RPropertyTypeId RDimLinearEntity::PropertyMiddleOfTextY

static

static RPropertyTypeId RDimLinearEntity::PropertyMiddleOfTextZ

static

static RPropertyTypeId RDimLinearEntity::PropertyProtected

static

static RPropertyTypeId RDimLinearEntity::PropertyText

static

static RPropertyTypeId RDimLinearEntity::PropertyType

static

static RPropertyTypeId RDimLinearEntity::PropertyUpperTolerance

static

static RPropertyTypeId RDimLinearEntity::PropertyWorkingSet

static

virtual void RDimLinearEntity::print(QDebug dbg) const

virtual const protected

Stream operator for QDebug.

Reimplemented from print.

Reimplemented in print, print.