LibreCAD
|
The Push class Allows for pushing all entities on the stack for the next operation. More...
#include <entityops.h>
Public Member Functions | |
Push () | |
virtual | ~Push () |
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) |
![]() | |
virtual | ~Base () |
The Push class Allows for pushing all entities on the stack for the next operation.
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) b:push(); – push all entities on the stack for the next operation b:copy(Coord(100,0)); – copy all entities relative to position 100,0 b:execute()
Definition at line 256 of file entityops.h.
Push::Push | ( | ) |
Definition at line 188 of file entityops.cpp.
|
virtual |
Definition at line 203 of file entityops.cpp.
|
virtual |
Implements lc::operation::Base.
Definition at line 191 of file entityops.cpp.