QCAD
Open Source 2D CAD
|
This is the abstract base class for all storage implementations. More...
#include <RStorage.h>
Public Member Functions | |
void | addModifiedListener (RModifiedListener *l) |
Adds a listener for modified status changed events. More... | |
virtual void | beginTransaction ()=0 |
Starts a new transaction. More... | |
virtual void | clear () |
Resets this storage to its initial, empty state. More... | |
virtual void | clearEntitySelection (QSet< REntity::Id > *affectedEntities=NULL)=0 |
Clears the selection status of all entities. More... | |
virtual void | commitTransaction ()=0 |
Commits the current transaction. More... | |
virtual int | countSelectedEntities () const |
virtual bool | deleteObject (RObject::Id objectId)=0 |
Deletes the object with the given ID. More... | |
virtual void | deleteTransactionsFrom (int transactionId)=0 |
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)=0 |
Deselects all entities with the given IDs. More... | |
virtual void | deselectEntity (REntity::Id entityId, QSet< REntity::Id > *affectedEntities=NULL)=0 |
Deselects the entity with the given ID. More... | |
void | endDocumentVariablesTransaction (RTransaction *transaction, bool useLocalTransaction, QSharedPointer< RDocumentVariables > docVars) |
virtual RBlock::Id | getBlockId (const QString &blockName) const =0 |
virtual RBlock::Id | getBlockIdAuto (const QString &blockLayoutName) const =0 |
virtual QString | getBlockName (RBlock::Id blockId) const =0 |
virtual QString | getBlockNameFromLayout (const QString &layoutName) const =0 |
virtual QString | getBlockNameFromLayout (RLayout::Id layoutId) const =0 |
virtual QSet< QString > | getBlockNames (const QString &rxStr=RDEFAULT_QSTRING) const =0 |
virtual RBox | getBoundingBox (bool ignoreHiddenLayers=true, bool ignoreEmpty=false) const =0 |
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 |
RDocument * | getDocument () const |
virtual RBox | getEntitiesBox (QSet< REntity::Id > &ids) const =0 |
virtual QVariant | getKnownVariable (RS::KnownVariable key) const =0 |
QString | getLastModified () const |
QDateTime | getLastModifiedDateTime () const |
virtual int | getLastTransactionId () |
virtual RLayer::Id | getLayer0Id () const |
virtual RLayer::Id | getLayerId (const QString &layerName) const =0 |
virtual QString | getLayerName (RLayer::Id layerId) const =0 |
virtual QSet< QString > | getLayerNames (const QString &rxStr=RDEFAULT_QSTRING) const =0 |
virtual RLayer::Id | getLayerStateId (const QString &layerStateName) const =0 |
virtual QString | getLayerStateName (RLayerState::Id layerStateId) const =0 |
virtual QSet< QString > | getLayerStateNames (const QString &rxStr=RDEFAULT_QSTRING) const =0 |
virtual RLayout::Id | getLayoutId (const QString &layoutName) const =0 |
virtual QString | getLayoutName (RLayout::Id layoutId) const =0 |
virtual QSet< QString > | getLayoutNames (const QString &rxStr=RDEFAULT_QSTRING) const =0 |
virtual QString | getLinetypeDescription (RLinetype::Id linetypeId) const =0 |
virtual RLinetype::Id | getLinetypeId (const QString &linetypeName) const =0 |
virtual QString | getLinetypeLabel (RLinetype::Id linetypeId) const =0 |
virtual QString | getLinetypeName (RLinetype::Id linetypeId) const =0 |
virtual QSet< QString > | getLinetypeNames () const =0 |
virtual QList< RLinetypePattern > | getLinetypePatterns () const =0 |
virtual double | getLinetypeScale () const |
virtual int | getMaxDrawOrder () |
virtual RLineweight::Lineweight | getMaxLineweight () const =0 |
virtual RObject::Handle | getMaxObjectHandle () |
virtual RObject::Id | getMaxObjectId () |
virtual int | getMaxTransactionId ()=0 |
RS::Measurement | getMeasurement () const |
virtual int | getMinDrawOrder () |
virtual RBlock::Id | getModelSpaceBlockId () const |
virtual RObject::Handle | getNewObjectHandle () |
virtual RObject::Id | getNewObjectId () |
virtual RBox | getSelectionBox () const =0 |
virtual RTransaction | getTransaction (int transactionId)=0 |
virtual int | getTransactionGroup () const |
RS::Unit | getUnit () const |
virtual QVariant | getVariable (const QString &key) const =0 |
virtual QStringList | getVariables () const =0 |
virtual RView::Id | getViewId (const QString &viewName) const =0 |
virtual QString | getViewName (RView::Id viewId) const =0 |
virtual QSet< QString > | getViewNames () const =0 |
virtual bool | hasBlock (const QString &blockName) const |
virtual bool | hasBlockEntities (RBlock::Id blockId) const =0 |
virtual bool | hasChildEntities (REntity::Id parentId) const =0 |
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 | hasSelection () const =0 |
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 | 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 bool | isSelected (REntity::Id entityId) |
virtual bool | isSelectedWorkingSet (REntity::Id entityId) |
virtual QList< REntity::Id > | orderBackToFront (const QSet< REntity::Id > &entityIds) const |
virtual QSet< REntity::Id > | queryAllBlockReferences () const =0 |
virtual QSet< RBlock::Id > | queryAllBlocks (bool undone=false)=0 |
virtual QSet< REntity::Id > | queryAllEntities (bool undone, bool allBlocks, QList< RS::EntityType > types)=0 |
virtual QSet< REntity::Id > | queryAllEntities (bool undone=false, bool allBlocks=false, RS::EntityType type=RS::EntityAll)=0 |
virtual QSet< RLayer::Id > | queryAllLayers (bool undone=false)=0 |
virtual QSet< RLayerState::Id > | queryAllLayerStates (bool undone=false) const =0 |
virtual QSet< RBlock::Id > | queryAllLayoutBlocks (bool includeModelSpace=false, bool undone=false) const =0 |
virtual QSet< RLayout::Id > | queryAllLayouts (bool undone=false)=0 |
virtual QSet< RLinetype::Id > | queryAllLinetypes ()=0 |
virtual QSet< RObject::Id > | queryAllObjects () const =0 |
virtual QSet< RUcs::Id > | queryAllUcs ()=0 |
virtual QSet< REntity::Id > | queryAllViewports () const =0 |
virtual QSet< RView::Id > | queryAllViews (bool undone=false)=0 |
virtual QSet< REntity::Id > | queryAllVisibleEntities ()=0 |
virtual QSharedPointer< RBlock > | queryBlock (const QString &blockName) const =0 |
virtual QSharedPointer< RBlock > | queryBlock (RBlock::Id blockId) const =0 |
virtual QSharedPointer< RBlock > | queryBlockDirect (const QString &blockName) const |
virtual QSharedPointer< RBlock > | queryBlockDirect (RBlock::Id blockId) const =0 |
virtual QSet< REntity::Id > | queryBlockEntities (RBlock::Id blockId)=0 |
virtual QSet< REntity::Id > | queryBlockReferences (RBlock::Id blockId) const =0 |
virtual QSet< REntity::Id > | queryChildEntities (REntity::Id parentId, RS::EntityType type=RS::EntityAll)=0 |
virtual QSharedPointer< RBlock > | queryCurrentBlock () |
virtual QSharedPointer< RLayer > | queryCurrentLayer () |
virtual QSharedPointer< RLinetype > | queryCurrentLinetype () const |
virtual QSharedPointer< RView > | queryCurrentView () |
virtual QSharedPointer< RDocumentVariables > | queryDocumentVariables () const =0 |
virtual QSharedPointer< RDocumentVariables > | queryDocumentVariablesDirect () const =0 |
virtual QSharedPointer< REntity > | queryEntity (REntity::Id entityId) const =0 |
virtual QSharedPointer< REntity > | queryEntityDirect (REntity::Id entityId) const |
virtual QSet< REntity::Id > | queryInfiniteEntities () const =0 |
virtual QSharedPointer< RLayer > | queryLayer (const QString &layerName) const =0 |
virtual QSharedPointer< RLayer > | queryLayer (RLayer::Id layerId) const =0 |
virtual QSet< REntity::Id > | queryLayerBlockEntities (RLayer::Id layerId, RBlock::Id blockId)=0 |
virtual QSharedPointer< RLayer > | queryLayerDirect (const QString &layerName) const |
virtual QSharedPointer< RLayer > | queryLayerDirect (RLayer::Id layerId) const |
virtual QSet< REntity::Id > | queryLayerEntities (RLayer::Id layerId, bool allBlocks=false)=0 |
virtual QSharedPointer< RLayerState > | queryLayerState (const QString &layerStateName) const =0 |
virtual QSharedPointer< RLayerState > | queryLayerState (RLayerState::Id layerStateId) const =0 |
virtual QSharedPointer< RLayerState > | queryLayerStateDirect (const QString &layerStateName) const |
virtual QSharedPointer< RLayerState > | queryLayerStateDirect (RLayerState::Id layerStateId) const |
virtual QSharedPointer< RLayout > | queryLayout (const QString &layoutName) const =0 |
virtual QSharedPointer< RLayout > | queryLayout (RLayout::Id layoutId) const =0 |
virtual QSharedPointer< RLayout > | queryLayoutDirect (RLayout::Id layoutId) const |
virtual QSharedPointer< RLinetype > | queryLinetype (const QString &linetypeName) const =0 |
virtual QSharedPointer< RLinetype > | queryLinetype (RLinetype::Id linetypeId) const =0 |
virtual QSharedPointer< RLinetype > | queryLinetypeDirect (RLinetype::Id linetypeId) const =0 |
virtual QSharedPointer< RObject > | queryObject (RObject::Id objectId) const =0 |
virtual QSharedPointer< RObject > | queryObjectByHandle (RObject::Handle objectHandle) const =0 |
virtual QSharedPointer< RObject > | queryObjectDirect (RObject::Id objectId) const |
virtual QSet< REntity::Id > | querySelectedEntities () const =0 |
virtual QSet< RObject::Id > | querySelectedLayers () const =0 |
virtual QSharedPointer< RUcs > | queryUcs (const QString &ucsName) const =0 |
virtual QSharedPointer< RUcs > | queryUcs (RUcs::Id ucsId) const =0 |
virtual QSharedPointer< RUcs > | queryUcsDirect (RUcs::Id ucsId) const |
virtual QSharedPointer< RView > | queryView (const QString &viewName) const =0 |
virtual QSharedPointer< RView > | queryView (RView::Id viewId) const =0 |
virtual QSharedPointer< REntity > | queryVisibleEntityDirect (REntity::Id entityId) const |
virtual QSet< REntity::Id > | queryWorkingSetEntities ()=0 |
virtual bool | removeObject (QSharedPointer< RObject > object)=0 |
virtual void | removeVariable (const QString &key)=0 |
Removes the custom variable with the given key. More... | |
virtual void | resetTransactionStack ()=0 |
virtual void | rollbackTransaction ()=0 |
Rolls the current transaction back in order to cancel it. More... | |
RStorage () | |
Copyright (c) 2011-2018 by Andrew Mustun. More... | |
virtual bool | saveObject (QSharedPointer< RObject > object, bool checkBlockRecursion=true, bool keepHandles=false)=0 |
Saves the given object to the storage. More... | |
virtual void | saveTransaction (RTransaction &transaction)=0 |
Saves the given transaction. More... | |
virtual void | selectAllEntities (QSet< REntity::Id > *affectedEntities=NULL)=0 |
Sets the selection status of all entities. More... | |
virtual int | selectEntities (const QSet< REntity::Id > &entityIds, bool add=false, QSet< REntity::Id > *affectedEntities=NULL)=0 |
Selects all entities with the given IDs. More... | |
virtual void | selectEntity (REntity::Id entityId, bool add=false, QSet< REntity::Id > *affectedEntities=NULL)=0 |
Selects the entity with the given ID. More... | |
void | setCurrentBlock (const QString &blockName) |
virtual void | setCurrentBlock (RBlock::Id blockId) |
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 | setEntityParentId (REntity &entity, REntity::Id parentId) |
virtual void | setKnownVariable (RS::KnownVariable key, const QVariant &value, RTransaction *transaction=NULL)=0 |
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 | 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 | setObjectHandle (RObject &object, RObject::Handle objectHandle) |
virtual void | setObjectId (RObject &object, RObject::Id objectId) const |
virtual void | setUndoStatus (RObject &object, bool status) |
virtual bool | setUndoStatus (RObject::Id object, bool status)=0 |
void | setUnit (RS::Unit unit, RTransaction *transaction=NULL) |
virtual void | setVariable (const QString &key, const QVariant &value, bool overwrite=true)=0 |
Sets a custom variable in the context of this document. More... | |
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 | toggleUndoStatus (QSet< RObject::Id > &objects)=0 |
Toggles the current undo status of all given objects. More... | |
virtual void | toggleUndoStatus (RObject::Id object)=0 |
Toggles the current undo status of the given object. More... | |
virtual void | unsetCurrentViewport () |
virtual void | update () |
Clear caches: More... | |
virtual | ~RStorage () |
Public Member Functions inherited from RRequireHeap | |
void | doDelete () |
Static Public Member Functions | |
static QString | getKnownVariableName (RS::KnownVariable n) |
static bool | lessThan (const QPair< REntity::Id, int > &p1, const QPair< REntity::Id, int > &p2) |
Protected Attributes | |
RObject::Handle | handleCounter |
QDateTime | lastModified |
bool | modified |
Friends | |
QDebug | operator<< (QDebug dbg, RStorage &s) |
Stream operator for QDebug. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from RRequireHeap | |
virtual | ~RRequireHeap () |
Private Member Functions inherited from RNonCopyable | |
RNonCopyable () | |
~RNonCopyable () | |
This is the abstract base class for all storage implementations.
A storage is used to store documents (entities, layers, blocks, transactions) in memory or on disk. Every document is backed by a storage object.
A storage implementation is available in the qcaddbstorage.
RStorage::RStorage | ( | ) |
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.
|
inlinevirtual |
void RStorage::addModifiedListener | ( | RModifiedListener * | l | ) |
Adds a listener for modified status changed events.
This can for example be a modification indication widget.
|
pure virtual |
Starts a new transaction.
This function is called before something is stored in the storage.
Implemented in RMemoryStorage.
|
virtual |
Resets this storage to its initial, empty state.
Reimplemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Clears the selection status of all entities.
Implemented in RMemoryStorage.
|
pure virtual |
Commits the current transaction.
This function is called after something has been stored in the storage.
Implemented in RMemoryStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Deletes the object with the given ID.
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure 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 triggered. All undone transactions have to be deleted at this point.
Implemented in RMemoryStorage.
|
pure virtual |
Deselects all entities with the given IDs.
affected | Optional 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. |
Implemented in RMemoryStorage.
|
pure virtual |
Deselects the entity with the given ID.
affected | Optional 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. |
Implemented in RMemoryStorage.
void RStorage::endDocumentVariablesTransaction | ( | RTransaction * | transaction, |
bool | useLocalTransaction, | ||
QSharedPointer< RDocumentVariables > | docVars | ||
) |
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
inlinevirtual |
Reimplemented in RLinkedStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
virtual |
|
virtual |
Reimplemented in RLinkedStorage.
|
inlinevirtual |
Reimplemented in RLinkedStorage.
|
inlinevirtual |
|
virtual |
Reimplemented in RLinkedStorage.
|
inline |
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
static |
|
inline |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
virtual |
|
inlinevirtual |
|
pure virtual |
Implemented in RMemoryStorage.
|
virtual |
|
virtual |
|
pure virtual |
Implemented in RMemoryStorage.
RS::Measurement RStorage::getMeasurement | ( | ) | const |
|
virtual |
|
inlinevirtual |
|
virtual |
Reimplemented in RMemoryStorage, and RLinkedStorage.
|
virtual |
Reimplemented in RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
inlinevirtual |
RS::Unit RStorage::getUnit | ( | ) | const |
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
virtual |
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
pure virtual |
Implemented in RMemoryStorage.
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
Linked storages should return true if the given object is stored in the storage the linked storage links to.
Reimplemented in RLinkedStorage.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inline |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
static |
|
virtual |
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
entityId
or NULL if no such entity exists. Implemented in RMemoryStorage, and RLinkedStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
layerName
or NULL if no such layer exists. Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
layerId
or NULL if no such layer exists. Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
layerName
or NULL if no such layer exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layerStateId
or NULL if no such layer state exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
|
inlinevirtual |
Reimplemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
layoutName
or NULL if no such layout exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
layoutId
or NULL if no such layout exists. Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
|
pure virtual |
objectId
or null pointer if the object is no available in this storage. Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
ucsName
or NULL if no such UCS exists. Implemented in RLinkedStorage, and RMemoryStorage.
ucsId
or NULL if no such UCS exists. Implemented in RLinkedStorage, and RMemoryStorage.
Reimplemented in RMemoryStorage, and RLinkedStorage.
|
pure virtual |
Implemented in RLinkedStorage, and RMemoryStorage.
Implemented in RLinkedStorage, and RMemoryStorage.
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Removes the custom variable with the given key.
Implemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage.
|
pure virtual |
Rolls the current transaction back in order to cancel it.
This function should never be called under normal circumstances.
Implemented in RMemoryStorage.
|
pure virtual |
Saves the given object to the storage.
Implemented in RMemoryStorage.
|
pure virtual |
Saves the given transaction.
Transactions need to be stored for undo / redo functionality.
Implemented in RMemoryStorage.
|
pure virtual |
Sets the selection status of all entities.
Implemented in RMemoryStorage.
|
pure virtual |
Selects all entities with the given IDs.
add | True to add the entities to the current selection. False to replace the current selection with the new entities. |
affected | Optional 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. |
Implemented in RMemoryStorage.
|
pure virtual |
Selects the entity with the given ID.
add | True to add the entity to the current selection. False to replace the current selection with the given entity. |
affected | Optional 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. |
Implemented in RMemoryStorage.
|
inline |
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
virtual |
void RStorage::setCurrentLayer | ( | const QString & | layerName, |
RTransaction * | transaction = NULL |
||
) |
void RStorage::setCurrentLayer | ( | RLayer::Id | layerId, |
RTransaction * | transaction = NULL |
||
) |
void RStorage::setCurrentLinetype | ( | const QString & | name | ) |
void RStorage::setCurrentLinetype | ( | RLinetype::Id | ltId | ) |
void RStorage::setCurrentLinetypePattern | ( | const RLinetypePattern & | p | ) |
void RStorage::setCurrentLineweight | ( | RLineweight::Lineweight | lw | ) |
|
inline |
|
inline |
|
inlinevirtual |
|
virtual |
|
inline |
|
inlinevirtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Sets a known DXF/DWG variable for this document.
key | Variable key (see DXF reference) |
value | New value of the variable. |
transaction | RTransaction to use for the change or NULL (default) to create a transaction on the fly. |
Implemented in RMemoryStorage.
|
inlinevirtual |
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 in RMemoryStorage.
|
inlinevirtual |
|
virtual |
Sets the global linetype scale of this document to the given value.
transaction | Transaction to use for the modification or NULL to create a local transaction (default). |
|
inlinevirtual |
void RStorage::setMeasurement | ( | RS::Measurement | m, |
RTransaction * | transaction = NULL |
||
) |
|
inlinevirtual |
void RStorage::setModified | ( | bool | m | ) |
Resets the modified flag.
Modification time is stored.
|
virtual |
Reimplemented in RMemoryStorage.
|
virtual |
|
virtual |
Reimplemented in RMemoryStorage.
|
pure virtual |
Implemented in RMemoryStorage, and RLinkedStorage.
void RStorage::setUnit | ( | RS::Unit | unit, |
RTransaction * | transaction = NULL |
||
) |
|
pure virtual |
Sets a custom variable in the context of this document.
key | Variable key (name) |
value | Variable value |
overwrite | True to overwrite an existing variable with the same key (default) |
Implemented in RMemoryStorage.
QList< RBlock::Id > RStorage::sortBlocks | ( | const QList< RBlock::Id > & | blockIds | ) | const |
QList< RLayer::Id > RStorage::sortLayers | ( | const QList< RLayer::Id > & | layerIds | ) | const |
QSharedPointer< RDocumentVariables > RStorage::startDocumentVariablesTransaction | ( | RTransaction *& | transaction, |
bool & | useLocalTransaction | ||
) |
|
inlinevirtual |
|
pure 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.
Implemented in RMemoryStorage.
|
pure virtual |
Toggles the current undo status of the given object.
Implemented in RMemoryStorage.
|
inlinevirtual |
|
inlinevirtual |
Clear caches:
Reimplemented in RMemoryStorage.
|
friend |
Stream operator for QDebug.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
protected |
|
private |