LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
metalinewidth.cpp
Go to the documentation of this file.
1 #include "metalinewidth.h"
2 #include <cassert>
3 
4 using namespace lc;
5 
6 const std::string MetaLineWidth::LCMETANAME() {
7  return "_LINEWIDTH";
8 }
9 
10 const std::string MetaLineWidth::id() const {
11  return LCMETANAME();
12 }
13 
15 }
16 
17 const std::string MetaLineWidthByBlock::metaTypeID() const {
19 }
20 
21 
23  MetaLineWidth(),
25  _width(0.) {
26 
27  assert(_width >= 0. && "Line width must be >= 0.");
28 }
29 
31  MetaLineWidth(),
33  _width(width) {
34 
35  assert(_width>=0. && "Line width must be >= 0.");
36 }
37 
38 const std::string MetaLineWidthByValue::metaTypeID() const {
40 }
41 
43  return _width;
44 }
45 
46 const std::string MetaLineWidthByValue::name() const {
47  return LCMETANAME();
48 }
static const std::string LCMETANAME()
Definition: cadentity.h:12
virtual const std::string metaTypeID() const override
const std::string name() const override
virtual const std::string id() const override
virtual const std::string metaTypeID() const override