RDimStyle
Class in Entity Module
Header: #include <src/core/RDimStyle.h>
Inherits: RObject, RDimStyleData
Description
Section titled “Description”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.
Public Functions
Section titled “Public Functions”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 Public Functions
Section titled “Static Public Functions”| 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 Public Attributes
Section titled “Static Public Attributes”Static Private Attributes
Section titled “Static Private Attributes”| static RDimStyleProxy * | dimStyleProxy |
Friends
Section titled “Friends”| QDebug | operator<<(QDebug dbg, const RDimStyle &s) |
Member Documentation
Section titled “Member Documentation”RDimStyle
Section titled “RDimStyle”RDimStyle::RDimStyle()RDimStyle
Section titled “RDimStyle”RDimStyle::RDimStyle(RDocument *document)~RDimStyle
Section titled “~RDimStyle”virtual RDimStyle::~RDimStyle()virtual
virtual QSharedPointer< RObject > RDimStyle::clone() constvirtual inline const
Reimplemented from clone.
cloneToDimStyle
Section titled “cloneToDimStyle”QSharedPointer< RDimStyle > RDimStyle::cloneToDimStyle() constinline const
getProperty
Section titled “getProperty”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.
getType
Section titled “getType”virtual RS::EntityType RDimStyle::getType() constvirtual inline const
Returns: The unique entity type, usually the same as RTTI, different for custom entities.
Reimplemented from getType.
render
Section titled “render”void RDimStyle::render(const REntityData &entityData, bool preview, bool forceSelected)inline
setProperty
Section titled “setProperty”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.
updateDocumentVariables
Section titled “updateDocumentVariables”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.
updateFromDocumentVariables
Section titled “updateFromDocumentVariables”void RDimStyle::updateFromDocumentVariables()getDimStyleProxy
Section titled “getDimStyleProxy”static RDimStyleProxy * RDimStyle::getDimStyleProxy()static inline
Non-Scriptable: This function is not available in script environments.
getRtti
Section titled “getRtti”static RS::EntityType RDimStyle::getRtti()static inline
hasProxy
Section titled “hasProxy”static bool RDimStyle::hasProxy()static inline
static void RDimStyle::init()static
initDimX
Section titled “initDimX”static void RDimStyle::initDimX(const RPropertyTypeId &propertyTypeId, RS::KnownVariable var, RS::KnownVariableType type)static
setDimStyleProxy
Section titled “setDimStyleProxy”static void RDimStyle::setDimStyleProxy(RDimStyleProxy *p)static inline
Non-Scriptable: This function is not available in script environments.
PropertyArchTick
Section titled “PropertyArchTick”static RPropertyTypeId RDimStyle::PropertyArchTickstatic
PropertyCustom
Section titled “PropertyCustom”static RPropertyTypeId RDimStyle::PropertyCustomstatic
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.
PropertyDimadec
Section titled “PropertyDimadec”static RPropertyTypeId RDimStyle::PropertyDimadecstatic
PropertyDimasz
Section titled “PropertyDimasz”static RPropertyTypeId RDimStyle::PropertyDimaszstatic
PropertyDimaunit
Section titled “PropertyDimaunit”static RPropertyTypeId RDimStyle::PropertyDimaunitstatic
PropertyDimazin
Section titled “PropertyDimazin”static RPropertyTypeId RDimStyle::PropertyDimazinstatic
PropertyDimblk
Section titled “PropertyDimblk”static RPropertyTypeId RDimStyle::PropertyDimblkstatic
PropertyDimblk1
Section titled “PropertyDimblk1”static RPropertyTypeId RDimStyle::PropertyDimblk1static
PropertyDimblk2
Section titled “PropertyDimblk2”static RPropertyTypeId RDimStyle::PropertyDimblk2static
PropertyDimclrt
Section titled “PropertyDimclrt”static RPropertyTypeId RDimStyle::PropertyDimclrtstatic
PropertyDimdec
Section titled “PropertyDimdec”static RPropertyTypeId RDimStyle::PropertyDimdecstatic
PropertyDimdli
Section titled “PropertyDimdli”static RPropertyTypeId RDimStyle::PropertyDimdlistatic
PropertyDimdsep
Section titled “PropertyDimdsep”static RPropertyTypeId RDimStyle::PropertyDimdsepstatic
PropertyDimexe
Section titled “PropertyDimexe”static RPropertyTypeId RDimStyle::PropertyDimexestatic
PropertyDimexo
Section titled “PropertyDimexo”static RPropertyTypeId RDimStyle::PropertyDimexostatic
PropertyDimgap
Section titled “PropertyDimgap”static RPropertyTypeId RDimStyle::PropertyDimgapstatic
PropertyDimlfac
Section titled “PropertyDimlfac”static RPropertyTypeId RDimStyle::PropertyDimlfacstatic
PropertyDimlunit
Section titled “PropertyDimlunit”static RPropertyTypeId RDimStyle::PropertyDimlunitstatic
PropertyDimscale
Section titled “PropertyDimscale”static RPropertyTypeId RDimStyle::PropertyDimscalestatic
PropertyDimtad
Section titled “PropertyDimtad”static RPropertyTypeId RDimStyle::PropertyDimtadstatic
PropertyDimtih
Section titled “PropertyDimtih”static RPropertyTypeId RDimStyle::PropertyDimtihstatic
PropertyDimtsz
Section titled “PropertyDimtsz”static RPropertyTypeId RDimStyle::PropertyDimtszstatic
PropertyDimtxt
Section titled “PropertyDimtxt”static RPropertyTypeId RDimStyle::PropertyDimtxtstatic
PropertyDimzin
Section titled “PropertyDimzin”static RPropertyTypeId RDimStyle::PropertyDimzinstatic
PropertyHandle
Section titled “PropertyHandle”static RPropertyTypeId RDimStyle::PropertyHandlestatic
PropertyProtected
Section titled “PropertyProtected”static RPropertyTypeId RDimStyle::PropertyProtectedstatic
propertyVariables
Section titled “propertyVariables”static QList< QPair< RPropertyTypeId, RS::KnownVariable > > RDimStyle::propertyVariablesstatic
dimStyleProxy
Section titled “dimStyleProxy”static RDimStyleProxy * RDimStyle::dimStyleProxy = NULLstatic private
operator<<
Section titled “operator<<”QDebug operator<<(QDebug dbg, const RDimStyle &s)Non-Scriptable: This function is not available in script environments.