RLinkedStorage
Class in Core Module
Header: #include <src/core/RLinkedStorage.h>
Inherits: RMemoryStorage
Description
Section titled “Description”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: This class is available in script environments.
Public Functions
Section titled “Public Functions”RLinkedStorage(RStorage &backStorage) |
|
| virtual | ~RLinkedStorage() |
| virtual void | clear()Resets this storage to its initial, empty state. |
| virtual void | clearLinked()Clears only contents of this linkes storage, essentailly resetting the linked storage to the back storage. |
| virtual bool | deleteObject(RObject::Id objectId)Deletes the object with the given ID. |
| RStorage * | getBackStorage() const |
| virtual RObject::Id | getBlockId(const QString &blockName) const |
| virtual RObject::Id | getBlockIdAuto(const QString &blockLayoutName) const |
| virtual QString | getBlockName(RObject::Id blockId) const |
| virtual QString | getBlockNameFromHandle(RObject::Handle blockHandle) const |
| virtual QString | getBlockNameFromLayout(const QString &layoutName) const |
| virtual QString | getBlockNameFromLayout(RObject::Id layoutId) const |
| virtual QSet< QString > | getBlockNames(const QString &rxStr=RDEFAULT_QSTRING, bool undone=false) const |
| virtual RObject::Id | getCurrentBlockId() const |
| virtual RColor | getCurrentColor() const |
| virtual RObject::Id | getCurrentLayerId() const |
| virtual RObject::Id | getCurrentLinetypeId() const |
| virtual RLineweight::Lineweight | getCurrentLineweight() const |
| virtual RObject::Id | getCurrentViewId() const |
| virtual QString | getDimensionFont() const |
| virtual QVariant | getKnownVariable(RS::KnownVariable key) const |
| virtual RObject::Id | getLayerId(const QString &layerName) const |
| virtual QString | getLayerName(RObject::Id layerId) const |
| virtual QSet< QString > | getLayerNames(const QString &rxStr=RDEFAULT_QSTRING) const |
| virtual RObject::Id | getLayoutId(const QString &layoutName) const |
| virtual QString | getLayoutName(RObject::Id layoutId) const |
| virtual QSet< QString > | getLayoutNames(const QString &rxStr=RDEFAULT_QSTRING) const |
| virtual QString | getLinetypeDescription(RObject::Id linetypeId) const |
| virtual RObject::Id | getLinetypeId(const QString &linetypeName) const |
| virtual QString | getLinetypeLabel(RObject::Id linetypeId) const |
| virtual QString | getLinetypeName(RObject::Id linetypeId) const |
| virtual QSet< QString > | getLinetypeNames() const |
| virtual QList< RLinetypePattern > | getLinetypePatterns() const |
| bool | getLinkedEntityQueriesEnabled() const |
| virtual RObject::Handle | getNewObjectHandle() |
| virtual RObject::Id | getNewObjectId()IDs are handled by the back storage exclusively. |
| virtual RObject::Id | getViewId(const QString &viewName) const |
| virtual QString | getViewName(RObject::Id viewId) const |
| virtual QSet< QString > | getViewNames() const |
| virtual bool | hasBlockEntities(RObject::Id blockId) const |
| virtual bool | hasChildEntities(RObject::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. |
| virtual QSet< RObject::Id > | queryAllBlockReferences() const |
| virtual QSet< RObject::Id > | queryAllBlocks(bool undone=false) |
| virtual QSet< RObject::Id > | queryAllEntities(bool undone, bool allBlocks, QList< RS::EntityType > types) |
| virtual QSet< RObject::Id > | queryAllEntities(bool undone=false, bool allBlocks=false, RS::EntityType type=RS::EntityAll) |
| virtual QSet< RObject::Id > | queryAllLayers(bool undone=false) |
| virtual QSet< RObject::Id > | queryAllLayerStates(bool undone=false) |
| virtual QSet< RObject::Id > | queryAllLayoutBlocks(bool includeModelSpace=false, bool undone=false) const |
| virtual QSet< RObject::Id > | queryAllLayouts(bool undone=false) |
| virtual QSet< RObject::Id > | queryAllLinetypes() |
| virtual QSet< RObject::Id > | queryAllObjects() const |
| virtual QSet< RObject::Id > | queryAllUcs() |
| virtual QSet< RObject::Id > | queryAllViewports() const |
| virtual QSet< RObject::Id > | queryAllViews(bool undone=false) |
| virtual QSet< RObject::Id > | queryAllVisibleEntities() |
| virtual QSharedPointer< RBlock > | queryBlock(const QString &blockName) const |
| virtual QSharedPointer< RBlock > | queryBlock(RObject::Id blockId) const |
| virtual QSharedPointer< RBlock > | queryBlockDirect(RObject::Id blockId) const |
| virtual QSet< RObject::Id > | queryBlockEntities(RObject::Id blockId) |
| virtual QSet< RObject::Id > | queryBlockReferences(RObject::Id blockId) const |
| virtual QSet< RObject::Id > | queryChildEntities(RObject::Id parentId, RS::EntityType type=RS::EntityAll) |
| virtual QSharedPointer< RDimStyle > | queryDimStyle() const |
| virtual QSharedPointer< RDimStyle > | queryDimStyleDirect() const |
| virtual QSharedPointer< RDocumentVariables > | queryDocumentVariables() const |
| virtual QSharedPointer< RDocumentVariables > | queryDocumentVariablesDirect() const |
| virtual QSharedPointer< REntity > | queryEntity(RObject::Id objectId) const |
| virtual QSharedPointer< REntity > | queryEntityDirect(RObject::Id objectId) const |
| virtual QSet< RObject::Id > | queryInfiniteEntities() const |
| virtual QSharedPointer< RLayer > | queryLayer(const QString &layerName) const |
| virtual QSharedPointer< RLayer > | queryLayer(RObject::Id layerId) const |
| virtual QSet< RObject::Id > | queryLayerBlockEntities(RObject::Id layerId, RObject::Id blockId) |
| virtual QSharedPointer< RLayer > | queryLayerDirect(RObject::Id layerId) const |
| virtual QSet< RObject::Id > | queryLayerEntities(RObject::Id layerId, bool allBlocks=false) |
| virtual QSharedPointer< RLayerState > | queryLayerState(const QString &layerStateName) const |
| virtual QSharedPointer< RLayerState > | queryLayerState(RObject::Id layerStateId) const |
| virtual QSharedPointer< RLayerState > | queryLayerStateDirect(RObject::Id layerStateId) const |
| virtual QSharedPointer< RLayout > | queryLayout(const QString &layoutName) const |
| virtual QSharedPointer< RLayout > | queryLayout(RObject::Id layoutId) const |
| virtual QSharedPointer< RLayout > | queryLayoutDirect(RObject::Id layoutId) const |
| virtual QSharedPointer< RLinetype > | queryLinetype(const QString &linetypeName) const |
| virtual QSharedPointer< RLinetype > | queryLinetype(RObject::Id linetypeId) const |
| virtual QSharedPointer< RLinetype > | queryLinetypeDirect(RObject::Id linetypeId) const |
| virtual QSharedPointer< RObject > | queryObject(RObject::Id objectId) const |
| virtual QSharedPointer< RObject > | queryObjectByHandle(RObject::Handle objectHandle) const |
| virtual RObject * | queryObjectCC(RObject::Id objectId) const |
| virtual QSharedPointer< RObject > | queryObjectDirect(RObject::Id objectId) const |
| virtual QSet< RObject::Id > | querySelectedEntities() const |
| virtual QSet< RObject::Id > | querySelectedLayerEntities(RObject::Id layerId, bool allBlocks=false) |
| virtual QSet< RObject::Id > | querySelectedLayers() const |
| virtual QSharedPointer< RUcs > | queryUcs(const QString &ucsName) const |
| virtual QSharedPointer< RUcs > | queryUcs(RObject::Id ucsId) const |
| virtual QSharedPointer< RUcs > | queryUcsDirect(RObject::Id ucsId) const |
| virtual QSharedPointer< RView > | queryView(const QString &viewName) const |
| virtual QSharedPointer< RView > | queryView(RObject::Id viewId) const |
| void | setLinkedEntityQueriesEnabled(bool on) |
| virtual bool | setUndoStatus(RObject::Id objectId, bool status) |
Private Attributes
Section titled “Private Attributes”| RStorage * | backStorage |
| bool | linkedEntityQueriesEnabled |
| int | objectIdOffset |
Member Documentation
Section titled “Member Documentation”RLinkedStorage
Section titled “RLinkedStorage”RLinkedStorage::RLinkedStorage(RStorage &backStorage)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.
~RLinkedStorage
Section titled “~RLinkedStorage”virtual RLinkedStorage::~RLinkedStorage()virtual
virtual void RLinkedStorage::clear()virtual
Resets this storage to its initial, empty state.
Reimplemented from clear.
clearLinked
Section titled “clearLinked”virtual void RLinkedStorage::clearLinked()virtual
Clears only contents of this linkes storage, essentailly resetting the linked storage to the back storage.
deleteObject
Section titled “deleteObject”virtual bool RLinkedStorage::deleteObject(RObject::Id objectId)virtual
Deletes the object with the given ID.
Reimplemented from deleteObject.
getBackStorage
Section titled “getBackStorage”RStorage * RLinkedStorage::getBackStorage() constinline const
getBlockId
Section titled “getBlockId”virtual RBlock::Id RLinkedStorage::getBlockId(const QString &blockName) constvirtual const
Reimplemented from getBlockId.
getBlockIdAuto
Section titled “getBlockIdAuto”virtual RBlock::Id RLinkedStorage::getBlockIdAuto(const QString &blockLayoutName) constvirtual const
Reimplemented from getBlockIdAuto.
getBlockName
Section titled “getBlockName”virtual QString RLinkedStorage::getBlockName(RObject::Id blockId) constvirtual const
Reimplemented from getBlockName.
getBlockNameFromHandle
Section titled “getBlockNameFromHandle”virtual QString RLinkedStorage::getBlockNameFromHandle(RObject::Handle blockHandle) constvirtual const
Reimplemented from getBlockNameFromHandle.
getBlockNameFromLayout
Section titled “getBlockNameFromLayout”virtual QString RLinkedStorage::getBlockNameFromLayout(const QString &layoutName) constvirtual const
Reimplemented from getBlockNameFromLayout.
getBlockNameFromLayout
Section titled “getBlockNameFromLayout”virtual QString RLinkedStorage::getBlockNameFromLayout(RObject::Id layoutId) constvirtual const
Reimplemented from getBlockNameFromLayout.
getBlockNames
Section titled “getBlockNames”virtual QSet< QString > RLinkedStorage::getBlockNames(const QString &rxStr=RDEFAULT_QSTRING, bool undone=false) constvirtual const
Reimplemented from getBlockNames.
getCurrentBlockId
Section titled “getCurrentBlockId”virtual RBlock::Id RLinkedStorage::getCurrentBlockId() constvirtual const
Reimplemented from getCurrentBlockId.
getCurrentColor
Section titled “getCurrentColor”virtual RColor RLinkedStorage::getCurrentColor() constvirtual const
Reimplemented from getCurrentColor.
getCurrentLayerId
Section titled “getCurrentLayerId”virtual RObject::Id RLinkedStorage::getCurrentLayerId() constvirtual const
Reimplemented from getCurrentLayerId.
getCurrentLinetypeId
Section titled “getCurrentLinetypeId”virtual RLinetype::Id RLinkedStorage::getCurrentLinetypeId() constvirtual const
Reimplemented from getCurrentLinetypeId.
getCurrentLineweight
Section titled “getCurrentLineweight”virtual RLineweight::Lineweight RLinkedStorage::getCurrentLineweight() constvirtual const
Reimplemented from getCurrentLineweight.
getCurrentViewId
Section titled “getCurrentViewId”virtual RObject::Id RLinkedStorage::getCurrentViewId() constvirtual const
Reimplemented from getCurrentViewId.
getDimensionFont
Section titled “getDimensionFont”virtual QString RLinkedStorage::getDimensionFont() constvirtual const
Reimplemented from getDimensionFont.
getKnownVariable
Section titled “getKnownVariable”virtual QVariant RLinkedStorage::getKnownVariable(RS::KnownVariable key) constvirtual const
Returns: Value for the given DXF/DWG variable.
Reimplemented from getKnownVariable.
getLayerId
Section titled “getLayerId”virtual RObject::Id RLinkedStorage::getLayerId(const QString &layerName) constvirtual const
Reimplemented from getLayerId.
getLayerName
Section titled “getLayerName”virtual QString RLinkedStorage::getLayerName(RObject::Id layerId) constvirtual const
Reimplemented from getLayerName.
getLayerNames
Section titled “getLayerNames”virtual QSet< QString > RLinkedStorage::getLayerNames(const QString &rxStr=RDEFAULT_QSTRING) constvirtual const
Reimplemented from getLayerNames.
getLayoutId
Section titled “getLayoutId”virtual RObject::Id RLinkedStorage::getLayoutId(const QString &layoutName) constvirtual const
Reimplemented from getLayoutId.
getLayoutName
Section titled “getLayoutName”virtual QString RLinkedStorage::getLayoutName(RObject::Id layoutId) constvirtual const
Reimplemented from getLayoutName.
getLayoutNames
Section titled “getLayoutNames”virtual QSet< QString > RLinkedStorage::getLayoutNames(const QString &rxStr=RDEFAULT_QSTRING) constvirtual const
Reimplemented from getLayoutNames.
getLinetypeDescription
Section titled “getLinetypeDescription”virtual QString RLinkedStorage::getLinetypeDescription(RObject::Id linetypeId) constvirtual const
Returns: User readable description for the given linetype.
Reimplemented from getLinetypeDescription.
getLinetypeId
Section titled “getLinetypeId”virtual RLinetype::Id RLinkedStorage::getLinetypeId(const QString &linetypeName) constvirtual const
Returns: Linetype ID of the given linetype name or RObject::INVALID_ID.
Reimplemented from getLinetypeId.
getLinetypeLabel
Section titled “getLinetypeLabel”virtual QString RLinkedStorage::getLinetypeLabel(RObject::Id linetypeId) constvirtual const
Returns: User readable label for the given linetype.
Reimplemented from getLinetypeLabel.
getLinetypeName
Section titled “getLinetypeName”virtual QString RLinkedStorage::getLinetypeName(RObject::Id linetypeId) constvirtual const
Returns: Linetype name of the given linetype.
Reimplemented from getLinetypeName.
getLinetypeNames
Section titled “getLinetypeNames”virtual QSet< QString > RLinkedStorage::getLinetypeNames() constvirtual const
Returns: List of all available linetype pattern names in this document.
Reimplemented from getLinetypeNames.
getLinetypePatterns
Section titled “getLinetypePatterns”virtual QList< RLinetypePattern > RLinkedStorage::getLinetypePatterns() constvirtual const
Returns: List of all available linetype patterns in this document.
Reimplemented from getLinetypePatterns.
getLinkedEntityQueriesEnabled
Section titled “getLinkedEntityQueriesEnabled”bool RLinkedStorage::getLinkedEntityQueriesEnabled() constinline const
getNewObjectHandle
Section titled “getNewObjectHandle”virtual RObject::Handle RLinkedStorage::getNewObjectHandle()virtual
Reimplemented from getNewObjectHandle.
getNewObjectId
Section titled “getNewObjectId”virtual RObject::Id RLinkedStorage::getNewObjectId()virtual
IDs are handled by the back storage exclusively.
Reimplemented from getNewObjectId.
getViewId
Section titled “getViewId”virtual RObject::Id RLinkedStorage::getViewId(const QString &viewName) constvirtual const
Reimplemented from getViewId.
getViewName
Section titled “getViewName”virtual QString RLinkedStorage::getViewName(RObject::Id viewId) constvirtual const
Reimplemented from getViewName.
getViewNames
Section titled “getViewNames”virtual QSet< QString > RLinkedStorage::getViewNames() constvirtual const
Reimplemented from getViewNames.
hasBlockEntities
Section titled “hasBlockEntities”virtual bool RLinkedStorage::hasBlockEntities(RObject::Id blockId) constvirtual const
Returns: True if the given block contains any entities.
Reimplemented from hasBlockEntities.
hasChildEntities
Section titled “hasChildEntities”virtual bool RLinkedStorage::hasChildEntities(RObject::Id parentId) constvirtual const
Reimplemented from hasChildEntities.
isInBackStorage
Section titled “isInBackStorage”virtual bool RLinkedStorage::isInBackStorage(RObject::Id object)virtual
Linked storages should return true if the given object is stored in the storage the linked storage links to.
Reimplemented from isInBackStorage.
queryAllBlockReferences
Section titled “queryAllBlockReferences”virtual QSet< RObject::Id > RLinkedStorage::queryAllBlockReferences() constvirtual const
Returns: A set of all block reference entity IDs.
Reimplemented from queryAllBlockReferences.
queryAllBlocks
Section titled “queryAllBlocks”virtual QSet< RBlock::Id > RLinkedStorage::queryAllBlocks(bool undone=false)virtual
Returns: A set of all block IDs of the document.
Reimplemented from queryAllBlocks.
queryAllEntities
Section titled “queryAllEntities”virtual QSet< RObject::Id > RLinkedStorage::queryAllEntities(bool undone, bool allBlocks, QList< RS::EntityType > types)virtual
Reimplemented from queryAllEntities.
queryAllEntities
Section titled “queryAllEntities”virtual QSet< RObject::Id > RLinkedStorage::queryAllEntities(bool undone=false, bool allBlocks=false, RS::EntityType type=RS::EntityAll)virtual
Returns: A set of all entity IDs of the document.
Reimplemented from queryAllEntities.
queryAllLayers
Section titled “queryAllLayers”virtual QSet< RObject::Id > RLinkedStorage::queryAllLayers(bool undone=false)virtual
Returns: A set of all layer IDs of the document.
Reimplemented from queryAllLayers.
queryAllLayerStates
Section titled “queryAllLayerStates”virtual QSet< RObject::Id > RLinkedStorage::queryAllLayerStates(bool undone=false)virtual
queryAllLayoutBlocks
Section titled “queryAllLayoutBlocks”virtual QSet< RBlock::Id > RLinkedStorage::queryAllLayoutBlocks(bool includeModelSpace=false, bool undone=false) constvirtual const
Returns: A set of all block IDs of layout blocks of the document.
Reimplemented from queryAllLayoutBlocks.
queryAllLayouts
Section titled “queryAllLayouts”virtual QSet< RObject::Id > RLinkedStorage::queryAllLayouts(bool undone=false)virtual
Returns: A set of all layout IDs of layouts of the document.
Reimplemented from queryAllLayouts.
queryAllLinetypes
Section titled “queryAllLinetypes”virtual QSet< RLinetype::Id > RLinkedStorage::queryAllLinetypes()virtual
Returns: A set of all linetype IDs of the document.
Reimplemented from queryAllLinetypes.
queryAllObjects
Section titled “queryAllObjects”virtual QSet< RObject::Id > RLinkedStorage::queryAllObjects() constvirtual const
Returns: A set of all object IDs of the document.
Reimplemented from queryAllObjects.
queryAllUcs
Section titled “queryAllUcs”virtual QSet< RUcs::Id > RLinkedStorage::queryAllUcs()virtual
Returns: A set of all UCS IDs of the document.
Reimplemented from queryAllUcs.
queryAllViewports
Section titled “queryAllViewports”virtual QSet< RObject::Id > RLinkedStorage::queryAllViewports() constvirtual const
Returns: A set of all viewport entity IDs.
Reimplemented from queryAllViewports.
queryAllViews
Section titled “queryAllViews”virtual QSet< RObject::Id > RLinkedStorage::queryAllViews(bool undone=false)virtual
Returns: A set of all view IDs of the document.
Reimplemented from queryAllViews.
queryAllVisibleEntities
Section titled “queryAllVisibleEntities”virtual QSet< RObject::Id > RLinkedStorage::queryAllVisibleEntities()virtual
Returns: IDs of all visible entities (current block only, no frozen or off layers, no frozen blocks, no undone entities).
Reimplemented from queryAllVisibleEntities.
queryBlock
Section titled “queryBlock”virtual QSharedPointer< RBlock > RLinkedStorage::queryBlock(const QString &blockName) constvirtual const
Reimplemented from queryBlock.
queryBlock
Section titled “queryBlock”virtual QSharedPointer< RBlock > RLinkedStorage::queryBlock(RObject::Id blockId) constvirtual const
Reimplemented from queryBlock.
queryBlockDirect
Section titled “queryBlockDirect”virtual QSharedPointer< RBlock > RLinkedStorage::queryBlockDirect(RObject::Id blockId) constvirtual const
Reimplemented from queryBlockDirect.
queryBlockEntities
Section titled “queryBlockEntities”virtual QSet< RObject::Id > RLinkedStorage::queryBlockEntities(RObject::Id blockId)virtual
Returns: A set of all entity IDs that are part of the given block.
Reimplemented from queryBlockEntities.
queryBlockReferences
Section titled “queryBlockReferences”virtual QSet< RObject::Id > RLinkedStorage::queryBlockReferences(RObject::Id blockId) constvirtual const
Returns: A set of all block reference entity IDs that reference the given block.
Reimplemented from queryBlockReferences.
queryChildEntities
Section titled “queryChildEntities”virtual QSet< RObject::Id > RLinkedStorage::queryChildEntities(RObject::Id parentId, RS::EntityType type=RS::EntityAll)virtual
Returns: A set of all block attributes which are not stored in the block definition but as separate entities on the same level as the block reference.
Reimplemented from queryChildEntities.
queryDimStyle
Section titled “queryDimStyle”virtual QSharedPointer< RDimStyle > RLinkedStorage::queryDimStyle() constvirtual const
Reimplemented from queryDimStyle.
queryDimStyleDirect
Section titled “queryDimStyleDirect”virtual QSharedPointer< RDimStyle > RLinkedStorage::queryDimStyleDirect() constvirtual const
Reimplemented from queryDimStyleDirect.
queryDocumentVariables
Section titled “queryDocumentVariables”virtual QSharedPointer< RDocumentVariables > RLinkedStorage::queryDocumentVariables() constvirtual const
Reimplemented from queryDocumentVariables.
queryDocumentVariablesDirect
Section titled “queryDocumentVariablesDirect”virtual QSharedPointer< RDocumentVariables > RLinkedStorage::queryDocumentVariablesDirect() constvirtual const
Reimplemented from queryDocumentVariablesDirect.
queryEntity
Section titled “queryEntity”virtual QSharedPointer< REntity > RLinkedStorage::queryEntity(RObject::Id objectId) constvirtual const
Returns: A pointer to the entity with the given entityId or NULL if no such entity exists.
Reimplemented from queryEntity.
queryEntityDirect
Section titled “queryEntityDirect”virtual QSharedPointer< REntity > RLinkedStorage::queryEntityDirect(RObject::Id objectId) constvirtual const
Reimplemented from queryEntityDirect.
queryInfiniteEntities
Section titled “queryInfiniteEntities”virtual QSet< RObject::Id > RLinkedStorage::queryInfiniteEntities() constvirtual const
Returns: A set of entity IDs of all infinite entities (xlines).
Reimplemented from queryInfiniteEntities.
queryLayer
Section titled “queryLayer”virtual QSharedPointer< RLayer > RLinkedStorage::queryLayer(const QString &layerName) constvirtual const
Returns: A pointer to the layer with the given layerName or NULL if no such layer exists.
Reimplemented from queryLayer.
queryLayer
Section titled “queryLayer”virtual QSharedPointer< RLayer > RLinkedStorage::queryLayer(RObject::Id layerId) constvirtual const
Returns: A pointer to the layer with the given layerId or NULL if no such layer exists.
Reimplemented from queryLayer.
queryLayerBlockEntities
Section titled “queryLayerBlockEntities”virtual QSet< RObject::Id > RLinkedStorage::queryLayerBlockEntities(RObject::Id layerId, RObject::Id blockId)virtual
Reimplemented from queryLayerBlockEntities.
queryLayerDirect
Section titled “queryLayerDirect”virtual QSharedPointer< RLayer > RLinkedStorage::queryLayerDirect(RObject::Id layerId) constvirtual const
Reimplemented from queryLayerDirect.
queryLayerEntities
Section titled “queryLayerEntities”virtual QSet< RObject::Id > RLinkedStorage::queryLayerEntities(RObject::Id layerId, bool allBlocks=false)virtual
Returns: A set of all entity IDs on the given layer.
Reimplemented from queryLayerEntities.
queryLayerState
Section titled “queryLayerState”virtual QSharedPointer< RLayerState > RLinkedStorage::queryLayerState(const QString &layerStateName) constvirtual const
Returns: A pointer to the layer with the given layerName or NULL if no such layer exists.
Reimplemented from queryLayerState.
queryLayerState
Section titled “queryLayerState”virtual QSharedPointer< RLayerState > RLinkedStorage::queryLayerState(RObject::Id layerStateId) constvirtual const
Returns: A pointer to the layer state with the given layerStateId or NULL if no such layer state exists.
Reimplemented from queryLayerState.
queryLayerStateDirect
Section titled “queryLayerStateDirect”virtual QSharedPointer< RLayerState > RLinkedStorage::queryLayerStateDirect(RObject::Id layerStateId) constvirtual const
Reimplemented from queryLayerStateDirect.
queryLayout
Section titled “queryLayout”virtual QSharedPointer< RLayout > RLinkedStorage::queryLayout(const QString &layoutName) constvirtual const
Returns: A pointer to the layout with the given layoutName or NULL if no such layout exists.
Reimplemented from queryLayout.
queryLayout
Section titled “queryLayout”virtual QSharedPointer< RLayout > RLinkedStorage::queryLayout(RObject::Id layoutId) constvirtual const
Returns: A pointer to the layout with the given layoutId or NULL if no such layout exists.
Reimplemented from queryLayout.
queryLayoutDirect
Section titled “queryLayoutDirect”virtual QSharedPointer< RLayout > RLinkedStorage::queryLayoutDirect(RObject::Id layoutId) constvirtual const
Reimplemented from queryLayoutDirect.
queryLinetype
Section titled “queryLinetype”virtual QSharedPointer< RLinetype > RLinkedStorage::queryLinetype(const QString &linetypeName) constvirtual const
Reimplemented from queryLinetype.
queryLinetype
Section titled “queryLinetype”virtual QSharedPointer< RLinetype > RLinkedStorage::queryLinetype(RObject::Id linetypeId) constvirtual const
Reimplemented from queryLinetype.
queryLinetypeDirect
Section titled “queryLinetypeDirect”virtual QSharedPointer< RLinetype > RLinkedStorage::queryLinetypeDirect(RObject::Id linetypeId) constvirtual const
Reimplemented from queryLinetypeDirect.
queryObject
Section titled “queryObject”virtual QSharedPointer< RObject > RLinkedStorage::queryObject(RObject::Id objectId) constvirtual const
Returns: A shared pointer to the object with the given objectId or null pointer if the object is no available in this storage.
Reimplemented from queryObject.
queryObjectByHandle
Section titled “queryObjectByHandle”virtual QSharedPointer< RObject > RLinkedStorage::queryObjectByHandle(RObject::Handle objectHandle) constvirtual const
Reimplemented from queryObjectByHandle.
queryObjectCC
Section titled “queryObjectCC”virtual RObject * RLinkedStorage::queryObjectCC(RObject::Id objectId) constvirtual const
Reimplemented from queryObjectCC.
queryObjectDirect
Section titled “queryObjectDirect”virtual QSharedPointer< RObject > RLinkedStorage::queryObjectDirect(RObject::Id objectId) constvirtual const
Reimplemented from queryObjectDirect.
querySelectedEntities
Section titled “querySelectedEntities”virtual QSet< RObject::Id > RLinkedStorage::querySelectedEntities() constvirtual const
Returns: A set of entity IDs of all selected entities.
Reimplemented from querySelectedEntities.
querySelectedLayerEntities
Section titled “querySelectedLayerEntities”virtual QSet< RObject::Id > RLinkedStorage::querySelectedLayerEntities(RObject::Id layerId, bool allBlocks=false)virtual
Returns: A set of all entity IDs of selected entities on the given layer.
Reimplemented from querySelectedLayerEntities.
querySelectedLayers
Section titled “querySelectedLayers”virtual QSet< RObject::Id > RLinkedStorage::querySelectedLayers() constvirtual const
Returns: A set of object IDs of all selected objects (layers, …).
Reimplemented from querySelectedLayers.
queryUcs
Section titled “queryUcs”virtual QSharedPointer< RUcs > RLinkedStorage::queryUcs(const QString &ucsName) constvirtual const
Returns: A pointer to the UCS with the given ucsName or NULL if no such UCS exists.
Reimplemented from queryUcs.
queryUcs
Section titled “queryUcs”virtual QSharedPointer< RUcs > RLinkedStorage::queryUcs(RObject::Id ucsId) constvirtual const
Returns: A pointer to the UCS with the given ucsId or NULL if no such UCS exists.
Reimplemented from queryUcs.
queryUcsDirect
Section titled “queryUcsDirect”virtual QSharedPointer< RUcs > RLinkedStorage::queryUcsDirect(RObject::Id ucsId) constvirtual const
Reimplemented from queryUcsDirect.
queryView
Section titled “queryView”virtual QSharedPointer< RView > RLinkedStorage::queryView(const QString &viewName) constvirtual const
Reimplemented from queryView.
queryView
Section titled “queryView”virtual QSharedPointer< RView > RLinkedStorage::queryView(RObject::Id viewId) constvirtual const
Reimplemented from queryView.
setLinkedEntityQueriesEnabled
Section titled “setLinkedEntityQueriesEnabled”void RLinkedStorage::setLinkedEntityQueriesEnabled(bool on)inline
setUndoStatus
Section titled “setUndoStatus”virtual bool RLinkedStorage::setUndoStatus(RObject::Id objectId, bool status)virtual
Reimplemented from setUndoStatus.
backStorage
Section titled “backStorage”RStorage* RLinkedStorage::backStorageprivate
linkedEntityQueriesEnabled
Section titled “linkedEntityQueriesEnabled”bool RLinkedStorage::linkedEntityQueriesEnabledprivate
objectIdOffset
Section titled “objectIdOffset”int RLinkedStorage::objectIdOffsetprivate