QCAD
Open Source 2D CAD
RMemoryStorage Class Reference

Copyright (c) 2011-2018 by Andrew Mustun. More...

#include <RMemoryStorage.h>

Inheritance diagram for RMemoryStorage:
RStorage RNonCopyable RRequireHeap RLinkedStorage

Public Member Functions

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 clear ()
 Resets this storage to its initial, empty state. 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 bool deleteObject (RObject::Id objectId)
 Deletes the object with the given ID. More...
 
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 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 RBox getBoundingBox (bool ignoreHiddenLayers=true, bool ignoreEmpty=false) const
 
virtual RBox getEntitiesBox (QSet< REntity::Id > &ids) 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 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 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< RLinetypePatterngetLinetypePatterns () const
 
virtual RLineweight::Lineweight getMaxLineweight () const
 
virtual int getMaxTransactionId ()
 
virtual RObject::Handle getNewObjectHandle ()
 
virtual RBox getSelectionBox () const
 
virtual RTransaction getTransaction (int transactionId)
 
virtual QVariant getVariable (const QString &key) const
 
virtual QStringList getVariables () const
 
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 hasSelection () const
 
virtual bool isEntityVisible (const REntity &entity) const
 
virtual bool isSelected (REntity::Id entityId)
 
virtual QSet< REntity::IdqueryAllBlockReferences () const
 
virtual QSet< RBlock::IdqueryAllBlocks (bool undone=false)
 
virtual QSet< REntity::IdqueryAllEntities (bool undone, bool allBlocks, QList< RS::EntityType > types)
 
virtual QSet< REntity::IdqueryAllEntities (bool undone=false, bool allBlocks=false, RS::EntityType type=RS::EntityAll)
 
virtual QSet< RLayer::IdqueryAllLayers (bool undone=false)
 
virtual QSet< RLayerState::IdqueryAllLayerStates (bool undone=false) const
 
virtual QSet< RBlock::IdqueryAllLayoutBlocks (bool includeModelSpace=false, bool undone=false) const
 
virtual QSet< RBlock::IdqueryAllLayouts (bool undone)
 
virtual QSet< RLinetype::IdqueryAllLinetypes ()
 
virtual QSet< RObject::IdqueryAllObjects () const
 
virtual QSet< RUcs::IdqueryAllUcs ()
 
virtual QSet< RView::IdqueryAllViews (bool undone=false)
 
virtual QSet< REntity::IdqueryAllVisibleEntities ()
 
virtual QSharedPointer< RBlockqueryBlock (const QString &blockName) const
 
virtual QSharedPointer< RBlockqueryBlock (RBlock::Id blockId) const
 
virtual QSharedPointer< RBlockqueryBlockDirect (const QString &blockName) const
 
virtual QSharedPointer< RBlockqueryBlockDirect (RBlock::Id blockId) const
 
virtual QSet< REntity::IdqueryBlockEntities (RBlock::Id blockId)
 
virtual QSet< REntity::IdqueryBlockReferences (RBlock::Id blockId) const
 
virtual QSet< REntity::IdqueryChildEntities (REntity::Id parentId, RS::EntityType type=RS::EntityAll)
 
virtual QSharedPointer< RDocumentVariablesqueryDocumentVariables () const
 
virtual QSharedPointer< RDocumentVariablesqueryDocumentVariablesDirect () const
 
virtual QSharedPointer< REntityqueryEntity (REntity::Id objectId) const
 
virtual QSharedPointer< REntityqueryEntityDirect (REntity::Id objectId) const
 
virtual QSet< REntity::IdqueryInfiniteEntities () const
 
virtual QSharedPointer< RLayerqueryLayer (const QString &layerName) const
 
virtual QSharedPointer< RLayerqueryLayer (RLayer::Id layerId) const
 
virtual QSet< REntity::IdqueryLayerBlockEntities (RLayer::Id layerId, RBlock::Id blockId)
 
virtual QSharedPointer< RLayerqueryLayerDirect (RLayer::Id layerId) const
 
virtual QSet< REntity::IdqueryLayerEntities (RLayer::Id layerId, bool allBlocks=false)
 
virtual QSharedPointer< RLayerStatequeryLayerState (const QString &layerStateName) const
 
virtual QSharedPointer< RLayerStatequeryLayerState (RLayerState::Id layerStateId) const
 
virtual QSharedPointer< RLayerStatequeryLayerStateDirect (RLayerState::Id layerStateId) const
 
virtual QSharedPointer< RLayoutqueryLayout (const QString &layoutName) const
 
virtual QSharedPointer< RLayoutqueryLayout (RLayout::Id layoutId) const
 
virtual QSharedPointer< RLayoutqueryLayoutDirect (RLayout::Id layoutId) const
 
virtual QSharedPointer< RLinetypequeryLinetype (const QString &linetypeName) const
 
virtual QSharedPointer< RLinetypequeryLinetype (RLinetype::Id linetypeId) const
 
virtual QSharedPointer< RLinetypequeryLinetypeDirect (RLinetype::Id linetypeId) const
 
virtual QSharedPointer< RObjectqueryObject (RObject::Id objectId) const
 
virtual QSharedPointer< RObjectqueryObjectByHandle (RObject::Handle objectHandle) const
 
virtual QSharedPointer< RObjectqueryObjectByHandleDirect (RObject::Handle objectHandle) const
 
virtual QSharedPointer< RObjectqueryObjectDirect (RObject::Id objectId) const
 
virtual QSet< REntity::IdquerySelectedEntities () const
 
virtual QSet< RObject::IdquerySelectedLayers () const
 
virtual QSharedPointer< RUcsqueryUcs (const QString &ucsName) const
 
virtual QSharedPointer< RUcsqueryUcs (RUcs::Id ucsId) const
 
virtual QSharedPointer< RUcsqueryUcsDirect (RUcs::Id ucsId) const
 
virtual QSharedPointer< RViewqueryView (const QString &viewName) const
 
virtual QSharedPointer< RViewqueryView (RView::Id viewId) const
 
virtual QSharedPointer< REntityqueryVisibleEntityDirect (REntity::Id objectId) const
 
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 bool setUndoStatus (RObject::Id objectId, 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 ()
 
- Public Member Functions inherited from RStorage
void addModifiedListener (RModifiedListener *l)
 Adds a listener for modified status changed events. More...
 
void endDocumentVariablesTransaction (RTransaction *transaction, bool useLocalTransaction, QSharedPointer< RDocumentVariables > docVars)
 
virtual RBlock::Id getCurrentBlockId () const
 
virtual RColor getCurrentColor () const
 
virtual RLayer::Id getCurrentLayerId () const
 
virtual RLinetype::Id getCurrentLinetypeId () const
 
virtual RLinetypePattern getCurrentLinetypePattern () const
 
virtual RLineweight::Lineweight getCurrentLineweight () const
 
virtual RView::Id getCurrentViewId () const
 
virtual RObject::Id getCurrentViewportId () const
 
virtual QString getDimensionFont () const
 
RDocumentgetDocument () 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 RObject::Id getNewObjectId ()
 
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 isInBackStorage (RObject::Id)
 Linked storages should return true if the given object is stored in the storage the linked storage links to. More...
 
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 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::IdorderBackToFront (const QSet< REntity::Id > &entityIds) const
 
virtual QSharedPointer< RBlockqueryCurrentBlock ()
 
virtual QSharedPointer< RLayerqueryCurrentLayer ()
 
virtual QSharedPointer< RLinetypequeryCurrentLinetype () const
 
virtual QSharedPointer< RViewqueryCurrentView ()
 
virtual QSharedPointer< RLayerqueryLayerDirect (const QString &layerName) const
 
virtual QSharedPointer< RLayerStatequeryLayerStateDirect (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::IdsortBlocks (const QList< RBlock::Id > &blockIds) const
 
QSharedPointer< RDocumentVariablesstartDocumentVariablesTransaction (RTransaction *&transaction, bool &useLocalTransaction)
 
virtual void startTransactionGroup ()
 
virtual void unsetCurrentViewport ()
 
virtual ~RStorage ()
 
- Public Member Functions inherited from RRequireHeap
void doDelete ()
 

Protected Attributes

QHash< RBlock::Id, QHash< REntity::Id, QSharedPointer< REntity > > > blockEntityMap
 
QHash< RBlock::Id, QSharedPointer< RBlock > > blockMap
 
RBox boundingBox [2][2]
 Bounding boxes for ignoreHiddenLayers on/off and ignoreEmpty on/off. More...
 
bool boundingBoxDirty
 
QMultiHash< REntity::Id, REntity::IdchildMap
 maps parent entity IDs to child entity IDs More...
 
QSharedPointer< RDocumentVariablesdocumentVariables
 
QHash< REntity::Id, QSharedPointer< REntity > > entityMap
 
bool inTransaction
 
QHash< RLayer::Id, QSharedPointer< RLayer > > layerMap
 
QHash< QString, QSharedPointer< RLayer > > layerNameMap
 
QHash< RLayerState::Id, QSharedPointer< RLayerState > > layerStateMap
 
QHash< RLayout::Id, QSharedPointer< RLayout > > layoutMap
 
QHash< RLinetype::Id, QSharedPointer< RLinetype > > linetypeMap
 
RLineweight::Lineweight maxLineweight
 
QHash< RObject::Handle, QSharedPointer< RObject > > objectHandleMap
 
QHash< RObject::Id, QSharedPointer< RObject > > objectMap
 
QHash< REntity::Id, QSharedPointer< REntity > > selectedEntityMap
 
bool selectedEntityMapDirty
 
QHash< RLayer::Id, QSharedPointer< RLayer > > selectedLayerMap
 
bool selectedLayerMapDirty
 
QHash< int, RTransactiontransactionMap
 
QHash< RS::EntityType, QHash< RObject::Id, QSharedPointer< RObject > > > typeObjectMap
 
QMap< QString, QString > variableCaseMap
 
QHash< QString, QVariant > variables
 
QHash< REntity::Id, QSharedPointer< REntity > > visibleEntityMap
 
bool visibleEntityMapDirty
 
- Protected Attributes inherited from RStorage
RObject::Handle handleCounter
 
QDateTime lastModified
 
bool modified
 

Additional Inherited Members

- Static Public Member Functions inherited from RStorage
static QString getKnownVariableName (RS::KnownVariable n)
 
static bool lessThan (const QPair< REntity::Id, int > &p1, const QPair< REntity::Id, int > &p2)
 
- Protected Member Functions inherited from RRequireHeap
virtual ~RRequireHeap ()
 

Detailed Description

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. Basic memory based storage.

Scriptable:\nThis class is available in script environments.\n

Constructor & Destructor Documentation

◆ RMemoryStorage()

RMemoryStorage::RMemoryStorage ( )

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.

◆ ~RMemoryStorage()

RMemoryStorage::~RMemoryStorage ( )
virtual

Member Function Documentation

◆ beginTransaction()

void RMemoryStorage::beginTransaction ( )
virtual

Starts a new transaction.

This function is called before something is stored in the storage.

Implements RStorage.

◆ checkRecursion()

bool RMemoryStorage::checkRecursion ( RBlock::Id  blockId,
RBlock::Id  potentialChildBlockId 
)

Checks recursively, if the given block is allowed to contain references to the potential child block.

Returns
true if a recusrion has been found.

◆ clear()

void RMemoryStorage::clear ( )
virtual

Resets this storage to its initial, empty state.

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ clearEntitySelection()

void RMemoryStorage::clearEntitySelection ( QSet< REntity::Id > *  affectedEntities = NULL)
virtual

Clears the selection status of all entities.

Implements RStorage.

◆ clearSelectionCache()

void RMemoryStorage::clearSelectionCache ( )

◆ clearVisibleCache()

void RMemoryStorage::clearVisibleCache ( )

◆ commitTransaction()

void RMemoryStorage::commitTransaction ( )
virtual

Commits the current transaction.

This function is called after something has been stored in the storage.

Implements RStorage.

◆ countSelectedEntities()

int RMemoryStorage::countSelectedEntities ( ) const
virtual
Returns
Number of selected entities.

Reimplemented from RStorage.

◆ deleteObject()

bool RMemoryStorage::deleteObject ( RObject::Id  objectId)
virtual

Deletes the object with the given ID.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ deleteTransactionsFrom()

void RMemoryStorage::deleteTransactionsFrom ( int  transactionId)
virtual

Deletes all transactions with IDs from transactionId (inclusive) to the maximum transaction ID.

This is called if some transactions have been undone and then a redo is triggerd. All undone transactions have to be deleted at this point.

Implements RStorage.

◆ deselectEntities()

int RMemoryStorage::deselectEntities ( const QSet< REntity::Id > &  entityIds,
QSet< REntity::Id > *  affectedEntities = NULL 
)
virtual

Deselects all entities with the given IDs.

Parameters
affectedOptional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call.

Implements RStorage.

◆ deselectEntity()

void RMemoryStorage::deselectEntity ( REntity::Id  entityId,
QSet< REntity::Id > *  affectedEntities = NULL 
)
virtual

Deselects the entity with the given ID.

Parameters
affectedOptional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call.

Implements RStorage.

◆ getBlockId()

RBlock::Id RMemoryStorage::getBlockId ( const QString &  blockName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getBlockIdAuto()

RBlock::Id RMemoryStorage::getBlockIdAuto ( const QString &  blockLayoutName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getBlockName()

QString RMemoryStorage::getBlockName ( RBlock::Id  blockId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getBlockNameFromLayout() [1/2]

QString RMemoryStorage::getBlockNameFromLayout ( const QString &  layoutName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getBlockNameFromLayout() [2/2]

QString RMemoryStorage::getBlockNameFromLayout ( RLayout::Id  layoutId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getBlockNames()

QSet< QString > RMemoryStorage::getBlockNames ( const QString &  rxStr = RDEFAULT_QSTRING) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getBoundingBox()

RBox RMemoryStorage::getBoundingBox ( bool  ignoreHiddenLayers = true,
bool  ignoreEmpty = false 
) const
virtual
Returns
The bounding box around all visible entities.

Implements RStorage.

◆ getEntitiesBox()

RBox RMemoryStorage::getEntitiesBox ( QSet< REntity::Id > &  ids) const
virtual

Implements RStorage.

◆ getKnownVariable()

QVariant RMemoryStorage::getKnownVariable ( RS::KnownVariable  key) const
virtual
Returns
Value for the given DXF/DWG variable.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLayerId()

RLayer::Id RMemoryStorage::getLayerId ( const QString &  layerName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLayerName()

QString RMemoryStorage::getLayerName ( RLayer::Id  layerId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLayerNames()

QSet< QString > RMemoryStorage::getLayerNames ( const QString &  rxStr = RDEFAULT_QSTRING) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLayerStateId()

RLayerState::Id RMemoryStorage::getLayerStateId ( const QString &  layerStateName) const
virtual

Implements RStorage.

◆ getLayerStateName()

QString RMemoryStorage::getLayerStateName ( RLayerState::Id  layerStateId) const
virtual

Implements RStorage.

◆ getLayerStateNames()

QSet< QString > RMemoryStorage::getLayerStateNames ( const QString &  rxStr = RDEFAULT_QSTRING) const
virtual

Implements RStorage.

◆ getLayoutId()

RLayout::Id RMemoryStorage::getLayoutId ( const QString &  layoutName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLayoutName()

QString RMemoryStorage::getLayoutName ( RLayout::Id  layoutId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLayoutNames()

QSet< QString > RMemoryStorage::getLayoutNames ( const QString &  rxStr = RDEFAULT_QSTRING) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLinetypeDescription()

QString RMemoryStorage::getLinetypeDescription ( RLinetype::Id  linetypeId) const
virtual
Returns
User readable description for the given linetype.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLinetypeId()

RLinetype::Id RMemoryStorage::getLinetypeId ( const QString &  linetypeName) const
virtual
Returns
Linetype ID of the given linetype name or RObject::INVALID_ID.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLinetypeLabel()

QString RMemoryStorage::getLinetypeLabel ( RLinetype::Id  linetypeId) const
virtual
Returns
User readable label for the given linetype.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLinetypeName()

QString RMemoryStorage::getLinetypeName ( RLinetype::Id  linetypeId) const
virtual
Returns
Linetype name of the given linetype.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLinetypeNames()

QSet< QString > RMemoryStorage::getLinetypeNames ( ) const
virtual
Returns
List of all available linetype pattern names in this document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getLinetypePatterns()

QList< RLinetypePattern > RMemoryStorage::getLinetypePatterns ( ) const
virtual
Returns
List of all available linetype patterns in this document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getMaxLineweight()

RLineweight::Lineweight RMemoryStorage::getMaxLineweight ( ) const
virtual

Implements RStorage.

◆ getMaxTransactionId()

int RMemoryStorage::getMaxTransactionId ( )
virtual
Returns
The highest transaction ID that is in use. This should be used by deleteTransactionsFrom internally.

Implements RStorage.

◆ getNewObjectHandle()

RObject::Handle RMemoryStorage::getNewObjectHandle ( )
virtual

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ getSelectionBox()

RBox RMemoryStorage::getSelectionBox ( ) const
virtual

Implements RStorage.

◆ getTransaction()

RTransaction RMemoryStorage::getTransaction ( int  transactionId)
virtual
Returns
Transaction with the given id.

Implements RStorage.

◆ getVariable()

QVariant RMemoryStorage::getVariable ( const QString &  key) const
virtual
Returns
The value of the given variable or an invalid variant if the variable does not exist.

Implements RStorage.

◆ getVariables()

QStringList RMemoryStorage::getVariables ( ) const
virtual
Returns
List of custom variable names stored in this document.

Implements RStorage.

◆ getViewId()

RView::Id RMemoryStorage::getViewId ( const QString &  viewName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getViewName()

QString RMemoryStorage::getViewName ( RView::Id  viewId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ getViewNames()

QSet< QString > RMemoryStorage::getViewNames ( ) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ hasBlockEntities()

bool RMemoryStorage::hasBlockEntities ( RBlock::Id  blockId) const
virtual
Returns
True if the given block contains any entities.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ hasChildEntities()

bool RMemoryStorage::hasChildEntities ( REntity::Id  parentId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ hasSelection()

bool RMemoryStorage::hasSelection ( ) const
virtual
Returns
True if at least one entity is selected in this storage.

Implements RStorage.

◆ isEntityVisible()

bool RMemoryStorage::isEntityVisible ( const REntity entity) const
virtual

◆ isSelected()

bool RMemoryStorage::isSelected ( REntity::Id  entityId)
virtual

Reimplemented from RStorage.

◆ queryAllBlockReferences()

QSet< REntity::Id > RMemoryStorage::queryAllBlockReferences ( ) const
virtual
Returns
A set of all block reference entity IDs.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllBlocks()

QSet< RBlock::Id > RMemoryStorage::queryAllBlocks ( bool  undone = false)
virtual
Returns
A set of all block IDs of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllEntities() [1/2]

QSet< REntity::Id > RMemoryStorage::queryAllEntities ( bool  undone,
bool  allBlocks,
QList< RS::EntityType types 
)
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllEntities() [2/2]

QSet< REntity::Id > RMemoryStorage::queryAllEntities ( bool  undone = false,
bool  allBlocks = false,
RS::EntityType  type = RS::EntityAll 
)
virtual
Returns
A set of all entity IDs of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllLayers()

QSet< RLayer::Id > RMemoryStorage::queryAllLayers ( bool  undone = false)
virtual
Returns
A set of all layer IDs of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllLayerStates()

QSet< RLayerState::Id > RMemoryStorage::queryAllLayerStates ( bool  undone = false) const
virtual
Returns
A set of all layer state IDs of the document.

Implements RStorage.

◆ queryAllLayoutBlocks()

QSet< RBlock::Id > RMemoryStorage::queryAllLayoutBlocks ( bool  includeModelSpace = false,
bool  undone = false 
) const
virtual
Returns
A set of all block IDs of layout blocks of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllLayouts()

QSet< RBlock::Id > RMemoryStorage::queryAllLayouts ( bool  undone)
virtual
Returns
A set of all layout IDs of layouts of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllLinetypes()

QSet< RLinetype::Id > RMemoryStorage::queryAllLinetypes ( )
virtual
Returns
A set of all linetype IDs of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllObjects()

QSet< RObject::Id > RMemoryStorage::queryAllObjects ( ) const
virtual
Returns
A set of all object IDs of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllUcs()

QSet< RUcs::Id > RMemoryStorage::queryAllUcs ( )
virtual
Returns
A set of all UCS IDs of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllViews()

QSet< RView::Id > RMemoryStorage::queryAllViews ( bool  undone = false)
virtual
Returns
A set of all view IDs of the document.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryAllVisibleEntities()

QSet< REntity::Id > RMemoryStorage::queryAllVisibleEntities ( )
virtual
Returns
IDs of all visible entities (current block only, no frozen or off layers, no frozen blocks, no undone entities).

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryBlock() [1/2]

QSharedPointer< RBlock > RMemoryStorage::queryBlock ( const QString &  blockName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryBlock() [2/2]

QSharedPointer< RBlock > RMemoryStorage::queryBlock ( RBlock::Id  blockId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryBlockDirect() [1/2]

QSharedPointer< RBlock > RMemoryStorage::queryBlockDirect ( const QString &  blockName) const
virtual

Reimplemented from RStorage.

◆ queryBlockDirect() [2/2]

QSharedPointer< RBlock > RMemoryStorage::queryBlockDirect ( RBlock::Id  blockId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryBlockEntities()

QSet< REntity::Id > RMemoryStorage::queryBlockEntities ( RBlock::Id  blockId)
virtual
Returns
A set of all entity IDs that are part of the given block.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryBlockReferences()

QSet< REntity::Id > RMemoryStorage::queryBlockReferences ( RBlock::Id  blockId) const
virtual
Returns
A set of all block reference entity IDs that reference the given block.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryChildEntities()

QSet< REntity::Id > RMemoryStorage::queryChildEntities ( REntity::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.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryDocumentVariables()

QSharedPointer< RDocumentVariables > RMemoryStorage::queryDocumentVariables ( ) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryDocumentVariablesDirect()

QSharedPointer< RDocumentVariables > RMemoryStorage::queryDocumentVariablesDirect ( ) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryEntity()

QSharedPointer< REntity > RMemoryStorage::queryEntity ( REntity::Id  entityId) const
virtual
Returns
A pointer to the enitity with the given entityId or NULL if no such entity exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryEntityDirect()

QSharedPointer< REntity > RMemoryStorage::queryEntityDirect ( REntity::Id  objectId) const
virtual

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ queryInfiniteEntities()

QSet< REntity::Id > RMemoryStorage::queryInfiniteEntities ( ) const
virtual
Returns
A set of entity IDs of all infinite entities (xlines).

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayer() [1/2]

QSharedPointer< RLayer > RMemoryStorage::queryLayer ( const QString &  layerName) const
virtual
Returns
A pointer to the layer with the given layerName or NULL if no such layer exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayer() [2/2]

QSharedPointer< RLayer > RMemoryStorage::queryLayer ( RLayer::Id  layerId) const
virtual
Returns
A pointer to the layer with the given layerId or NULL if no such layer exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayerBlockEntities()

QSet< REntity::Id > RMemoryStorage::queryLayerBlockEntities ( RLayer::Id  layerId,
RBlock::Id  blockId 
)
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayerDirect()

QSharedPointer< RLayer > RMemoryStorage::queryLayerDirect ( RLayer::Id  layerId) const
virtual

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayerEntities()

QSet< REntity::Id > RMemoryStorage::queryLayerEntities ( RLayer::Id  layerId,
bool  allBlocks = false 
)
virtual
Returns
A set of all entity IDs on the given layer.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayerState() [1/2]

QSharedPointer< RLayerState > RMemoryStorage::queryLayerState ( const QString &  layerStateName) const
virtual
Returns
A pointer to the layer with the given layerName or NULL if no such layer exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayerState() [2/2]

QSharedPointer< RLayerState > RMemoryStorage::queryLayerState ( RLayerState::Id  layerStateId) const
virtual
Returns
A pointer to the layer state with the given layerStateId or NULL if no such layer state exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayerStateDirect()

QSharedPointer< RLayerState > RMemoryStorage::queryLayerStateDirect ( RLayerState::Id  layerStateId) const
virtual

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayout() [1/2]

QSharedPointer< RLayout > RMemoryStorage::queryLayout ( const QString &  layoutName) const
virtual
Returns
A pointer to the layout with the given layoutName or NULL if no such layout exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayout() [2/2]

QSharedPointer< RLayout > RMemoryStorage::queryLayout ( RLayout::Id  layoutId) const
virtual
Returns
A pointer to the layout with the given layoutId or NULL if no such layout exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLayoutDirect()

QSharedPointer< RLayout > RMemoryStorage::queryLayoutDirect ( RLayout::Id  layoutId) const
virtual

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ queryLinetype() [1/2]

QSharedPointer< RLinetype > RMemoryStorage::queryLinetype ( const QString &  linetypeName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLinetype() [2/2]

QSharedPointer< RLinetype > RMemoryStorage::queryLinetype ( RLinetype::Id  linetypeId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryLinetypeDirect()

QSharedPointer< RLinetype > RMemoryStorage::queryLinetypeDirect ( RLinetype::Id  linetypeId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryObject()

QSharedPointer< RObject > RMemoryStorage::queryObject ( RObject::Id  objectId) const
virtual
Returns
A shared pointer to the object with the given objectId or null pointer if the object is no available in this storage.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryObjectByHandle()

QSharedPointer< RObject > RMemoryStorage::queryObjectByHandle ( RObject::Handle  objectHandle) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryObjectByHandleDirect()

QSharedPointer< RObject > RMemoryStorage::queryObjectByHandleDirect ( RObject::Handle  objectHandle) const
virtual

◆ queryObjectDirect()

QSharedPointer< RObject > RMemoryStorage::queryObjectDirect ( RObject::Id  objectId) const
virtual

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ querySelectedEntities()

QSet< REntity::Id > RMemoryStorage::querySelectedEntities ( ) const
virtual
Returns
A set of entity IDs of all selected entities.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ querySelectedLayers()

QSet< RObject::Id > RMemoryStorage::querySelectedLayers ( ) const
virtual
Returns
A set of object IDs of all selected objects (layers, ...).

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryUcs() [1/2]

QSharedPointer< RUcs > RMemoryStorage::queryUcs ( const QString &  ucsName) const
virtual
Returns
A pointer to the UCS with the given ucsName or NULL if no such UCS exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryUcs() [2/2]

QSharedPointer< RUcs > RMemoryStorage::queryUcs ( RUcs::Id  ucsId) const
virtual
Returns
A pointer to the UCS with the given ucsId or NULL if no such UCS exists.

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryUcsDirect()

QSharedPointer< RUcs > RMemoryStorage::queryUcsDirect ( RUcs::Id  ucsId) const
virtual

Reimplemented from RStorage.

Reimplemented in RLinkedStorage.

◆ queryView() [1/2]

QSharedPointer< RView > RMemoryStorage::queryView ( const QString &  viewName) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryView() [2/2]

QSharedPointer< RView > RMemoryStorage::queryView ( RView::Id  viewId) const
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ queryVisibleEntityDirect()

QSharedPointer< REntity > RMemoryStorage::queryVisibleEntityDirect ( REntity::Id  objectId) const
virtual

Reimplemented from RStorage.

◆ removeObject()

bool RMemoryStorage::removeObject ( QSharedPointer< RObject object)
virtual

Implements RStorage.

◆ removeVariable()

void RMemoryStorage::removeVariable ( const QString &  key)
virtual

Removes the custom variable with the given key.

Implements RStorage.

◆ resetTransactionStack()

void RMemoryStorage::resetTransactionStack ( )
virtual

Implements RStorage.

◆ rollbackTransaction()

void RMemoryStorage::rollbackTransaction ( )
virtual

Rolls the current transaction back in order to cancel it.

This function should never be called under normal circumstances.

Implements RStorage.

◆ saveObject()

bool RMemoryStorage::saveObject ( QSharedPointer< RObject object,
bool  checkBlockRecursion = true,
bool  keepHandles = false 
)
virtual

Saves the given object to the storage.

Implements RStorage.

◆ saveTransaction()

void RMemoryStorage::saveTransaction ( RTransaction transaction)
virtual

Saves the given transaction.

Transactions need to be stored for undo / redo functionality.

Implements RStorage.

◆ selectAllEntities()

void RMemoryStorage::selectAllEntities ( QSet< REntity::Id > *  affectedEntities = NULL)
virtual

Sets the selection status of all entities.

Implements RStorage.

◆ selectEntities()

int RMemoryStorage::selectEntities ( const QSet< REntity::Id > &  entityIds,
bool  add = false,
QSet< REntity::Id > *  affectedEntities = NULL 
)
virtual

Selects all entities with the given IDs.

Parameters
addTrue to add the entities to the current selection. False to replace the current selection with the new entities.
affectedOptional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call.

Implements RStorage.

◆ selectEntity()

void RMemoryStorage::selectEntity ( REntity::Id  entityId,
bool  add = false,
QSet< REntity::Id > *  affectedEntities = NULL 
)
virtual

Selects the entity with the given ID.

Parameters
addTrue to add the entity to the current selection. False to replace the current selection with the given entity.
affectedOptional pointer to an empty set of entity IDs. After the call, this set will contain all entity IDs of entities that were affected by the call.

Implements RStorage.

◆ setCurrentBlock()

void RMemoryStorage::setCurrentBlock ( RBlock::Id  blockId)
virtual

Reimplemented from RStorage.

◆ setEntityParentId()

void RMemoryStorage::setEntityParentId ( REntity entity,
REntity::Id  parentId 
)
virtual

Reimplemented from RStorage.

◆ setEntitySelected()

void RMemoryStorage::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.

This is necessary for attributes which are children of block references.

Todo:
Improve performance for selecting many block references

◆ setKnownVariable()

void RMemoryStorage::setKnownVariable ( RS::KnownVariable  key,
const QVariant &  value,
RTransaction transaction = NULL 
)
virtual

Sets a known DXF/DWG variable for this document.

Parameters
keyVariable key (see DXF reference)
valueNew value of the variable.
transactionRTransaction to use for the change or NULL (default) to create a transaction on the fly.

Implements RStorage.

◆ setLastTransactionId()

void RMemoryStorage::setLastTransactionId ( int  transactionId)
virtual

Sets the ID of the last created transaction.

This is called when a transaction is undone or redone (the last transaction id indicates where we are in the transaction stack). The default implementation sets the variable "LastTransaction".

Reimplemented from RStorage.

◆ setObjectHandle()

void RMemoryStorage::setObjectHandle ( RObject object,
RObject::Handle  objectHandle 
)
virtual

Reimplemented from RStorage.

◆ setUndoStatus() [1/2]

void RMemoryStorage::setUndoStatus ( RObject object,
bool  status 
)
virtual

Reimplemented from RStorage.

◆ setUndoStatus() [2/2]

bool RMemoryStorage::setUndoStatus ( RObject::Id  objectId,
bool  status 
)
virtual

Implements RStorage.

Reimplemented in RLinkedStorage.

◆ setVariable()

void RMemoryStorage::setVariable ( const QString &  key,
const QVariant &  value,
bool  overwrite = true 
)
virtual

Sets a custom variable in the context of this document.

Parameters
keyVariable key (name)
valueVariable value
overwriteTrue to overwrite an existing variable with the same key (default)

Implements RStorage.

◆ toggleUndoStatus() [1/2]

void RMemoryStorage::toggleUndoStatus ( QSet< RObject::Id > &  objects)
virtual

Toggles the current undo status of all given objects.

The undo status can for example be a boolean value that is true if the object is undone or false otherwise.

Implements RStorage.

◆ toggleUndoStatus() [2/2]

void RMemoryStorage::toggleUndoStatus ( RObject::Id  object)
virtual

Toggles the current undo status of the given object.

Implements RStorage.

◆ update()

void RMemoryStorage::update ( )
virtual

Clear caches:

Reimplemented from RStorage.

◆ updateSelectedEntityMap()

void RMemoryStorage::updateSelectedEntityMap ( ) const

◆ updateSelectedLayerMap()

void RMemoryStorage::updateSelectedLayerMap ( ) const

◆ updateVisibleCache()

void RMemoryStorage::updateVisibleCache ( ) const

Member Data Documentation

◆ blockEntityMap

QHash<RBlock::Id, QHash<REntity::Id, QSharedPointer<REntity> > > RMemoryStorage::blockEntityMap
mutableprotected

◆ blockMap

QHash<RBlock::Id, QSharedPointer<RBlock> > RMemoryStorage::blockMap
protected

◆ boundingBox

RBox RMemoryStorage::boundingBox[2][2]
mutableprotected

Bounding boxes for ignoreHiddenLayers on/off and ignoreEmpty on/off.

◆ boundingBoxDirty

bool RMemoryStorage::boundingBoxDirty
mutableprotected

◆ childMap

QMultiHash<REntity::Id, REntity::Id> RMemoryStorage::childMap
protected

maps parent entity IDs to child entity IDs

◆ documentVariables

QSharedPointer<RDocumentVariables> RMemoryStorage::documentVariables
protected

◆ entityMap

QHash<REntity::Id, QSharedPointer<REntity> > RMemoryStorage::entityMap
protected

◆ inTransaction

bool RMemoryStorage::inTransaction
protected

◆ layerMap

QHash<RLayer::Id, QSharedPointer<RLayer> > RMemoryStorage::layerMap
protected

◆ layerNameMap

QHash<QString, QSharedPointer<RLayer> > RMemoryStorage::layerNameMap
protected

◆ layerStateMap

QHash<RLayerState::Id, QSharedPointer<RLayerState> > RMemoryStorage::layerStateMap
protected

◆ layoutMap

QHash<RLayout::Id, QSharedPointer<RLayout> > RMemoryStorage::layoutMap
protected

◆ linetypeMap

QHash<RLinetype::Id, QSharedPointer<RLinetype> > RMemoryStorage::linetypeMap
protected

◆ maxLineweight

RLineweight::Lineweight RMemoryStorage::maxLineweight
mutableprotected

◆ objectHandleMap

QHash<RObject::Handle, QSharedPointer<RObject> > RMemoryStorage::objectHandleMap
protected

◆ objectMap

QHash<RObject::Id, QSharedPointer<RObject> > RMemoryStorage::objectMap
protected

◆ selectedEntityMap

QHash<REntity::Id, QSharedPointer<REntity> > RMemoryStorage::selectedEntityMap
mutableprotected

◆ selectedEntityMapDirty

bool RMemoryStorage::selectedEntityMapDirty
mutableprotected

◆ selectedLayerMap

QHash<RLayer::Id, QSharedPointer<RLayer> > RMemoryStorage::selectedLayerMap
mutableprotected

◆ selectedLayerMapDirty

bool RMemoryStorage::selectedLayerMapDirty
mutableprotected

◆ transactionMap

QHash<int, RTransaction> RMemoryStorage::transactionMap
protected

◆ typeObjectMap

QHash<RS::EntityType, QHash<RObject::Id, QSharedPointer<RObject> > > RMemoryStorage::typeObjectMap
protected

◆ variableCaseMap

QMap<QString, QString> RMemoryStorage::variableCaseMap
protected

◆ variables

QHash<QString, QVariant> RMemoryStorage::variables
protected

◆ visibleEntityMap

QHash<REntity::Id, QSharedPointer<REntity> > RMemoryStorage::visibleEntityMap
mutableprotected

◆ visibleEntityMapDirty

bool RMemoryStorage::visibleEntityMapDirty
mutableprotected

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