LibreCAD
|
#include <line.h>
Public Member Functions | |
LineBuilder () | |
virtual | ~LineBuilder () |
const geo::Coordinate & | start () const |
Get line start. More... | |
LineBuilder * | setStart (const geo::Coordinate &start) |
Set line start. More... | |
const geo::Coordinate & | end () const |
Get line end. More... | |
LineBuilder * | setEnd (const geo::Coordinate &end) |
Set line end. More... | |
entity::Line_CSPtr | build () |
Create the line. More... | |
![]() | |
CADEntityBuilder () | |
virtual | ~CADEntityBuilder () |
void | copy (entity::CADEntity_CSPtr entity) |
const Layer_CSPtr & | layer () const |
Get layer. More... | |
void | setLayer (const Layer_CSPtr &layer) |
Set the layer. More... | |
const MetaInfo_CSPtr & | metaInfo () const |
Get MetaInfo. More... | |
void | setMetaInfo (const MetaInfo_CSPtr &metaInfo) |
Set MetaInfo. More... | |
const Block_CSPtr & | block () const |
Get block. More... | |
void | setBlock (const Block_CSPtr &block) |
Set the Block. More... | |
const ID_DATATYPE | id () const |
Get entity ID. More... | |
void | setID (ID_DATATYPE id) |
Set entity ID. More... | |
void | newID () |
Generate new ID for the entity. More... | |
virtual bool | checkValues () |
Private Attributes | |
geo::Coordinate | _start |
geo::Coordinate | _end |
lc::entity::Line_CSPtr LineBuilder::build | ( | ) |
const lc::geo::Coordinate & LineBuilder::end | ( | ) | const |
Get line end.
LineBuilder * LineBuilder::setEnd | ( | const geo::Coordinate & | end | ) |
Set line end.
end | Coordinate |
Definition at line 28 of file line.cpp.
LineBuilder * LineBuilder::setStart | ( | const geo::Coordinate & | start | ) |
Set line start.
start | Coordinate |
Definition at line 19 of file line.cpp.
const lc::geo::Coordinate & LineBuilder::start | ( | ) | const |
|
private |
|
private |