LibreCAD
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
LibreCAD
Todo List
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
block.cpp
Go to the documentation of this file.
1
#include "
block.h
"
2
3
lc::Block::Block
(std::string name,
lc::geo::Coordinate
base) :
4
_name(name),
5
_base(base) {
6
}
7
8
const
std::string
lc::Block::id
()
const
{
9
return
BLOCK_ID_PREFIX
"_"
+ _name;
10
}
11
12
const
std::string
lc::Block::name
()
const
{
13
return
_name;
14
}
15
16
const
lc::geo::Coordinate
&
lc::Block::base
()
const
{
17
return
_base;
18
}
lc::Block::base
const geo::Coordinate & base() const
Definition:
block.cpp:16
lc::Block::Block
Block(std::string name, geo::Coordinate base)
Definition:
block.cpp:3
lc::Block::name
const std::string name() const override
Definition:
block.cpp:12
lc::Block::id
const std::string id() const override
Definition:
block.cpp:8
BLOCK_ID_PREFIX
#define BLOCK_ID_PREFIX
Definition:
block.h:10
lc::geo::Coordinate
Definition:
geocoordinate.h:12
block.h
lckernel
cad
meta
block.cpp
Generated on Mon Jun 18 2018 14:02:07 for LibreCAD by
1.8.8