LibreCAD
|
The Loop class Allows for looping over a set of entities. More...
#include <entityops.h>
Public Member Functions | |
Loop (const int numTimes) | |
virtual | ~Loop () |
virtual std::vector < entity::CADEntity_CSPtr > | process (const Document_SPtr 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 () |
virtual std::vector < entity::CADEntity_CSPtr > | process (const std::shared_ptr< Document >, const std::vector< entity::CADEntity_CSPtr > entities, std::vector< entity::CADEntity_CSPtr > &workingBuffer, std::vector< entity::CADEntity_CSPtr > &removals, const std::vector< Base_SPtr > operationStack)=0 |
Private Attributes | |
int | _numTimes |
The Loop class Allows for looping over a set of entities.
Example (lua):
l=Line(Coord(0,0), Coord(10,100)); d=app.currentDocument() b=Builder(d) b:append(l) 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 50 of file entityops.h.
Loop::Loop | ( | const int | numTimes | ) |
Definition at line 39 of file entityops.cpp.
|
virtual |
Definition at line 76 of file entityops.cpp.
|
virtual |
Definition at line 42 of file entityops.cpp.
|
private |
Definition at line 64 of file entityops.h.