63 virtual QSharedPointer<RObject>
clone()
const {
64 return QSharedPointer<RObject>(
new RLayerState(*
this));
68 return QSharedPointer<RLayerState>(
new RLayerState(*
this));
75 virtual QPair<QVariant, RPropertyAttributes>
getProperty(
77 bool humanReadable =
false,
bool noAttributes =
false,
bool showOnRequest =
false);
105 void addLayer(QSharedPointer<RLayer> layer);
107 QList<QSharedPointer<RLayer> > getLayers()
const;
109 QStringList getLayerNames()
const;
110 QSharedPointer<RLayer> getLayer(
const QString& layerName)
const;
QCADCORE_EXPORT QDebug operator<<(QDebug dbg, const RLayerState &l)
Stream operator for QDebug.
Definition RLayerState.cpp:105
Q_DECLARE_METATYPE(RMath *)
A graphics document contains and owns entities, layers, user coordinate systems, variables,...
Definition RDocument.h:78
Represents a layer state (state of list of layers) in a drawing.
Definition RLayerState.h:37
QString getName() const
Definition RLayerState.h:81
virtual RS::EntityType getType() const
Definition RLayerState.h:59
static RS::EntityType getRtti()
Definition RLayerState.h:55
QString getCurrentLayerName() const
Definition RLayerState.h:97
static RPropertyTypeId PropertyName
Definition RLayerState.h:44
virtual QSharedPointer< RObject > clone() const
Definition RLayerState.h:63
static RPropertyTypeId PropertyHandle
Definition RLayerState.h:41
void setName(const QString &n)
Definition RLayerState.h:85
QList< QSharedPointer< RLayer > > layers
Definition RLayerState.h:116
QString currentLayer
Definition RLayerState.h:115
QString description
Definition RLayerState.h:114
QString name
Definition RLayerState.h:113
static RPropertyTypeId PropertyType
Definition RLayerState.h:40
void setCurrentLayerName(const QString &l)
Definition RLayerState.h:101
QString getDescription() const
Definition RLayerState.h:89
static RPropertyTypeId PropertyCustom
Copyright (c) 2019 by Andrew Mustun.
Definition RLayerState.h:39
QSharedPointer< RLayerState > cloneToLayerState() const
Definition RLayerState.h:67
static RPropertyTypeId PropertyProtected
Definition RLayerState.h:42
virtual bool mustAlwaysClone() const
Definition RLayerState.h:71
void setDescription(const QString &d)
Definition RLayerState.h:93
Abstract base class for all objects.
Definition RObject.h:64
static void init()
Definition RObject.cpp:68
virtual bool setProperty(RPropertyTypeId propertyTypeId, const QVariant &value, RTransaction *transaction=NULL)
Sets the given property to the given value.
Definition RObject.cpp:180
virtual QPair< QVariant, RPropertyAttributes > getProperty(RPropertyTypeId &propertyTypeId, bool humanReadable=false, bool noAttributes=false, bool showOnRequest=false)
Definition RObject.cpp:136
Copyright (c) 2011-2018 by Andrew Mustun.
Definition RPropertyTypeId.h:54
EntityType
Entity types used for property handling / filtering.
Definition RS.h:227
@ ObjectLayerState
Definition RS.h:235
Transaction implementation.
Definition RTransaction.h:73
#define QCADCORE_EXPORT
Definition core_global.h:10
void addLayer(void name, void colorName, void linetypeName, void lineWeight)
Adds a layer to the drawing.
Definition simple_create.js:138
#define NULL
Definition opennurbs_system.h:256