LibreCAD
|
#include <document.h>
Public Member Functions | |
Document () | |
virtual | ~Document () |
virtual Nano::Signal< void(const lc::BeginProcessEvent &)> & | beginProcessEvent () |
begins a Process Event More... | |
virtual Nano::Signal< void(const lc::CommitProcessEvent &)> & | commitProcessEvent () |
commits a Process Event More... | |
virtual Nano::Signal< void(const lc::AddEntityEvent &)> & | addEntityEvent () |
Event to add an Entity. More... | |
virtual Nano::Signal< void(const lc::ReplaceEntityEvent &)> & | replaceEntityEvent () |
Event to replace an Entity. More... | |
virtual Nano::Signal< void(const lc::RemoveEntityEvent &)> & | removeEntityEvent () |
Event to remove an Entity. More... | |
virtual Nano::Signal< void(const lc::RemoveLayerEvent &)> & | removeLayerEvent () |
Event to remove an layer. More... | |
virtual Nano::Signal< void(const lc::AddLayerEvent &)> & | addLayerEvent () |
Event to add a layer. More... | |
virtual Nano::Signal< void(const lc::ReplaceLayerEvent &)> & | replaceLayerEvent () |
Event to replace a layer. More... | |
virtual Nano::Signal< void(const lc::RemoveLinePatternEvent &)> & | removeLinePatternEvent () |
Event to remove a line pattern. More... | |
virtual Nano::Signal< void(const lc::AddLinePatternEvent &)> & | addLinePatternEvent () |
Event to add a line pattern. More... | |
virtual Nano::Signal< void(const lc::ReplaceLinePatternEvent &)> & | replaceLinePatternEvent () |
Event to replace a line pattern. More... | |
virtual Nano::Signal< void(const NewWaitingCustomEntityEvent &)> & | newWaitingCustomEntityEvent () |
Event called when an unmanaged entity is added to the document. More... | |
virtual void | insertEntity (entity::CADEntity_CSPtr cadEntity)=0 |
add an entity to document. More... | |
virtual void | removeEntity (entity::CADEntity_CSPtr entity)=0 |
removes an entity from the document. More... | |
virtual void | addDocumentMetaType (DocumentMetaType_CSPtr dmt)=0 |
add a new layer to the document More... | |
virtual void | removeDocumentMetaType (DocumentMetaType_CSPtr dmt)=0 |
remove a layer from the document More... | |
virtual void | replaceDocumentMetaType (DocumentMetaType_CSPtr oldDmt, DocumentMetaType_CSPtr newDmt)=0 |
remove a layer from the document More... | |
virtual EntityContainer < entity::CADEntity_CSPtr > | entitiesByLayer (Layer_CSPtr layer)=0 |
findEntitiesByLayer rturn a entities container with all entities on the given layer More... | |
virtual EntityContainer < entity::CADEntity_CSPtr > | entitiesByBlock (Block_CSPtr block)=0 |
Search entities in a given block. More... | |
virtual EntityContainer < entity::CADEntity_CSPtr > & | entityContainer ()=0 |
entityContainer Return a copy of all entities within the document More... | |
virtual std::map< std::string, Layer_CSPtr > | allLayers () const =0 |
Returns all layers. More... | |
virtual std::map< std::string, DocumentMetaType_CSPtr, lc::StringHelper::cmpCaseInsensetive > | allMetaTypes ()=0 |
virtual Layer_CSPtr | layerByName (const std::string &layerName) const =0 |
return a layer by it's name More... | |
virtual DxfLinePatternByValue_CSPtr | linePatternByName (const std::string &linePatternName) const =0 |
return a line pattern by it's name More... | |
virtual std::vector < DxfLinePatternByValue_CSPtr > | linePatterns () const =0 |
return all line patterns More... | |
virtual std::vector< Block_CSPtr > | blocks () const =0 |
virtual std::unordered_set < entity::Insert_CSPtr > | waitingCustomEntities (const std::string &pluginName)=0 |
Protected Member Functions | |
virtual void | execute (operation::DocumentOperation_SPtr operation)=0 |
execute the given operations within the document More... | |
virtual void | begin (operation::DocumentOperation_SPtr operation)=0 |
begins an operation More... | |
virtual void | commit (operation::DocumentOperation_SPtr operation)=0 |
commits an operation More... | |
virtual void | operationStart (operation::DocumentOperation_SPtr operation) |
operationStart Starts the operation. More... | |
virtual void | operationFinnish (operation::DocumentOperation_SPtr operation) |
operationFinnish Finishes the operation. More... | |
virtual void | operationProcess (operation::DocumentOperation_SPtr operation) |
operationProcess process the operation. More... | |
Private Attributes | |
Nano::Signal< void(const lc::BeginProcessEvent &)> | _beginProcessEvent |
Nano::Signal< void(const lc::CommitProcessEvent &)> | _commitProcessEvent |
Nano::Signal< void(const lc::AddEntityEvent &)> | _addEntityEvent |
Nano::Signal< void(const lc::ReplaceEntityEvent &)> | _replaceEntityEvent |
Nano::Signal< void(const lc::RemoveEntityEvent &)> | _removeEntityEvent |
Nano::Signal< void(const lc::AddLayerEvent &)> | _addLayerEvent |
Nano::Signal< void(const lc::ReplaceLayerEvent &)> | _replaceLayerEvent |
Nano::Signal< void(const lc::RemoveLayerEvent &)> | _removeLayerEvent |
Nano::Signal< void(const lc::AddLinePatternEvent &)> | _addLinePatternEvent |
Nano::Signal< void(const lc::ReplaceLinePatternEvent &)> | _replaceLinePatternEvent |
Nano::Signal< void(const lc::RemoveLinePatternEvent &)> | _removeLinePatternEvent |
Nano::Signal< void(const lc::NewWaitingCustomEntityEvent &)> | _newWaitingCustomEntityEvent |
Friends | |
class | lc::operation::DocumentOperation |
Definition at line 40 of file document.h.
Document::Document | ( | ) |
Definition at line 13 of file document.cpp.
|
virtual |
Definition at line 17 of file document.cpp.
|
pure virtual |
|
virtual |
Event to add an Entity.
Definition at line 38 of file document.cpp.
|
virtual |
Event to add a layer.
Definition at line 54 of file document.cpp.
|
virtual |
Event to add a line pattern.
Definition at line 66 of file document.cpp.
|
pure virtual |
Returns all layers.
Implemented in lc::DocumentImpl.
|
pure virtual |
Implemented in lc::DocumentImpl.
|
protectedpure virtual |
|
virtual |
begins a Process Event
Definition at line 30 of file document.cpp.
|
pure virtual |
Implemented in lc::DocumentImpl.
|
protectedpure virtual |
|
virtual |
commits a Process Event
Definition at line 34 of file document.cpp.
|
pure virtual |
Search entities in a given block.
block |
Implemented in lc::DocumentImpl.
|
pure virtual |
findEntitiesByLayer rturn a entities container with all entities on the given layer
layer |
Implemented in lc::DocumentImpl.
|
pure virtual |
entityContainer Return a copy of all entities within the document
Implemented in lc::DocumentImpl.
|
protectedpure virtual |
execute the given operations within the document
operation |
Implemented in lc::DocumentImpl.
|
pure virtual |
add an entity to document.
layerName | Name of layer to which entity is to be added |
cadEntity | Entity to be added |
Implemented in lc::DocumentImpl.
|
pure virtual |
return a layer by it's name
Implemented in lc::DocumentImpl.
|
pure virtual |
return a line pattern by it's name
Implemented in lc::DocumentImpl.
|
pure virtual |
return all line patterns
Implemented in lc::DocumentImpl.
|
virtual |
Event called when an unmanaged entity is added to the document.
Definition at line 74 of file document.cpp.
|
protectedvirtual |
operationFinnish Finishes the operation.
operation |
Definition at line 24 of file document.cpp.
|
protectedvirtual |
operationProcess process the operation.
operation |
Definition at line 27 of file document.cpp.
|
protectedvirtual |
operationStart Starts the operation.
operation |
Definition at line 21 of file document.cpp.
|
pure virtual |
remove a layer from the document
layer | layer to be added. |
Implemented in lc::DocumentImpl.
|
pure virtual |
removes an entity from the document.
id | ID of the entity to be removed. |
Implemented in lc::DocumentImpl.
|
virtual |
Event to remove an Entity.
Definition at line 46 of file document.cpp.
|
virtual |
Event to remove an layer.
Definition at line 50 of file document.cpp.
|
virtual |
Event to remove a line pattern.
Definition at line 62 of file document.cpp.
|
pure virtual |
remove a layer from the document
Implemented in lc::DocumentImpl.
|
virtual |
Event to replace an Entity.
Definition at line 42 of file document.cpp.
|
virtual |
Event to replace a layer.
Definition at line 58 of file document.cpp.
|
virtual |
Event to replace a line pattern.
Definition at line 70 of file document.cpp.
|
pure virtual |
Implemented in lc::DocumentImpl.
|
friend |
Definition at line 229 of file document.h.
|
private |
Definition at line 235 of file document.h.
|
private |
Definition at line 239 of file document.h.
|
private |
Definition at line 243 of file document.h.
|
private |
Definition at line 232 of file document.h.
|
private |
Definition at line 233 of file document.h.
|
private |
Definition at line 247 of file document.h.
|
private |
Definition at line 237 of file document.h.
|
private |
Definition at line 241 of file document.h.
|
private |
Definition at line 245 of file document.h.
|
private |
Definition at line 236 of file document.h.
|
private |
Definition at line 240 of file document.h.
|
private |
Definition at line 244 of file document.h.