|
| virtual QSharedPointer< RObject > | clone () const |
| |
| QSharedPointer< RDimStyle > | cloneToDimStyle () const |
| |
| QPair< QVariant, RPropertyAttributes > | getProperty (RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| |
| virtual RS::EntityType | getType () const |
| |
| | RDimStyle () |
| |
| | RDimStyle (RDocument *document) |
| |
| void | render (const REntityData &entityData, bool preview, bool forceSelected) |
| |
| bool | setProperty (RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction) |
| | Sets the given property to the given value.
|
| |
| void | updateDocumentVariables () |
| |
| void | updateFromDocumentVariables () |
| |
| virtual | ~RDimStyle () |
| |
| void | copyCustomPropertiesFrom (const RObject *other, const QString &title=RDEFAULT_QSTRING, bool overwrite=false, const QStringList &ignoreList=RDEFAULT_QSTRINGLIST, const QString &mapKeyFrom=RDEFAULT_QSTRING, const QString &mapKeyTo=RDEFAULT_QSTRING) |
| | Copies all custom properties from the given object.
|
| |
| void | dump () const |
| |
| virtual int | getComplexity () const |
| |
| virtual bool | getCustomBoolProperty (const QString &title, const QString &key, bool defaultValue) const |
| |
| virtual double | getCustomDoubleProperty (const QString &title, const QString &key, double defaultValue) const |
| |
| virtual int | getCustomIntProperty (const QString &title, const QString &key, int defaultValue) const |
| |
| QMap< QString, QVariantMap > | getCustomProperties () const |
| |
| virtual QVariant | getCustomProperty (const QString &title, const QString &key, const QVariant &defaultValue=RDEFAULT_QVARIANT) const |
| |
| QStringList | getCustomPropertyKeys (const QString &title) const |
| |
| QStringList | getCustomPropertyTitles () const |
| |
| virtual QSet< RPropertyTypeId > | getCustomPropertyTypeIds () const |
| |
| RDocument * | getDocument () |
| |
| const RDocument * | getDocument () const |
| |
| bool | getFlag (int flag) const |
| |
| RObject::Handle | getHandle () const |
| |
| RObject::Id | getId () const |
| |
| virtual QSet< RPropertyTypeId > | getPropertyTypeIds (RPropertyAttributes::Option option=RPropertyAttributes::NoOptions) const |
| |
| bool | hasCustomProperties () const |
| |
| bool | hasCustomProperty (const QString &title, const QRegularExpression &key) const |
| |
| bool | hasCustomProperty (const QString &title, const QString &key) const |
| |
| virtual bool | hasPropertyType (RPropertyTypeId propertyTypeId) |
| |
| bool | isInvisible () const |
| |
| virtual bool | isOfType (RS::EntityType t) const |
| | Override to indicate that this entity is of a certain type, e.g.
|
| |
| bool | isProtected () const |
| |
| virtual bool | isSelected () const |
| |
| bool | isUndone () const |
| |
| virtual bool | isWorkingSet () const |
| |
| virtual bool | mustAlwaysClone () const |
| |
| virtual void | removeCustomProperty (const QString &title, const QString &key) |
| | Removes the custom property with the given name.
|
| |
| | RObject (const RObject &other) |
| |
| | RObject (RDocument *document=NULL) |
| |
| virtual void | setAutoUpdatesBlocked (bool on) |
| |
| virtual void | setCustomProperties (const RQMapQStringQString &properties) |
| |
| virtual void | setCustomProperty (const QString &title, const QString &key, const QVariant &value) |
| | Sets a custom property with the given name.
|
| |
| void | setDocument (RDocument *document) |
| |
| void | setFlag (int flag, bool on=true) |
| |
| void | setInvisible (bool on) |
| |
| void | setProtected (bool on) |
| |
| virtual void | setSelected (bool on) |
| |
| virtual void | setWorkingSet (bool on) |
| |
| virtual bool | validate () |
| |
| virtual | ~RObject () |
| |
| void | clear () |
| |
| bool | getBool (RS::KnownVariable key) const |
| |
| RColor | getColor (RS::KnownVariable key) const |
| |
| double | getDouble (RS::KnownVariable key) const |
| |
| int | getInt (RS::KnownVariable key) const |
| |
| QVariant | getVariant (RS::KnownVariable key) const |
| |
| bool | hasOverride (RS::KnownVariable key) const |
| |
| void | initFromSettings () |
| |
| bool | isValid () const |
| |
| | RDimStyleData (bool override=false) |
| |
| void | removeBool (RS::KnownVariable key) |
| |
| void | removeColor (RS::KnownVariable key) |
| |
| void | removeDouble (RS::KnownVariable key) |
| |
| void | removeInt (RS::KnownVariable key) |
| |
| virtual void | setBool (RS::KnownVariable key, bool val) |
| |
| virtual void | setColor (RS::KnownVariable key, const RColor &val) |
| |
| virtual void | setDouble (RS::KnownVariable key, double val) |
| |
| virtual void | setInt (RS::KnownVariable key, int val) |
| |
| void | setVariant (RS::KnownVariable key, const QVariant &val) |
| |
| virtual | ~RDimStyleData () |
| |
|
| typedef int | Handle |
| |
| typedef int | Id |
| |
| enum | ObjectFlag {
NoFlags = 0x000
, Undone = 0x001
, Protect = 0x002
, Selected = 0x004
,
Invisible = 0x008
, WorkingSet = 0x010
} |
| |
| enum | XYZ { X
, Y
, Z
} |
| |
| virtual void | print (QDebug dbg) const |
| | Stream operator for QDebug.
|
| |
| void | setHandle (RObject::Handle h) |
| |
| void | setId (RObject::Id id) |
| |
| bool | setMemberFlag (int flag, const QVariant &value, bool condition=true) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| void | setUndone (bool on) |
| |
| static bool | setMember (bool &variable, const QVariant &value, bool condition=true) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| static bool | setMember (double &variable, const QVariant &value, bool condition=true) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| static bool | setMember (int &variable, const QVariant &value, bool condition=true) |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
| static bool | setMember (QList< double > &variable, const QVariant &value, bool condition) |
| |
| static bool | setMember (QList< int > &variable, const QVariant &value, bool condition) |
| |
| static bool | setMember (QString &variable, const QVariant &value, bool condition=true) |
| | Sets the given property.
|
| |
| static bool | setMemberVector (QList< RVector > &variable, const QVariant &value, RObject::XYZ xyz) |
| |
| static bool | setMemberX (QList< RVector > &variable, const QVariant &value, bool condition=true) |
| |
| static bool | setMemberY (QList< RVector > &variable, const QVariant &value, bool condition=true) |
| |
| static bool | setMemberZ (QList< RVector > &variable, const QVariant &value, bool condition=true) |
| |
| QMap< RS::KnownVariable, bool > | mapBool |
| |
| QMap< RS::KnownVariable, RColor > | mapColor |
| |
| QMap< RS::KnownVariable, double > | mapDouble |
| |
| QMap< RS::KnownVariable, int > | mapInt |
| |
| static QMap< RS::KnownVariable, QVariant > | mapDefaults |
| | Copyright (c) 2011-2021 by Andrew Mustun.
|
| |
Dimension style class.
This is responsible for rendering dimensions depending on style settings.
- Scriptable:\nThis class is available in script environments.\n
- Shared Pointer Support:\nObjects can be used in QSharedPointer.\n
Copyright (c) 2011-2021 by Andrew Mustun.
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.