|
QCAD Application Framework
CAD Application Development and Automation.
|
Interface for interaction between a graphics document and a user. More...
#include <RDocumentInterface.h>
Public Types | |
| enum | IoErrorCode { IoErrorNoError, IoErrorNoImporterFound, IoErrorGeneralImportError, IoErrorGeneralImportUrlError } |
Public Member Functions | |
| void | addAuxShapeToPreview (RShape &shape) |
| Exports the given shape to the preview. | |
| void | addCoordinateListener (RCoordinateListener *l) |
| Adds a listener for coordinate events. | |
| void | addEntityToPreview (REntity &entity) |
| Adds the given entity to the preview of all scenes / view. | |
| void | addShapeToPreview (RShape &shape, const RColor &color, const QBrush &brush, RLineweight::Lineweight lineweight, Qt::PenStyle style, const QList< qreal > &dashValues=RDEFAULT_QLIST_QREAL) |
| void | addZoomBoxToPreview (const RBox &box) |
| Adds a box to the preview that represents a zoom box displayed while drawing a window to magnify an area. | |
| RTransaction | applyOperation (const ROperation *operation) |
| Applies the given operation to the document. | |
| void | autoZoom (int margin=RDEFAULT_MIN1) |
| Auto zooms in the view that currently has the focus. | |
| void | beginPreview () |
| After calling this function, all exports go into the preview of the scene instead of the scene itself. | |
| void | clear () |
| Resets the document to its original, empty state. | |
| void | clearPreview () |
| Clears the preview of all scenes. | |
| void | clearProperties () |
| Notifies all property listeners that no properties are relevant at this point. | |
| void | clearSelection () |
| Clears the current selection and updates the scenes / views accordingly. | |
| void | commandEvent (RCommandEvent &event) |
| void | commandEventPreview (RCommandEvent &event) |
| void | coordinateEvent (RCoordinateEvent &event) |
| void | coordinateEventPreview (RCoordinateEvent &event) |
| void | deleteTerminatedActions () |
| Deletes all actions that have been terminated. | |
| void | deselectAll () |
| De-select all entities, for convenience. | |
| void | deselectEntities (const QSet< REntity::Id > &entityIds) |
| Deselects the given entities and updates the scenes accordingly. | |
| void | deselectEntity (REntity::Id entityId) |
| Deselects the given entity and updates the scenes accordingly. | |
| void | disableUpdates () |
| void | enableUpdates () |
| void | endPreview () |
| After calling this function, all exports go into the scene again and not the preview anymore. | |
| bool | exportFile (const QString &fileName, const QString &fileVersion="", bool resetModified=true) |
| RAction::ClickMode | getClickMode () |
| REntity::Id | getClosestEntity (RMouseEvent &event) |
| REntity::Id | getClosestEntity (const RVector &position, double range, bool includeLockedLayers=true) |
| QString | getCorrectedFileName (const QString &fileName, const QString &fileVersion) |
| RAction * | getCurrentAction () |
| RColor | getCurrentColor () |
| RLinetype | getCurrentLinetype () |
| RLineweight::Lineweight | getCurrentLineweight () |
| RUcs | getCurrentUcs () |
| QString | getCurrentUcsName () |
| bool | getCursorOverride () const |
| RVector | getCursorPosition () const |
| RDocument & | getDocument () |
| QList< RGraphicsScene * > | getGraphicsScenes () |
| RGraphicsView * | getGraphicsViewWithFocus () |
| RGraphicsView * | getLastKnownViewWithFocus () |
| Copies selected entities, the layers they're on and blocks they reference to the clipboard document. | |
| RVector | getLastPosition () const |
| RVector | getRelativeZero () const |
| RScriptHandler * | getScriptHandler (const QString &extension) |
| RSnap * | getSnap () |
| Gets the current snap object. | |
| RSnapRestriction * | getSnapRestriction () |
| RStorage & | getStorage () |
| bool | hasCurrentAction () |
| bool | hasSelection () |
| void | highlightEntity (REntity::Id entityId) |
| | |
| void | highlightReferencePoint (const RVector &position) |
| Highlights the given reference point. | |
| RDocumentInterface::IoErrorCode | importFile (const QString &fileName, const QString &nameFilter="", bool notify=true) |
| Imports the given file if there is a file importer registered for that file type. | |
| RDocumentInterface::IoErrorCode | importUrl (const QUrl &url, bool notify=true) |
| Sets the given pen style for all scenes. | |
| bool | isClipboard () |
| bool | isPreviewEmpty () |
| bool | isRelativeZeroLocked () const |
| bool | isScriptRunning () |
| bool | isSuspended () |
| void | keepPreview () |
| Makes sure that the current preview survives one mouse move. | |
| void | keyPressEvent (QKeyEvent &event) |
| void | keyReleaseEvent (QKeyEvent &event) |
| void | killAllActions () |
| void | lockRelativeZero () |
| Locks the position of the relative zero point. | |
| void | mouseDoubleClickEvent (RMouseEvent &event) |
Forwards the given mouse double click event to the current action. | |
| void | mouseMoveEvent (RMouseEvent &event) |
Forwards the given mouse move event to the current action. | |
| void | mousePressEvent (RMouseEvent &event) |
Forwards the given mouse press event to the current action. | |
| void | mouseReleaseEvent (RMouseEvent &event) |
Forwards the given mouse release event to the current action. | |
| void | notifyCoordinateListeners () |
Notifies all coordinate listeners that the coordinate has changed to position. | |
| void | objectChangeEvent (QList< RObject::Id > &objectIds) |
| Triggers an objectChangeEvent for every object in the given set. | |
| void | panGestureEvent (QPanGesture &gesture) |
| Forwards the given gesture to the current action. | |
| void | pinchGestureEvent (QPinchGesture &gesture) |
| Forwards the given gesture to the current action. | |
| void | previewOperation (const ROperation *operation) |
| Previews the given operation by applying the operation to a temporary document that is linked to the (read only) document. | |
| void | propertyChangeEvent (RPropertyEvent &event) |
Forwards the given event to the current action to signal that a property value has been changed. | |
| void | queueAction (RAction *action) |
| RDocumentInterface (RDocument &document) | |
| void | redo () |
| Transaction based redo. | |
| void | regenerateScenes (bool undone=false) |
| Regenerates all scenes attached to this document interface by exporting the document into them. | |
| void | regenerateScenes (QSet< REntity::Id > &entityIds, bool updateViews) |
| Regenerates the given part of all scenes attached to this document interface by exporting the given list of entities into them. | |
| void | regenerateScenes (REntity::Id entityId, bool updateViews) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | regenerateViews (bool force=false) |
| Regenerates all views. | |
| void | registerScene (RGraphicsScene &scene) |
| Registers a scene with this document interface. | |
| void | repaintViews () |
| Repaints all views. | |
| void | resume () |
| void | selectAll () |
| Selects all and updates the scenes / views accordingly. | |
| void | selectBoxXY (const RBox &box, bool add=false) |
| Selects the entity that is closest and within a fixed range of the mouse cursor. | |
| void | selectEntities (const QSet< REntity::Id > &entityIds, bool add=false) |
| Selects the given entities and updates the scenes accordingly. | |
| void | selectEntity (REntity::Id entityId, bool add=false) |
| Selects the given entity and updates the scenes accordingly. | |
| void | setClickMode (RAction::ClickMode m) |
| Sets the click mode of the current action to the given mode. | |
| void | setCurrentAction (RAction *action) |
| Sets the current action. | |
| void | setCurrentBlock (const RBlock &block) |
| Sets the current block that is in use for all views attached to this document interface. | |
| void | setCurrentBlock (const QString &blockName) |
| Sets the current block based on the given block name. | |
| void | setCurrentColor (const RColor &color) |
| void | setCurrentLayer (const RLayer &layer) |
| Sets the current Layer that is in use for all views attached to this document interface. | |
| void | setCurrentLayer (const QString &layerName) |
| Sets the current layer based on the given layer name. | |
| void | setCurrentLinetype (RLinetype lt) |
| void | setCurrentLineweight (RLineweight::Lineweight lw) |
| void | setCurrentUcs (const RUcs &ucs) |
| Sets the current UCS (user coordinate system) that is in use for all views attached to this document interface. | |
| void | setCurrentUcs (const QString &ucsName) |
| Sets the current block that is in use for all views attached to this document interface. | |
| void | setCurrentView (const QString &viewName) |
| Sets the current view based on the given view name. | |
| void | setCursor (const QCursor &cursor, bool global=true) |
| void | setCursorOverride (bool on) |
| Force cursor to be shown. | |
| void | setCursorPosition (const RVector &p) |
| void | setDefaultAction (RAction *action) |
| Sets the action that is active if no other action is active. | |
| void | setLastKnownViewWithFocus (RGraphicsView *view) |
| void | setNotifyListeners (bool on) |
| void | setRelativeZero (const RVector &p) |
| void | setSnap (RSnap *snap) |
| Sets the current snap object. | |
| void | setSnapRestriction (RSnapRestriction *snapRestriction) |
| Sets the current snap restriction object. | |
| void | showPropertiesOf (REntity &entity) |
| Notifies all property listeners that the properties of the given entity should be shown. | |
| RVector | snap (RMouseEvent &event) |
Uses the current snap to snap the given position to a grid point, end point, etc. | |
| void | suspend () |
| void | swipeGestureEvent (QSwipeGesture &gesture) |
| Forwards the given gesture to the current action. | |
| void | tabletEvent (RTabletEvent &event) |
Forwards the given tablet event to the current action. | |
| void | terminateEvent (RTerminateEvent &event) |
| void | ucsSetEvent (const QString &ucsName) |
| Called immediately after the user has activated a new UCS to be used as current UCS. | |
| void | undo () |
| Transaction based undo. | |
| void | unlockRelativeZero () |
| Unlocks the position of the relative zero point. | |
| void | unregisterScene (RGraphicsScene &scene) |
| Unregisters a scene from this document interface. | |
| void | updateAllEntities () |
| Marks all entities with any kind of caching as dirty, so they are regenerated next time regenerate is called. | |
| void | wheelEvent (RWheelEvent &event) |
Forwards the given mouse wheel event to the current action. | |
| void | zoomIn () |
| Zooms in at the view that currently has the focus. | |
| void | zoomOut () |
| Zooms out at the view that currently has the focus. | |
| void | zoomPrevious () |
| Zooms to the previously visible viewport. | |
| void | zoomTo (const RBox ®ion, int margin=0) |
Zooms to the given region. | |
| bool | zoomToSelection () |
| ~RDocumentInterface () | |
Static Public Member Functions | |
| static RDocumentInterface & | getClipboard () |
Private Member Functions | |
| void | handleClickEvent (RAction &action, RMouseEvent &event) |
| Helper function for mouseReleaseEvent. | |
| void | previewClickEvent (RAction &action, RMouseEvent &event) |
| Helper function for mouseMoveEvent. | |
Private Attributes | |
| bool | allowUpdate |
| QList< RCoordinateListener * > | coordinateListeners |
| QStack< RAction * > | currentActions |
| RSnap * | currentSnap |
| RSnapRestriction * | currentSnapRestriction |
| RUcs | currentUcs |
| QString | currentUcsName |
| bool | cursorOverride |
| RVector | cursorPosition |
| RAction * | defaultAction |
| bool | deleting |
| RDocument & | document |
| bool | keepPreviewOnce |
| RGraphicsView * | lastKnownViewWithFocus |
| RVector | lastPosition |
| bool | notifyListeners |
| QQueue< RAction * > | queuedActions |
| RVector | relativeZero |
| bool | relativeZeroLocked |
| QList< RGraphicsScene * > | scenes |
| QMap< QString, RScriptHandler * > | scriptHandlers |
| bool | suspended |
Static Private Attributes | |
| static RDocumentInterface * | clipboard = NULL |
Interface for interaction between a graphics document and a user.
Typically one document interface exists for every document that is open in an MDI application. The document interface owns and links the various scenes, views and the currently active action.
A document interface can own multiple graphics scenes, each of which can have multiple views attached to it. The views forward all user events (mouse moves, mouse clicks, etc.) to the document interface for processing. The document interface dispatches the events to the currently active action object.
| RDocumentInterface::RDocumentInterface | ( | RDocument & | document | ) |
| RDocumentInterface::~RDocumentInterface | ( | ) |
| void RDocumentInterface::addAuxShapeToPreview | ( | RShape & | shape | ) |
Exports the given shape to the preview.
| void RDocumentInterface::addCoordinateListener | ( | RCoordinateListener * | l | ) |
Adds a listener for coordinate events.
This can for example be a document specific widget that displays the current coordinate, e.g. rulers.
| void RDocumentInterface::addEntityToPreview | ( | REntity & | entity | ) |
Adds the given entity to the preview of all scenes / view.
| void RDocumentInterface::addShapeToPreview | ( | RShape & | shape, |
| const RColor & | color, | ||
| const QBrush & | brush, | ||
| RLineweight::Lineweight | lineweight, | ||
| Qt::PenStyle | style, | ||
| const QList< qreal > & | dashValues = RDEFAULT_QLIST_QREAL |
||
| ) |
| void RDocumentInterface::addZoomBoxToPreview | ( | const RBox & | box | ) |
Adds a box to the preview that represents a zoom box displayed while drawing a window to magnify an area.
| RTransaction RDocumentInterface::applyOperation | ( | const ROperation * | operation | ) |
Applies the given operation to the document.
The operation might for example do something with the current selection.
| void RDocumentInterface::autoZoom | ( | int | margin = RDEFAULT_MIN1 | ) |
Auto zooms in the view that currently has the focus.
| void RDocumentInterface::beginPreview | ( | ) |
After calling this function, all exports go into the preview of the scene instead of the scene itself.
| void RDocumentInterface::clear | ( | ) |
Resets the document to its original, empty state.
| void RDocumentInterface::clearPreview | ( | ) |
Clears the preview of all scenes.
| void RDocumentInterface::clearProperties | ( | ) |
Notifies all property listeners that no properties are relevant at this point.
This can for example clear the property editor and other property listeners.
| void RDocumentInterface::clearSelection | ( | ) |
Clears the current selection and updates the scenes / views accordingly.
| void RDocumentInterface::commandEvent | ( | RCommandEvent & | event | ) |
| void RDocumentInterface::commandEventPreview | ( | RCommandEvent & | event | ) |
| void RDocumentInterface::coordinateEvent | ( | RCoordinateEvent & | event | ) |
| void RDocumentInterface::coordinateEventPreview | ( | RCoordinateEvent & | event | ) |
| void RDocumentInterface::deleteTerminatedActions | ( | ) |
Deletes all actions that have been terminated.
| void RDocumentInterface::deselectAll | ( | ) |
De-select all entities, for convenience.
| void RDocumentInterface::deselectEntities | ( | const QSet< REntity::Id > & | entityIds | ) |
Deselects the given entities and updates the scenes accordingly.
| void RDocumentInterface::deselectEntity | ( | REntity::Id | entityId | ) |
Deselects the given entity and updates the scenes accordingly.
| void RDocumentInterface::disableUpdates | ( | ) |
| void RDocumentInterface::enableUpdates | ( | ) |
| void RDocumentInterface::endPreview | ( | ) |
After calling this function, all exports go into the scene again and not the preview anymore.
| bool RDocumentInterface::exportFile | ( | const QString & | fileName, |
| const QString & | fileVersion = "", |
||
| bool | resetModified = true |
||
| ) |
| RAction::ClickMode RDocumentInterface::getClickMode | ( | ) |
|
static |
| REntity::Id RDocumentInterface::getClosestEntity | ( | RMouseEvent & | event | ) |
The event is also used to determine the maximum distance from the cursor to the entity in the view in which the event originated.
| REntity::Id RDocumentInterface::getClosestEntity | ( | const RVector & | position, |
| double | range, | ||
| bool | includeLockedLayers = true |
||
| ) |
| QString RDocumentInterface::getCorrectedFileName | ( | const QString & | fileName, |
| const QString & | fileVersion | ||
| ) |
| RAction * RDocumentInterface::getCurrentAction | ( | ) |
| RColor RDocumentInterface::getCurrentColor | ( | ) |
| RLinetype RDocumentInterface::getCurrentLinetype | ( | ) |
| RLineweight::Lineweight RDocumentInterface::getCurrentLineweight | ( | ) |
| RUcs RDocumentInterface::getCurrentUcs | ( | ) |
| QString RDocumentInterface::getCurrentUcsName | ( | ) |
| bool RDocumentInterface::getCursorOverride | ( | ) | const |
| RVector RDocumentInterface::getCursorPosition | ( | ) | const |
| RDocument & RDocumentInterface::getDocument | ( | ) |
| QList< RGraphicsScene * > RDocumentInterface::getGraphicsScenes | ( | ) |
| RGraphicsView * RDocumentInterface::getGraphicsViewWithFocus | ( | ) |
| RGraphicsView * RDocumentInterface::getLastKnownViewWithFocus | ( | ) |
Copies selected entities, the layers they're on and blocks they reference to the clipboard document.
Pastes the clipboard to the given position in the document.
| RVector RDocumentInterface::getLastPosition | ( | ) | const |
| RVector RDocumentInterface::getRelativeZero | ( | ) | const |
| RScriptHandler * RDocumentInterface::getScriptHandler | ( | const QString & | extension | ) |
\par Non-Scriptable:
This function is not available in script environments.
| RSnap * RDocumentInterface::getSnap | ( | ) |
Gets the current snap object.
| RSnapRestriction * RDocumentInterface::getSnapRestriction | ( | ) |
| RStorage & RDocumentInterface::getStorage | ( | ) |
|
private |
Helper function for mouseReleaseEvent.
Triggers an appropriate higher level event for mouse clicks for the given action. The event type depends on the action's current ClickMode.
| bool RDocumentInterface::hasCurrentAction | ( | ) |
| bool RDocumentInterface::hasSelection | ( | ) |
| void RDocumentInterface::highlightEntity | ( | REntity::Id | entityId | ) |
| void RDocumentInterface::highlightReferencePoint | ( | const RVector & | position | ) |
Highlights the given reference point.
| RDocumentInterface::IoErrorCode RDocumentInterface::importFile | ( | const QString & | fileName, |
| const QString & | nameFilter = "", |
||
| bool | notify = true |
||
| ) |
Imports the given file if there is a file importer registered for that file type.
| RDocumentInterface::IoErrorCode RDocumentInterface::importUrl | ( | const QUrl & | url, |
| bool | notify = true |
||
| ) |
Sets the given pen style for all scenes.
|
inline |
| bool RDocumentInterface::isPreviewEmpty | ( | ) |
| bool RDocumentInterface::isRelativeZeroLocked | ( | ) | const |
| bool RDocumentInterface::isScriptRunning | ( | ) |
|
inline |
| void RDocumentInterface::keepPreview | ( | ) |
Makes sure that the current preview survives one mouse move.
| void RDocumentInterface::keyPressEvent | ( | QKeyEvent & | event | ) |
| void RDocumentInterface::keyReleaseEvent | ( | QKeyEvent & | event | ) |
| void RDocumentInterface::killAllActions | ( | ) |
| void RDocumentInterface::lockRelativeZero | ( | ) |
Locks the position of the relative zero point.
| void RDocumentInterface::mouseDoubleClickEvent | ( | RMouseEvent & | event | ) |
Forwards the given mouse double click event to the current action.
| void RDocumentInterface::mouseMoveEvent | ( | RMouseEvent & | event | ) |
Forwards the given mouse move event to the current action.
| void RDocumentInterface::mousePressEvent | ( | RMouseEvent & | event | ) |
Forwards the given mouse press event to the current action.
| void RDocumentInterface::mouseReleaseEvent | ( | RMouseEvent & | event | ) |
Forwards the given mouse release event to the current action.
| void RDocumentInterface::notifyCoordinateListeners | ( | ) |
Notifies all coordinate listeners that the coordinate has changed to position.
| void RDocumentInterface::objectChangeEvent | ( | QList< RObject::Id > & | objectIds | ) |
Triggers an objectChangeEvent for every object in the given set.
| void RDocumentInterface::panGestureEvent | ( | QPanGesture & | gesture | ) |
Forwards the given gesture to the current action.
| void RDocumentInterface::pinchGestureEvent | ( | QPinchGesture & | gesture | ) |
Forwards the given gesture to the current action.
|
private |
Helper function for mouseMoveEvent.
Triggers an appropriate preview event for the given action and the current click mode the action is in.
| void RDocumentInterface::previewOperation | ( | const ROperation * | operation | ) |
Previews the given operation by applying the operation to a temporary document that is linked to the (read only) document.
| void RDocumentInterface::propertyChangeEvent | ( | RPropertyEvent & | event | ) |
Forwards the given event to the current action to signal that a property value has been changed.
| void RDocumentInterface::queueAction | ( | RAction * | action | ) |
| void RDocumentInterface::redo | ( | ) |
Transaction based redo.
| void RDocumentInterface::regenerateScenes | ( | bool | undone = false | ) |
Regenerates all scenes attached to this document interface by exporting the document into them.
| void RDocumentInterface::regenerateScenes | ( | QSet< REntity::Id > & | entityIds, |
| bool | updateViews | ||
| ) |
Regenerates the given part of all scenes attached to this document interface by exporting the given list of entities into them.
| void RDocumentInterface::regenerateScenes | ( | REntity::Id | entityId, |
| bool | updateViews | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void RDocumentInterface::regenerateViews | ( | bool | force = false | ) |
Regenerates all views.
| void RDocumentInterface::registerScene | ( | RGraphicsScene & | scene | ) |
Registers a scene with this document interface.
| void RDocumentInterface::repaintViews | ( | ) |
Repaints all views.
| void RDocumentInterface::resume | ( | ) |
| void RDocumentInterface::selectAll | ( | ) |
Selects all and updates the scenes / views accordingly.
| void RDocumentInterface::selectBoxXY | ( | const RBox & | box, |
| bool | add = false |
||
| ) |
Selects the entity that is closest and within a fixed range of the mouse cursor.
| event | Typically a mouse move event. |
| add | True to add to the correct selection, false otherwise. |
Selects all entities inside the given box and in the current UCS range (e.g. on the current floor).
| void RDocumentInterface::selectEntities | ( | const QSet< REntity::Id > & | entityIds, |
| bool | add = false |
||
| ) |
Selects the given entities and updates the scenes accordingly.
| add | True to add to the current selection, false otherwise. |
| void RDocumentInterface::selectEntity | ( | REntity::Id | entityId, |
| bool | add = false |
||
| ) |
Selects the given entity and updates the scenes accordingly.
| add | True to add to the current selection, false otherwise. |
| void RDocumentInterface::setClickMode | ( | RAction::ClickMode | m | ) |
Sets the click mode of the current action to the given mode.
| void RDocumentInterface::setCurrentAction | ( | RAction * | action | ) |
Sets the current action.
This action will receive all events until it finishes.
| void RDocumentInterface::setCurrentBlock | ( | const RBlock & | block | ) |
Sets the current block that is in use for all views attached to this document interface.
| void RDocumentInterface::setCurrentBlock | ( | const QString & | blockName | ) |
Sets the current block based on the given block name.
| void RDocumentInterface::setCurrentColor | ( | const RColor & | color | ) |
| void RDocumentInterface::setCurrentLayer | ( | const RLayer & | layer | ) |
Sets the current Layer that is in use for all views attached to this document interface.
| void RDocumentInterface::setCurrentLayer | ( | const QString & | layerName | ) |
Sets the current layer based on the given layer name.
| void RDocumentInterface::setCurrentLinetype | ( | RLinetype | lt | ) |
| void RDocumentInterface::setCurrentLineweight | ( | RLineweight::Lineweight | lw | ) |
| void RDocumentInterface::setCurrentUcs | ( | const RUcs & | ucs | ) |
Sets the current UCS (user coordinate system) that is in use for all views attached to this document interface.
| void RDocumentInterface::setCurrentUcs | ( | const QString & | ucsName | ) |
Sets the current block that is in use for all views attached to this document interface.
Sets the current UCS based on the given UCS name.
| void RDocumentInterface::setCurrentView | ( | const QString & | viewName | ) |
Sets the current view based on the given view name.
| void RDocumentInterface::setCursor | ( | const QCursor & | cursor, |
| bool | global = true |
||
| ) |
| void RDocumentInterface::setCursorOverride | ( | bool | on | ) |
Force cursor to be shown.
Used for e.g. snap to intersection manual where we want to show the cursor eventhough we are in entity picking mode.
| void RDocumentInterface::setCursorPosition | ( | const RVector & | p | ) |
| void RDocumentInterface::setDefaultAction | ( | RAction * | action | ) |
Sets the action that is active if no other action is active.
| void RDocumentInterface::setLastKnownViewWithFocus | ( | RGraphicsView * | view | ) |
|
inline |
| void RDocumentInterface::setRelativeZero | ( | const RVector & | p | ) |
| void RDocumentInterface::setSnap | ( | RSnap * | snap | ) |
Sets the current snap object.
The document interface takes ownership of the object.
| void RDocumentInterface::setSnapRestriction | ( | RSnapRestriction * | snapRestriction | ) |
Sets the current snap restriction object.
The document interface takes ownership of the object.
| void RDocumentInterface::showPropertiesOf | ( | REntity & | entity | ) |
Notifies all property listeners that the properties of the given entity should be shown.
| RVector RDocumentInterface::snap | ( | RMouseEvent & | event | ) |
Uses the current snap to snap the given position to a grid point, end point, etc.
| void RDocumentInterface::suspend | ( | ) |
| void RDocumentInterface::swipeGestureEvent | ( | QSwipeGesture & | gesture | ) |
Forwards the given gesture to the current action.
| void RDocumentInterface::tabletEvent | ( | RTabletEvent & | event | ) |
Forwards the given tablet event to the current action.
| void RDocumentInterface::terminateEvent | ( | RTerminateEvent & | event | ) |
| void RDocumentInterface::ucsSetEvent | ( | const QString & | ucsName | ) |
Called immediately after the user has activated a new UCS to be used as current UCS.
| void RDocumentInterface::undo | ( | ) |
Transaction based undo.
| void RDocumentInterface::unlockRelativeZero | ( | ) |
Unlocks the position of the relative zero point.
| void RDocumentInterface::unregisterScene | ( | RGraphicsScene & | scene | ) |
Unregisters a scene from this document interface.
| void RDocumentInterface::updateAllEntities | ( | ) |
Marks all entities with any kind of caching as dirty, so they are regenerated next time regenerate is called.
| void RDocumentInterface::wheelEvent | ( | RWheelEvent & | event | ) |
Forwards the given mouse wheel event to the current action.
| void RDocumentInterface::zoomIn | ( | ) |
Zooms in at the view that currently has the focus.
| void RDocumentInterface::zoomOut | ( | ) |
Zooms out at the view that currently has the focus.
| void RDocumentInterface::zoomPrevious | ( | ) |
Zooms to the previously visible viewport.
| void RDocumentInterface::zoomTo | ( | const RBox & | region, |
| int | margin = 0 |
||
| ) |
Zooms to the given region.
| bool RDocumentInterface::zoomToSelection | ( | ) |
|
private |
|
staticprivate |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |