RDimStyleData
Class in Entity Module
Header: #include <src/core/RDimStyleData.h>
Inherited by: RDimStyle
Description
Section titled “Description”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. Dimension style data class.
Scriptable: This class is available in script environments.
Copyable: Objects are cleaned up automatically by the garbage collector of the script engine.
Public Functions
Section titled “Public Functions”RDimStyleData(bool override=false) |
|
| virtual | ~RDimStyleData() |
| 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 |
| 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) |
Static Public Functions
Section titled “Static Public Functions”| static bool | getBoolDefault(RS::KnownVariable key) |
| static RColor | getColorDefault(RS::KnownVariable key) |
| static double | getDoubleDefault(RS::KnownVariable key) |
| static int | getIntDefault(RS::KnownVariable key) |
| static RS::KnownVariableType | getVariableType(RS::KnownVariable key) |
| static QVariant | getVariantDefault(RS::KnownVariable key) |
| static void | init() |
| static void | initDefaults() |
Static Public Attributes
Section titled “Static Public Attributes”| static QMap< RS::KnownVariable, RS::KnownVariableType > | dimXTypes |
Protected Attributes
Section titled “Protected Attributes”| QMap< RS::KnownVariable, bool > | mapBool |
| QMap< RS::KnownVariable, RColor > | mapColor |
| QMap< RS::KnownVariable, double > | mapDouble |
| QMap< RS::KnownVariable, int > | mapInt |
Static Protected Attributes
Section titled “Static Protected Attributes”| static QMap< RS::KnownVariable, QVariant > | mapDefaults |
Friends
Section titled “Friends”| QDebug | operator<<(QDebug dbg, const RDimStyleData &d) |
Member Documentation
Section titled “Member Documentation”RDimStyleData
Section titled “RDimStyleData”RDimStyleData::RDimStyleData(bool override=false)~RDimStyleData
Section titled “~RDimStyleData”virtual RDimStyleData::~RDimStyleData()virtual
void RDimStyleData::clear()inline
getBool
Section titled “getBool”bool RDimStyleData::getBool(RS::KnownVariable key) constinline const
getColor
Section titled “getColor”RColor RDimStyleData::getColor(RS::KnownVariable key) constinline const
getDouble
Section titled “getDouble”double RDimStyleData::getDouble(RS::KnownVariable key) constinline const
getInt
Section titled “getInt”int RDimStyleData::getInt(RS::KnownVariable key) constinline const
getVariant
Section titled “getVariant”QVariant RDimStyleData::getVariant(RS::KnownVariable key) constinline const
hasOverride
Section titled “hasOverride”bool RDimStyleData::hasOverride(RS::KnownVariable key) constinline const
initFromSettings
Section titled “initFromSettings”void RDimStyleData::initFromSettings()isValid
Section titled “isValid”bool RDimStyleData::isValid() constinline const
removeBool
Section titled “removeBool”void RDimStyleData::removeBool(RS::KnownVariable key)inline
removeColor
Section titled “removeColor”void RDimStyleData::removeColor(RS::KnownVariable key)inline
removeDouble
Section titled “removeDouble”void RDimStyleData::removeDouble(RS::KnownVariable key)inline
removeInt
Section titled “removeInt”void RDimStyleData::removeInt(RS::KnownVariable key)inline
setBool
Section titled “setBool”virtual void RDimStyleData::setBool(RS::KnownVariable key, bool val)virtual inline
setColor
Section titled “setColor”virtual void RDimStyleData::setColor(RS::KnownVariable key, const RColor &val)virtual inline
setDouble
Section titled “setDouble”virtual void RDimStyleData::setDouble(RS::KnownVariable key, double val)virtual inline
setInt
Section titled “setInt”virtual void RDimStyleData::setInt(RS::KnownVariable key, int val)virtual inline
setVariant
Section titled “setVariant”void RDimStyleData::setVariant(RS::KnownVariable key, const QVariant &val)inline
getBoolDefault
Section titled “getBoolDefault”static bool RDimStyleData::getBoolDefault(RS::KnownVariable key)static
getColorDefault
Section titled “getColorDefault”static RColor RDimStyleData::getColorDefault(RS::KnownVariable key)static
getDoubleDefault
Section titled “getDoubleDefault”static double RDimStyleData::getDoubleDefault(RS::KnownVariable key)static
getIntDefault
Section titled “getIntDefault”static int RDimStyleData::getIntDefault(RS::KnownVariable key)static
getVariableType
Section titled “getVariableType”static RS::KnownVariableType RDimStyleData::getVariableType(RS::KnownVariable key)static inline
getVariantDefault
Section titled “getVariantDefault”static QVariant RDimStyleData::getVariantDefault(RS::KnownVariable key)static
static void RDimStyleData::init()static
initDefaults
Section titled “initDefaults”static void RDimStyleData::initDefaults()static
dimXTypes
Section titled “dimXTypes”static QMap< RS::KnownVariable, RS::KnownVariableType > RDimStyleData::dimXTypesstatic
mapBool
Section titled “mapBool”QMap<RS::KnownVariable, bool> RDimStyleData::mapBoolprotected
mapColor
Section titled “mapColor”QMap<RS::KnownVariable, RColor> RDimStyleData::mapColorprotected
mapDouble
Section titled “mapDouble”QMap<RS::KnownVariable, double> RDimStyleData::mapDoubleprotected
mapInt
Section titled “mapInt”QMap<RS::KnownVariable, int> RDimStyleData::mapIntprotected
mapDefaults
Section titled “mapDefaults”static QMap< RS::KnownVariable, QVariant > RDimStyleData::mapDefaultsstatic protected
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.
operator<<
Section titled “operator<<”QDebug operator<<(QDebug dbg, const RDimStyleData &d)inline