LibreCAD
|
#include <addentityevent.h>
Public Member Functions | |
AddEntityEvent (entity::CADEntity_CSPtr cadEntity) | |
Construct an Add Entity Event. More... | |
const entity::CADEntity_CSPtr | entity () const |
Returns the entity without cast. More... | |
template<typename T > | |
const std::shared_ptr< const T > | entity () const |
Returns the entity. More... | |
Private Attributes | |
const entity::CADEntity_CSPtr | _cadEntity |
Event that gets emitted when a new entity was added to the document
cadEntity |
Definition at line 11 of file addentityevent.h.
|
inline |
Construct an Add Entity Event.
layerName | Name of layer on which entity is to be added. |
cadEntity | Entity to be added. |
Definition at line 18 of file addentityevent.h.
|
inline |
Returns the entity without cast.
Definition at line 24 of file addentityevent.h.
|
inline |
Returns the entity.
Definition at line 33 of file addentityevent.h.
|
private |
Definition at line 38 of file addentityevent.h.