|
QCAD Application Framework
CAD Application Development and Automation.
|
This abstract class is an interface for all operation implementations. More...
#include <ROperation.h>
Public Member Functions | |
| virtual RTransaction | apply (RDocument &document, bool preview=false) const =0 |
| Applies this operation to selection in the given document. | |
| RS::EntityType | getEntityTypeFilter () const |
| ROperation (bool undoable=true, RS::EntityType entityTypeFilter=RS::EntityAll) | |
| virtual | ~ROperation () |
Protected Attributes | |
| RS::EntityType | entityTypeFilter |
| bool | undoable |
This abstract class is an interface for all operation implementations.
An operation encapsulates a modification that can be applied to a document. An implementing class might for example implement a move operation that moves all selected entities by a given vector.
|
inline |
|
inlinevirtual |
|
pure virtual |
Applies this operation to selection in the given document.
This is used for both previews and the actual apply. In case of a preview, the given document is a temporary document with a storage that is linked to the real document for realistic condiditions for the preview.
Implemented in RPasteOperation, RMixedOperation, RChangePropertyOperation, RAddObjectsOperation, RDeleteObjectsOperation, RDeleteAllEntitiesOperation, RMoveSelectionOperation, RMoveReferencePointOperation, RCopyOperation, and RDeleteSelectionOperation.
|
inline |
|
protected |
|
protected |