LibreCAD
|
The Rotate class Allows for copy of the current set of entities. More...
#include <entityops.h>
Public Member Functions | |
Rotate (const geo::Coordinate &rotation_center, const double rotation_angle) | |
virtual | ~Rotate () |
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 () |
Private Attributes | |
geo::Coordinate | _rotation_center |
double | _rotation_angle |
The Rotate class Allows for copy of the current set of entities.
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)); – rotate the set of entities around point 0,0 with 45 degrees b:loop(7) b:execute()
Definition at line 197 of file entityops.h.
Rotate::Rotate | ( | const geo::Coordinate & | rotation_center, |
const double | rotation_angle | ||
) |
Definition at line 162 of file entityops.cpp.
|
virtual |
Definition at line 181 of file entityops.cpp.
|
virtual |
|
private |
Definition at line 213 of file entityops.h.
|
private |
Definition at line 212 of file entityops.h.