Skip to content

RDimStyle

Class in Entity Module
Header: #include <src/core/RDimStyle.h>
Inherits: RObject, RDimStyleData

Dimension style class.

This is responsible for rendering dimensions depending on style settings.

Scriptable: This class is available in script environments.

Shared Pointer Support: Objects can be used in QSharedPointer.

RDimStyle()
RDimStyle(RDocument *document)
virtual ~RDimStyle()
virtual QSharedPointer< RObject > clone() const
QSharedPointer< RDimStyle > cloneToDimStyle() const
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
virtual RS::EntityType getType() const
void render(const REntityData &entityData, bool preview, bool forceSelected)
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction)
Sets the given property to the given value.
void updateDocumentVariables(RTransaction *transaction=NULL)
Copies the dimension settings of this dim style to the document variables.
void updateFromDocumentVariables()
static RDimStyleProxy * getDimStyleProxy()
static RS::EntityType getRtti()
static bool hasProxy()
static void init()
static void initDimX(const RPropertyTypeId &propertyTypeId, RS::KnownVariable var, RS::KnownVariableType type)
static void setDimStyleProxy(RDimStyleProxy *p)
static RPropertyTypeId PropertyArchTick
static RPropertyTypeId PropertyCustom
static RPropertyTypeId PropertyDimadec
static RPropertyTypeId PropertyDimasz
static RPropertyTypeId PropertyDimaunit
static RPropertyTypeId PropertyDimazin
static RPropertyTypeId PropertyDimblk
static RPropertyTypeId PropertyDimblk1
static RPropertyTypeId PropertyDimblk2
static RPropertyTypeId PropertyDimclrt
static RPropertyTypeId PropertyDimdec
static RPropertyTypeId PropertyDimdli
static RPropertyTypeId PropertyDimdsep
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 PropertyHandle
static RPropertyTypeId PropertyProtected
static QList< QPair< RPropertyTypeId, RS::KnownVariable > > propertyVariables
static RDimStyleProxy * dimStyleProxy
QDebug operator<<(QDebug dbg, const RDimStyle &s)

RDimStyle::RDimStyle()

RDimStyle::RDimStyle(RDocument *document)

virtual RDimStyle::~RDimStyle()

virtual

virtual QSharedPointer< RObject > RDimStyle::clone() const

virtual inline const

Reimplemented from clone.

QSharedPointer< RDimStyle > RDimStyle::cloneToDimStyle() const

inline const

virtual QPair< QVariant, RPropertyAttributes > RDimStyle::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.

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

virtual inline const

Returns: The unique entity type, usually the same as RTTI, different for custom entities.

Reimplemented from getType.

void RDimStyle::render(const REntityData &entityData, bool preview, bool forceSelected)

inline

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

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.

void RDimStyle::updateDocumentVariables(RTransaction *transaction=NULL)

Copies the dimension settings of this dim style to the document variables.

All changes are made in the given transaction or, if no transaction is given, in one local transaction, so they form a single undo step (instead of one per variable). Variables that are already up to date are left alone and no transaction is created if nothing has changed.

void RDimStyle::updateFromDocumentVariables()

static RDimStyleProxy * RDimStyle::getDimStyleProxy()

static inline

Non-Scriptable: This function is not available in script environments.

static RS::EntityType RDimStyle::getRtti()

static inline

static bool RDimStyle::hasProxy()

static inline

static void RDimStyle::init()

static

static void RDimStyle::initDimX(const RPropertyTypeId &propertyTypeId, RS::KnownVariable var, RS::KnownVariableType type)

static

static void RDimStyle::setDimStyleProxy(RDimStyleProxy *p)

static inline

Non-Scriptable: This function is not available in script environments.

static RPropertyTypeId RDimStyle::PropertyArchTick

static

static RPropertyTypeId RDimStyle::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 RDimStyle::PropertyDimadec

static

static RPropertyTypeId RDimStyle::PropertyDimasz

static

static RPropertyTypeId RDimStyle::PropertyDimaunit

static

static RPropertyTypeId RDimStyle::PropertyDimazin

static

static RPropertyTypeId RDimStyle::PropertyDimblk

static

static RPropertyTypeId RDimStyle::PropertyDimblk1

static

static RPropertyTypeId RDimStyle::PropertyDimblk2

static

static RPropertyTypeId RDimStyle::PropertyDimclrt

static

static RPropertyTypeId RDimStyle::PropertyDimdec

static

static RPropertyTypeId RDimStyle::PropertyDimdli

static

static RPropertyTypeId RDimStyle::PropertyDimdsep

static

static RPropertyTypeId RDimStyle::PropertyDimexe

static

static RPropertyTypeId RDimStyle::PropertyDimexo

static

static RPropertyTypeId RDimStyle::PropertyDimgap

static

static RPropertyTypeId RDimStyle::PropertyDimlfac

static

static RPropertyTypeId RDimStyle::PropertyDimlunit

static

static RPropertyTypeId RDimStyle::PropertyDimscale

static

static RPropertyTypeId RDimStyle::PropertyDimtad

static

static RPropertyTypeId RDimStyle::PropertyDimtih

static

static RPropertyTypeId RDimStyle::PropertyDimtsz

static

static RPropertyTypeId RDimStyle::PropertyDimtxt

static

static RPropertyTypeId RDimStyle::PropertyDimzin

static

static RPropertyTypeId RDimStyle::PropertyHandle

static

static RPropertyTypeId RDimStyle::PropertyProtected

static

static QList< QPair< RPropertyTypeId, RS::KnownVariable > > RDimStyle::propertyVariables

static

static RDimStyleProxy * RDimStyle::dimStyleProxy = NULL

static private

QDebug operator<<(QDebug dbg, const RDimStyle &s)

Non-Scriptable: This function is not available in script environments.