QCAD Application Framework
CAD Application Development and Automation.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ROperation Class Reference

This abstract class is an interface for all operation implementations. More...

#include <ROperation.h>

Inheritance diagram for ROperation:
RAddObjectsOperation RChangePropertyOperation RClipboardOperation RDeleteAllEntitiesOperation RDeleteObjectsOperation RMixedOperation RMoveReferencePointOperation RMoveSelectionOperation

List of all members.

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

Detailed Description

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.

Scriptable:
This class is wrapped for script environments.

Constructor & Destructor Documentation

ROperation::ROperation ( bool  undoable = true,
RS::EntityType  entityTypeFilter = RS::EntityAll 
)
inline
virtual ROperation::~ROperation ( )
inlinevirtual

Member Function Documentation

virtual RTransaction ROperation::apply ( RDocument document,
bool  preview = false 
) const
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.

RS::EntityType ROperation::getEntityTypeFilter ( ) const
inline

Member Data Documentation

RS::EntityType ROperation::entityTypeFilter
protected
bool ROperation::undoable
protected

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