|
virtual void | clear () |
| Resets this storage to its initial, empty state. More...
|
|
virtual bool | deleteObject (RObject::Id objectId) |
| Deletes the object with the given ID. More...
|
|
RStorage * | getBackStorage () const |
|
virtual RBlock::Id | getBlockId (const QString &blockName) const |
|
virtual RBlock::Id | getBlockIdAuto (const QString &blockLayoutName) const |
|
virtual QString | getBlockName (RBlock::Id blockId) const |
|
virtual QString | getBlockNameFromLayout (const QString &layoutName) const |
|
virtual QString | getBlockNameFromLayout (RLayout::Id layoutId) const |
|
virtual QSet< QString > | getBlockNames (const QString &rxStr=RDEFAULT_QSTRING) const |
|
virtual RBlock::Id | getCurrentBlockId () const |
|
virtual RColor | getCurrentColor () const |
|
virtual RLayer::Id | getCurrentLayerId () const |
|
virtual RLinetype::Id | getCurrentLinetypeId () const |
|
virtual RLineweight::Lineweight | getCurrentLineweight () const |
|
virtual RView::Id | getCurrentViewId () const |
|
virtual QString | getDimensionFont () const |
|
virtual QVariant | getKnownVariable (RS::KnownVariable key) const |
|
virtual RLayer::Id | getLayerId (const QString &layerName) const |
|
virtual QString | getLayerName (RLayer::Id layerId) const |
|
virtual QSet< QString > | getLayerNames (const QString &rxStr=RDEFAULT_QSTRING) const |
|
virtual RLayout::Id | getLayoutId (const QString &layoutName) const |
|
virtual QString | getLayoutName (RLayout::Id layoutId) const |
|
virtual QSet< QString > | getLayoutNames (const QString &rxStr=RDEFAULT_QSTRING) const |
|
virtual QString | getLinetypeDescription (RLinetype::Id linetypeId) const |
|
virtual RLinetype::Id | getLinetypeId (const QString &linetypeName) const |
|
virtual QString | getLinetypeLabel (RLinetype::Id linetypeId) const |
|
virtual QString | getLinetypeName (RLinetype::Id linetypeId) const |
|
virtual QSet< QString > | getLinetypeNames () const |
|
virtual QList< RLinetypePattern > | getLinetypePatterns () const |
|
virtual RObject::Handle | getNewObjectHandle () |
|
virtual RObject::Id | getNewObjectId () |
| IDs are handled by the back storage exclusively. More...
|
|
virtual RView::Id | getViewId (const QString &viewName) const |
|
virtual QString | getViewName (RView::Id viewId) const |
|
virtual QSet< QString > | getViewNames () const |
|
virtual bool | hasBlockEntities (RBlock::Id blockId) const |
|
virtual bool | hasChildEntities (REntity::Id parentId) const |
|
virtual bool | isInBackStorage (RObject::Id object) |
| Linked storages should return true if the given object is stored in the storage the linked storage links to. More...
|
|
virtual QSet< REntity::Id > | queryAllBlockReferences () const |
|
virtual QSet< RBlock::Id > | queryAllBlocks (bool undone=false) |
|
virtual QSet< REntity::Id > | queryAllEntities (bool undone, bool allBlocks, QList< RS::EntityType > types) |
|
virtual QSet< REntity::Id > | queryAllEntities (bool undone=false, bool allBlocks=false, RS::EntityType type=RS::EntityAll) |
|
virtual QSet< RLayer::Id > | queryAllLayers (bool undone=false) |
|
virtual QSet< RLayerState::Id > | queryAllLayerStates (bool undone=false) |
|
virtual QSet< RBlock::Id > | queryAllLayoutBlocks (bool includeModelSpace=false, bool undone=false) const |
|
virtual QSet< RLayout::Id > | queryAllLayouts (bool undone=false) |
|
virtual QSet< RLinetype::Id > | queryAllLinetypes () |
|
virtual QSet< RObject::Id > | queryAllObjects () const |
|
virtual QSet< RUcs::Id > | queryAllUcs () |
|
virtual QSet< REntity::Id > | queryAllViewports () const |
|
virtual QSet< RView::Id > | queryAllViews (bool undone=false) |
|
virtual QSet< REntity::Id > | queryAllVisibleEntities () |
|
virtual QSharedPointer< RBlock > | queryBlock (const QString &blockName) const |
|
virtual QSharedPointer< RBlock > | queryBlock (RBlock::Id blockId) const |
|
virtual QSharedPointer< RBlock > | queryBlockDirect (RBlock::Id blockId) const |
|
virtual QSet< REntity::Id > | queryBlockEntities (RBlock::Id blockId) |
|
virtual QSet< REntity::Id > | queryBlockReferences (RBlock::Id blockId) const |
|
virtual QSet< REntity::Id > | queryChildEntities (REntity::Id parentId, RS::EntityType type=RS::EntityAll) |
|
QSharedPointer< RDocumentVariables > | queryDocumentVariables () const |
|
QSharedPointer< RDocumentVariables > | queryDocumentVariablesDirect () const |
|
virtual QSharedPointer< REntity > | queryEntity (REntity::Id objectId) const |
|
virtual QSharedPointer< REntity > | queryEntityDirect (REntity::Id objectId) const |
|
virtual QSet< REntity::Id > | queryInfiniteEntities () const |
|
virtual QSharedPointer< RLayer > | queryLayer (const QString &layerName) const |
|
virtual QSharedPointer< RLayer > | queryLayer (RLayer::Id layerId) const |
|
virtual QSet< REntity::Id > | queryLayerBlockEntities (RLayer::Id layerId, RBlock::Id blockId) |
|
virtual QSharedPointer< RLayer > | queryLayerDirect (RLayer::Id layerId) const |
|
virtual QSet< REntity::Id > | queryLayerEntities (RLayer::Id layerId, bool allBlocks=false) |
|
virtual QSharedPointer< RLayerState > | queryLayerState (const QString &layerStateName) const |
|
virtual QSharedPointer< RLayerState > | queryLayerState (RLayerState::Id layerStateId) const |
|
virtual QSharedPointer< RLayerState > | queryLayerStateDirect (RLayerState::Id layerStateId) const |
|
virtual QSharedPointer< RLayout > | queryLayout (const QString &layoutName) const |
|
virtual QSharedPointer< RLayout > | queryLayout (RLayout::Id layoutId) const |
|
virtual QSharedPointer< RLayout > | queryLayoutDirect (RLayout::Id layoutId) const |
|
virtual QSharedPointer< RLinetype > | queryLinetype (const QString &linetypeName) const |
|
virtual QSharedPointer< RLinetype > | queryLinetype (RLinetype::Id linetypeId) const |
|
virtual QSharedPointer< RLinetype > | queryLinetypeDirect (RLinetype::Id linetypeId) const |
|
virtual QSharedPointer< RObject > | queryObject (RObject::Id objectId) const |
|
virtual QSharedPointer< RObject > | queryObjectByHandle (RObject::Handle objectHandle) const |
|
virtual QSharedPointer< RObject > | queryObjectDirect (RObject::Id objectId) const |
|
virtual QSet< REntity::Id > | querySelectedEntities () const |
|
virtual QSet< RObject::Id > | querySelectedLayers () const |
|
virtual QSharedPointer< RUcs > | queryUcs (const QString &ucsName) const |
|
virtual QSharedPointer< RUcs > | queryUcs (RUcs::Id ucsId) const |
|
virtual QSharedPointer< RUcs > | queryUcsDirect (RUcs::Id ucsId) const |
|
virtual QSharedPointer< RView > | queryView (const QString &viewName) const |
|
virtual QSharedPointer< RView > | queryView (RView::Id viewId) const |
|
| RLinkedStorage (RStorage &backStorage) |
| Copyright (c) 2011-2018 by Andrew Mustun. More...
|
|
virtual bool | setUndoStatus (RObject::Id objectId, bool status) |
|
virtual | ~RLinkedStorage () |
|
virtual void | beginTransaction () |
| Starts a new transaction. More...
|
|
bool | checkRecursion (RBlock::Id blockId, RBlock::Id potentialChildBlockId) |
| Checks recursively, if the given block is allowed to contain references to the potential child block. More...
|
|
virtual void | clearEntitySelection (QSet< REntity::Id > *affectedEntities=NULL) |
| Clears the selection status of all entities. More...
|
|
void | clearSelectionCache () |
|
void | clearVisibleCache () |
|
virtual void | commitTransaction () |
| Commits the current transaction. More...
|
|
virtual int | countSelectedEntities () const |
|
virtual void | deleteTransactionsFrom (int transactionId) |
| Deletes all transactions with IDs from transactionId (inclusive) to the maximum transaction ID. More...
|
|
virtual int | deselectEntities (const QSet< REntity::Id > &entityIds, QSet< REntity::Id > *affectedEntities=NULL) |
| Deselects all entities with the given IDs. More...
|
|
virtual void | deselectEntity (REntity::Id entityId, QSet< REntity::Id > *affectedEntities=NULL) |
| Deselects the entity with the given ID. More...
|
|
virtual RBox | getBoundingBox (bool ignoreHiddenLayers=true, bool ignoreEmpty=false) const |
|
virtual RBox | getEntitiesBox (QSet< REntity::Id > &ids) const |
|
virtual RLayerState::Id | getLayerStateId (const QString &layerStateName) const |
|
virtual QString | getLayerStateName (RLayerState::Id layerStateId) const |
|
virtual QSet< QString > | getLayerStateNames (const QString &rxStr=RDEFAULT_QSTRING) const |
|
virtual RLineweight::Lineweight | getMaxLineweight () const |
|
virtual int | getMaxTransactionId () |
|
virtual RBox | getSelectionBox () const |
|
virtual RTransaction | getTransaction (int transactionId) |
|
virtual QVariant | getVariable (const QString &key) const |
|
virtual QStringList | getVariables () const |
|
virtual bool | hasSelection () const |
|
virtual bool | isEntityVisible (const REntity &entity) const |
|
virtual bool | isSelected (REntity::Id entityId) |
|
virtual bool | isSelectedWorkingSet (REntity::Id entityId) |
|
virtual QSet< RLayerState::Id > | queryAllLayerStates (bool undone=false) const |
|
virtual QSharedPointer< RBlock > | queryBlockDirect (const QString &blockName) const |
|
virtual QSharedPointer< RObject > | queryObjectByHandleDirect (RObject::Handle objectHandle) const |
|
virtual QSharedPointer< REntity > | queryVisibleEntityDirect (REntity::Id objectId) const |
|
virtual QSet< REntity::Id > | queryWorkingSetEntities () |
|
virtual bool | removeObject (QSharedPointer< RObject > object) |
|
virtual void | removeVariable (const QString &key) |
| Removes the custom variable with the given key. More...
|
|
virtual void | resetTransactionStack () |
|
| RMemoryStorage () |
| Copyright (c) 2011-2018 by Andrew Mustun. More...
|
|
virtual void | rollbackTransaction () |
| Rolls the current transaction back in order to cancel it. More...
|
|
virtual bool | saveObject (QSharedPointer< RObject > object, bool checkBlockRecursion=true, bool keepHandles=false) |
| Saves the given object to the storage. More...
|
|
virtual void | saveTransaction (RTransaction &transaction) |
| Saves the given transaction. More...
|
|
virtual void | selectAllEntities (QSet< REntity::Id > *affectedEntities=NULL) |
| Sets the selection status of all entities. More...
|
|
virtual int | selectEntities (const QSet< REntity::Id > &entityIds, bool add=false, QSet< REntity::Id > *affectedEntities=NULL) |
| Selects all entities with the given IDs. More...
|
|
virtual void | selectEntity (REntity::Id entityId, bool add=false, QSet< REntity::Id > *affectedEntities=NULL) |
| Selects the entity with the given ID. More...
|
|
virtual void | setCurrentBlock (RBlock::Id blockId) |
|
virtual void | setEntityParentId (REntity &entity, REntity::Id parentId) |
|
void | setEntitySelected (QSharedPointer< REntity > entity, bool on, QSet< REntity::Id > *affectedEntities=NULL, bool onlyDescend=false) |
| Selects first the top most parent in the entity hierarchy and then all children of it. More...
|
|
virtual void | setKnownVariable (RS::KnownVariable key, const QVariant &value, RTransaction *transaction=NULL) |
| Sets a known DXF/DWG variable for this document. More...
|
|
virtual void | setLastTransactionId (int transactionId) |
| Sets the ID of the last created transaction. More...
|
|
virtual void | setObjectHandle (RObject &object, RObject::Handle objectHandle) |
|
virtual void | setUndoStatus (RObject &object, bool status) |
|
virtual void | setVariable (const QString &key, const QVariant &value, bool overwrite=true) |
| Sets a custom variable in the context of this document. More...
|
|
virtual void | toggleUndoStatus (QSet< RObject::Id > &objects) |
| Toggles the current undo status of all given objects. More...
|
|
virtual void | toggleUndoStatus (RObject::Id object) |
| Toggles the current undo status of the given object. More...
|
|
virtual void | update () |
| Clear caches: More...
|
|
void | updateSelectedEntityMap () const |
|
void | updateSelectedLayerMap () const |
|
void | updateVisibleCache () const |
|
virtual | ~RMemoryStorage () |
|
void | addModifiedListener (RModifiedListener *l) |
| Adds a listener for modified status changed events. More...
|
|
void | endDocumentVariablesTransaction (RTransaction *transaction, bool useLocalTransaction, QSharedPointer< RDocumentVariables > docVars) |
|
virtual RLinetypePattern | getCurrentLinetypePattern () const |
|
virtual RObject::Id | getCurrentViewportId () const |
|
RDocument * | getDocument () const |
|
QString | getLastModified () const |
|
QDateTime | getLastModifiedDateTime () const |
|
virtual int | getLastTransactionId () |
|
virtual RLayer::Id | getLayer0Id () const |
|
virtual double | getLinetypeScale () const |
|
virtual int | getMaxDrawOrder () |
|
virtual RObject::Handle | getMaxObjectHandle () |
|
virtual RObject::Id | getMaxObjectId () |
|
RS::Measurement | getMeasurement () const |
|
virtual int | getMinDrawOrder () |
|
virtual RBlock::Id | getModelSpaceBlockId () const |
|
virtual int | getTransactionGroup () const |
|
RS::Unit | getUnit () const |
|
virtual bool | hasBlock (const QString &blockName) const |
|
virtual bool | hasLayer (const QString &layerName) const |
|
virtual bool | hasLayerState (const QString &layerStateName) const |
|
virtual bool | hasLayerStates () const |
|
virtual bool | hasLayout (const QString &layoutName) const |
|
virtual bool | hasLinetype (const QString &linetypeName) const |
|
virtual bool | hasVariable (const QString &key) const |
|
virtual bool | hasView (const QString &viewName) const |
|
virtual bool | isBlockFrozen (RBlock::Id blockId) const |
|
virtual bool | isEntity (RObject::Id objectId) |
|
virtual bool | isEntityVisible (const REntity &entity, RBlock::Id blockId) const |
|
virtual bool | isLayerFrozen (const RLayer &layer) const |
|
virtual bool | isLayerFrozen (RLayer::Id layerId) const |
|
virtual bool | isLayerLocked (const RLayer &layer) const |
|
virtual bool | isLayerLocked (RLayer::Id layerId) const |
|
virtual bool | isLayerOff (const RLayer &layer) const |
|
virtual bool | isLayerOff (RLayer::Id layerId) const |
|
virtual bool | isLayerOffOrFrozen (const RLayer &layer) const |
|
virtual bool | isLayerOffOrFrozen (RLayer::Id layerId) const |
|
virtual bool | isLayerPlottable (const RLayer &layer) const |
|
virtual bool | isLayerPlottable (RLayer::Id layerId) const |
|
virtual bool | isLayerSnappable (const RLayer &layer) const |
|
virtual bool | isLayerSnappable (RLayer::Id layerId) const |
|
virtual bool | isLayoutBlock (RBlock::Id blockId) const |
|
bool | isModified () const |
|
virtual bool | isParentLayerFrozen (const RLayer &layer) const |
|
virtual bool | isParentLayerFrozen (RLayer::Id layerId) const |
|
virtual bool | isParentLayerLocked (const RLayer &layer) const |
|
virtual bool | isParentLayerLocked (RLayer::Id layerId) const |
|
virtual bool | isParentLayerPlottable (const RLayer &layer) const |
|
virtual bool | isParentLayerPlottable (RLayer::Id layerId) const |
|
virtual bool | isParentLayerSnappable (const RLayer &layer) const |
|
virtual bool | isParentLayerSnappable (RLayer::Id layerId) const |
|
virtual QList< REntity::Id > | orderBackToFront (const QSet< REntity::Id > &entityIds) const |
|
virtual QSharedPointer< RBlock > | queryCurrentBlock () |
|
virtual QSharedPointer< RLayer > | queryCurrentLayer () |
|
virtual QSharedPointer< RLinetype > | queryCurrentLinetype () const |
|
virtual QSharedPointer< RView > | queryCurrentView () |
|
virtual QSharedPointer< RLayer > | queryLayerDirect (const QString &layerName) const |
|
virtual QSharedPointer< RLayerState > | queryLayerStateDirect (const QString &layerStateName) const |
|
| RStorage () |
| Copyright (c) 2011-2018 by Andrew Mustun. More...
|
|
void | setCurrentBlock (const QString &blockName) |
|
virtual void | setCurrentColor (const RColor &color) |
|
void | setCurrentLayer (const QString &layerName, RTransaction *transaction=NULL) |
|
void | setCurrentLayer (RLayer::Id layerId, RTransaction *transaction=NULL) |
|
void | setCurrentLinetype (const QString &name) |
|
void | setCurrentLinetype (RLinetype::Id ltId) |
|
void | setCurrentLinetypePattern (const RLinetypePattern &p) |
|
void | setCurrentLineweight (RLineweight::Lineweight lw) |
|
void | setCurrentView (const QString &viewName) |
|
void | setCurrentView (RView::Id viewId) |
|
virtual void | setCurrentViewport (RObject::Id viewportId) |
|
virtual void | setDimensionFont (const QString &f, RTransaction *transaction=NULL) |
|
void | setDocument (RDocument *doc) |
|
virtual void | setLayer0Id (RLayer::Id id) |
|
virtual void | setLinetypeScale (double v, RTransaction *transaction=NULL) |
| Sets the global linetype scale of this document to the given value. More...
|
|
virtual void | setMaxDrawOrder (int m) |
|
void | setMeasurement (RS::Measurement m, RTransaction *transaction=NULL) |
|
virtual void | setModelSpaceBlockId (RBlock::Id id) |
|
void | setModified (bool m) |
| Resets the modified flag. More...
|
|
virtual void | setObjectId (RObject &object, RObject::Id objectId) const |
|
void | setUnit (RS::Unit unit, RTransaction *transaction=NULL) |
|
QList< RBlock::Id > | sortBlocks (const QList< RBlock::Id > &blockIds) const |
|
QList< RLayer::Id > | sortLayers (const QList< RLayer::Id > &layerIds) const |
|
QSharedPointer< RDocumentVariables > | startDocumentVariablesTransaction (RTransaction *&transaction, bool &useLocalTransaction) |
|
virtual void | startTransactionGroup () |
|
virtual void | unsetCurrentViewport () |
|
virtual | ~RStorage () |
|
void | doDelete () |
|
Copyright (c) 2011-2018 by Andrew Mustun.
All rights reserved.
This file is part of the QCAD project.
QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with QCAD. Memory based storage that is linked to another storage. The other storage is read only and only used to read objects that are not available in this storage. All added objects are stored in this storage directly.
- Scriptable:\nThis class is available in script environments.\n