LibreCAD
|
The begin class Allows for setting up the beginning of a loop (NOT YET IMPLEMENTED) More...
#include <entityops.h>
Public Member Functions | |
Begin () | |
virtual | ~Begin () |
virtual std::vector < entity::CADEntity_CSPtr > | process (const std::shared_ptr< Document > document, std::vector< entity::CADEntity_CSPtr > entities, std::vector< entity::CADEntity_CSPtr > &workingBuffer, std::vector< entity::CADEntity_CSPtr > &removals, const std::vector< Base_SPtr > operationStack) |
std::vector < entity::CADEntity_CSPtr > | getEntities () const |
![]() | |
virtual | ~Base () |
Private Attributes | |
std::vector < entity::CADEntity_CSPtr > | _entities |
The begin class Allows for setting up the beginning of a loop (NOT YET IMPLEMENTED)
Example (lua):
l=Line(Coord(0,0), Coord(10,100)); d=app.currentDocument() b=Builder(d) b:append(l) b:begin() b:copy(Coord(0,0)) b:rotate(Coord(0,0), math.rad(45)) b:loop(7); – loop 7 times over the copt/rotate operations b:execute()
Definition at line 86 of file entityops.h.
Begin::Begin | ( | ) |
Definition at line 11 of file entityops.cpp.
|
virtual |
Definition at line 28 of file entityops.cpp.
std::vector< entity::CADEntity_CSPtr > Begin::getEntities | ( | ) | const |
Definition at line 24 of file entityops.cpp.
|
virtual |
Implements lc::operation::Base.
Definition at line 14 of file entityops.cpp.
|
private |
Definition at line 102 of file entityops.h.