LibreCAD
|
#include <layer.h>
Public Member Functions | |
Layer () | |
Layer (const std::string name, const MetaLineWidthByValue lineWidth, const Color color) | |
Layer (const std::string name, const MetaLineWidthByValue lineWidth, const Color color, DxfLinePatternByValue_CSPtr linepattern, const bool frozen) | |
Layer (const std::string name, const Color color) | |
Layer (const std::string name, const MetaLineWidthByValue lineWidth) | |
virtual | ~Layer ()=default |
virtual const std::string | id () const |
virtual const std::string | metaTypeID () const |
MetaLineWidthByValue | lineWidth () const |
Color | color () const |
DxfLinePatternByValue_CSPtr | linePattern () const |
bool | isFrozen () const |
virtual const std::string | name () const |
bool | operator== (const Layer &layer) const |
![]() | |
MetaType () | |
virtual | ~MetaType ()=default |
Static Public Member Functions | |
static const std::string | LCMETANAME () |
Private Member Functions | |
Layer (const builder::LayerBuilder &builder) | |
Private Attributes | |
std::string | _name |
MetaLineWidthByValue | _lineWidth |
Color | _color |
DxfLinePatternByValue_CSPtr | _linepattern |
bool | _isFrozen |
Friends | |
class | builder::LayerBuilder |
std::ostream & | operator<< (std::ostream &os, const Layer &layer) |
Layer::Layer | ( | const std::string | name, |
const MetaLineWidthByValue | lineWidth, | ||
const Color | color | ||
) |
Definition at line 10 of file layer.cpp.
Layer::Layer | ( | const std::string | name, |
const MetaLineWidthByValue | lineWidth, | ||
const Color | color, | ||
DxfLinePatternByValue_CSPtr | linepattern, | ||
const bool | frozen | ||
) |
Definition at line 21 of file layer.cpp.
Layer::Layer | ( | const std::string | name, |
const Color | color | ||
) |
Definition at line 46 of file layer.cpp.
Layer::Layer | ( | const std::string | name, |
const MetaLineWidthByValue | lineWidth | ||
) |
Definition at line 36 of file layer.cpp.
|
virtualdefault |
|
private |
Definition at line 56 of file layer.cpp.
Color Layer::color | ( | ) | const |
|
inlinevirtual |
ID or primary key of this MetaType. This can be used in a storage manager to identify each individual meta type.
Implements lc::MetaType.
Definition at line 31 of file layer.h.
bool Layer::isFrozen | ( | ) | const |
|
inlinestatic |
MetaLineWidthByValue Layer::lineWidth | ( | ) | const |
|
inlinevirtual |
metaTypeName, for example '_LAYER' this method isn't meant to be used for RTTI purpose, do use dynamic_casts or static_casts for that.
Implements lc::EntityMetaType.
Definition at line 35 of file layer.h.
|
virtual |
Name of this meta type, for layer this can be '0' 'My Layer' etc, for LineStyles this can be 'DASHDOT' .
Implements lc::DocumentMetaType.
|
inline |
|
friend |
|
friend |
|
private |