LibreCAD
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lc::operation::Begin Class Reference

The begin class Allows for setting up the beginning of a loop (NOT YET IMPLEMENTED) More...

#include <entityops.h>

Inheritance diagram for lc::operation::Begin:
Collaboration diagram for lc::operation::Begin:

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
 
- Public Member Functions inherited from lc::operation::Base
virtual ~Base ()
 

Private Attributes

std::vector
< entity::CADEntity_CSPtr > 
_entities
 

Detailed Description

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.

Constructor & Destructor Documentation

Begin::Begin ( )

Base

Definition at line 11 of file entityops.cpp.

11  : Base() {
12 }
Begin::~Begin ( )
virtual

Definition at line 28 of file entityops.cpp.

28  {
29 
30 }

Member Function Documentation

std::vector< entity::CADEntity_CSPtr > Begin::getEntities ( ) const

Definition at line 24 of file entityops.cpp.

24  {
25  return _entities;
26 }
std::vector< entity::CADEntity_CSPtr > _entities
Definition: entityops.h:102
std::vector< entity::CADEntity_CSPtr > Begin::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

Implements lc::operation::Base.

Definition at line 14 of file entityops.cpp.

19  {
20  _entities.insert(_entities.end(), entitySet.begin(), entitySet.end());
21  return entitySet;
22 }
std::vector< entity::CADEntity_CSPtr > _entities
Definition: entityops.h:102

Member Data Documentation

std::vector<entity::CADEntity_CSPtr> lc::operation::Begin::_entities
private

Definition at line 102 of file entityops.h.


The documentation for this class was generated from the following files: