RLinetype
Class in Core Module
Header: #include <src/core/RLinetype.h>
Inherits: RObject
Description
Section titled “Description”Represents a linetype in a drawing.
A linetype is an object (RObject). A drawing contains and owns a set of linetypes.
Scriptable: This class is available in script environments.
Shared Pointer Support: Objects can be used in QSharedPointer.
Public Functions
Section titled “Public Functions”RLinetype(const RLinetype &other) |
|
RLinetype(RDocument *document, const RLinetypePattern &pattern) |
|
RLinetype(RDocument *document=NULL) |
|
| virtual | ~RLinetype() |
| virtual QSharedPointer< RObject > | clone() const |
| QSharedPointer< RLinetype > | cloneToLinetype() const |
| QString | getDescription() const |
| QString | getLabel() const |
| QString | getName() const |
| RLinetypePattern | getPattern() const |
| QString | getPatternString() const |
| virtual QPair< QVariant, RPropertyAttributes > | getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false) |
| virtual RS::EntityType | getType() const |
| bool | isMetric() const |
| bool | isValid() const |
| bool | operator!=(const RLinetype &linetype) const |
| bool | operator<(const RLinetype &linetype) const |
| bool | operator==(const RLinetype &linetype) const |
| virtual void | print(QDebug dbg) constStream operator for QDebug. |
| void | setDescription(const QString &d) |
| void | setMetric(bool on) |
| void | setName(const QString &n) |
| void | setPattern(const RLinetypePattern &p) |
| void | setPatternString(const QString &s) |
| virtual bool | setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)Sets the given property to the given value. |
Static Public Functions
Section titled “Static Public Functions”| static RS::EntityType | getRtti() |
| static void | init() |
Static Public Attributes
Section titled “Static Public Attributes”| static RPropertyTypeId | PropertyDescription |
| static RPropertyTypeId | PropertyMetric |
| static RPropertyTypeId | PropertyName |
| static RPropertyTypeId | PropertyPatternString |
| static RPropertyTypeId | PropertyType |
Private Attributes
Section titled “Private Attributes”| RLinetypePattern | pattern |
Member Documentation
Section titled “Member Documentation”RLinetype
Section titled “RLinetype”RLinetype::RLinetype(const RLinetype &other)RLinetype
Section titled “RLinetype”RLinetype::RLinetype(RDocument *document, const RLinetypePattern &pattern)RLinetype
Section titled “RLinetype”RLinetype::RLinetype(RDocument *document=NULL)~RLinetype
Section titled “~RLinetype”virtual RLinetype::~RLinetype()virtual
virtual QSharedPointer< RObject > RLinetype::clone() constvirtual inline const
Reimplemented from clone.
cloneToLinetype
Section titled “cloneToLinetype”QSharedPointer< RLinetype > RLinetype::cloneToLinetype() constinline const
getDescription
Section titled “getDescription”QString RLinetype::getDescription() constinline const
getLabel
Section titled “getLabel”QString RLinetype::getLabel() constinline const
getName
Section titled “getName”QString RLinetype::getName() constinline const
getPattern
Section titled “getPattern”RLinetypePattern RLinetype::getPattern() constconst
getPatternString
Section titled “getPatternString”QString RLinetype::getPatternString() constinline const
getProperty
Section titled “getProperty”virtual QPair< QVariant, RPropertyAttributes > RLinetype::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 RLinetype::getType() constvirtual inline const
Returns: The unique entity type, usually the same as RTTI, different for custom entities.
Reimplemented from getType.
isMetric
Section titled “isMetric”bool RLinetype::isMetric() constinline const
isValid
Section titled “isValid”bool RLinetype::isValid() constconst
operator!=
Section titled “operator!=”bool RLinetype::operator!=(const RLinetype &linetype) constconst
operator<
Section titled “operator<”bool RLinetype::operator<(const RLinetype &linetype) constconst
operator==
Section titled “operator==”bool RLinetype::operator==(const RLinetype &linetype) constconst
virtual void RLinetype::print(QDebug dbg) constvirtual const
Stream operator for QDebug.
Reimplemented from print.
setDescription
Section titled “setDescription”void RLinetype::setDescription(const QString &d)inline
setMetric
Section titled “setMetric”void RLinetype::setMetric(bool on)inline
setName
Section titled “setName”void RLinetype::setName(const QString &n)inline
setPattern
Section titled “setPattern”void RLinetype::setPattern(const RLinetypePattern &p)setPatternString
Section titled “setPatternString”void RLinetype::setPatternString(const QString &s)inline
setProperty
Section titled “setProperty”virtual bool RLinetype::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.
getRtti
Section titled “getRtti”static RS::EntityType RLinetype::getRtti()static inline
static void RLinetype::init()static
PropertyDescription
Section titled “PropertyDescription”static RPropertyTypeId RLinetype::PropertyDescriptionstatic
PropertyMetric
Section titled “PropertyMetric”static RPropertyTypeId RLinetype::PropertyMetricstatic
PropertyName
Section titled “PropertyName”static RPropertyTypeId RLinetype::PropertyNamestatic
PropertyPatternString
Section titled “PropertyPatternString”static RPropertyTypeId RLinetype::PropertyPatternStringstatic
PropertyType
Section titled “PropertyType”static RPropertyTypeId RLinetype::PropertyTypestatic
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.
pattern
Section titled “pattern”RLinetypePattern RLinetype::patternprivate