Skip to content

RLinetype

Class in Core Module
Header: #include <src/core/RLinetype.h>
Inherits: RObject

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.

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) const
Stream 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 RS::EntityType getRtti()
static void init()
static RPropertyTypeId PropertyDescription
static RPropertyTypeId PropertyMetric
static RPropertyTypeId PropertyName
static RPropertyTypeId PropertyPatternString
static RPropertyTypeId PropertyType
RLinetypePattern pattern

RLinetype::RLinetype(const RLinetype &other)

RLinetype::RLinetype(RDocument *document, const RLinetypePattern &pattern)

RLinetype::RLinetype(RDocument *document=NULL)

virtual RLinetype::~RLinetype()

virtual

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

virtual inline const

Reimplemented from clone.

QSharedPointer< RLinetype > RLinetype::cloneToLinetype() const

inline const

QString RLinetype::getDescription() const

inline const

QString RLinetype::getLabel() const

inline const

QString RLinetype::getName() const

inline const

RLinetypePattern RLinetype::getPattern() const

const

QString RLinetype::getPatternString() const

inline const

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.

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

virtual inline const

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

Reimplemented from getType.

bool RLinetype::isMetric() const

inline const

bool RLinetype::isValid() const

const

bool RLinetype::operator!=(const RLinetype &linetype) const

const

bool RLinetype::operator<(const RLinetype &linetype) const

const

bool RLinetype::operator==(const RLinetype &linetype) const

const

virtual void RLinetype::print(QDebug dbg) const

virtual const

Stream operator for QDebug.

Reimplemented from print.

void RLinetype::setDescription(const QString &d)

inline

void RLinetype::setMetric(bool on)

inline

void RLinetype::setName(const QString &n)

inline

void RLinetype::setPattern(const RLinetypePattern &p)

void RLinetype::setPatternString(const QString &s)

inline

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.

static RS::EntityType RLinetype::getRtti()

static inline

static void RLinetype::init()

static

static RPropertyTypeId RLinetype::PropertyDescription

static

static RPropertyTypeId RLinetype::PropertyMetric

static

static RPropertyTypeId RLinetype::PropertyName

static

static RPropertyTypeId RLinetype::PropertyPatternString

static

static RPropertyTypeId RLinetype::PropertyType

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.

RLinetypePattern RLinetype::pattern

private