CFx SDK Documentation  2020SP3
DbLayerState.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2017, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Teigha(R) software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Teigha(R) Copyright (C) 2002-2017 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef DBLAYERSTATEMANAGER_H
25 #define DBLAYERSTATEMANAGER_H
26 
27 #include "TD_PackPush.h"
28 #include "StringArray.h"
29 
37 {
38 public:
39  enum Mask
40  {
41  kDefMask = (long)0xFFFFFFFF,
42  kNone = 0x0000,
43  kOn = 0x0001,
44  kFrozen = 0x0002,
45  kLocked = 0x0004,
46  kPlot = 0x0008,
47  kNewViewport = 0x0010,
48  kColor = 0x0020,
49  kLineType = 0x0040,
50  kLineWeight = 0x0080,
51  kPlotStyle = 0x0100,
52  kCurrentViewport = 0x0200,
53  kTransparency = 0x0400,
54 
55  kAll = kOn | kFrozen | kLocked | kPlot | kNewViewport |
56  kColor | kLineType | kLineWeight | kPlotStyle |
57  kCurrentViewport | kTransparency,
58 
59  kHidden = 0x8000,
60 //FELIX_CHANGE_BEGIN
61  kLastRestored = 0x10000
62 //FELIX_CHANGE_END
63  };
64 
65  enum
66  {
67  kUndefDoNothing = 0x00,
68  kUndefTurnOff = 0x01,
69  kUndefFreeze = 0x02,
70  kRestoreAsOverrides = 0x04
71  };
72 
78  static OdDbObjectId dictionaryId(OdDbDatabase *pDb, bool createIfNotFound = false);
79 
87  static bool has(OdDbDatabase *pDb, const OdString &layerStateName);
88 
122  static void save(OdDbDatabase *pDb, const OdString &layerStateName, int layerStateMask, const OdDbObjectId &viewportId = OdDbObjectId::kNull);
123 
169  static void restore(OdDbDatabase *pDb, const OdString &layerStateName,
170  int flags = kUndefDoNothing, const int layerStateMask = kDefMask, const OdDbObjectId& viewportId = OdDbObjectId::kNull);
203  static void setMask(OdDbDatabase *pDb, const OdString &layerStateName, int layerStateMask);
204 
237  static int mask(OdDbDatabase *pDb, const OdString &layerStateName);
238 
245  static void remove(OdDbDatabase *pDb, const OdString &layerStateName);
246 
254  static void rename(OdDbDatabase *pDb, const OdString &oldName, const OdString &newName);
255 
257  {
259  kAlreadyExists
260  };
261 
277  static ImportResult importData(OdDbDatabase *pDb, OdStreamBuf* pStreamBuf, OdString* pName = 0);
278 
286  static void exportData(OdDbDatabase *pDb, const OdString &layerStateName, OdStreamBuf* pStreamBuf);
287 
295  static void setDescription(OdDbDatabase *pDb, const OdString &layerStateName, const OdString &description);
302  static OdString description(OdDbDatabase *pDb, const OdString &layerStateName);
303 
310  static bool hasViewportData(OdDbDatabase *pDb, const OdString &layerStateName);
311 
319  static OdResult addLayerStateLayers(const OdString &sName, OdDbObjectIdArray layerIds);
320 
328  static OdResult removeLayerStateLayers(OdDbDatabase* pDb, const OdString sName, const OdStringArray& layerNames);
329 
339  static OdResult saveGroup(OdDbDatabase *pDb, const OdString &sName,
340  const OdDbObjectIdArray& pLayers, int mask = kOn,
341  int includedLayersState = kOn, int otherLayersState = kNone);
342 };
343 
345 class OdDbLayerStateManagerImpl;
346 
352 {
353 protected:
354  OdDbLayerStateManager(OdDbLayerStateManagerImpl*);
355 public:
359 
361  kNone = 0x0000,
362  kOn = 0x0001,
363  kFrozen = 0x0002,
364  kLocked = 0x0004,
365  kPlot = 0x0008,
366  kNewViewport = 0x0010,
367  kColor = 0x0020,
368  kLineType = 0x0040,
369  kLineWeight = 0x0080,
370  kPlotStyle = 0x0100,
371  kCurrentViewport = 0x0200,
372  kTransparency = 0x0400,
373  kAll = kOn | kFrozen | kLocked | kPlot | kNewViewport |
374  kColor | kLineType | kLineWeight | kPlotStyle |
375  kCurrentViewport | kTransparency,
376  kStateIsHidden = 0x8000,
377  kLastRestored = 0x10000,
378  kDecomposition = kAll | 0x20000
379  };
380 
381  enum {
382  kUndefDoNothing = 0,
383  kUndefTurnOff = 1,
384  kUndefFreeze = 2,
385  kRestoreAsOverrides = 4
386  };
387 
390 
391  OdDbObjectId layerStatesDictionaryId(bool bCreateIfNotPresent=false);
392  bool hasLayerState(const OdString& sName);
396  OdResult getLayerStateMask(const OdString& sName, LayerStateMask &returnMask);
398  OdResult renameLayerState(const OdString& sName, const OdString& sNewName);
401  OdResult exportLayerState(const OdString& sNameToExport, OdStreamBuf* pStreamBuf);
403  OdResult restoreLayerState(const OdString& sName, const OdDbObjectId& idVp, int nRestoreFlags = 0, const LayerStateMask* pClientMask = NULL);
404  OdResult setLayerStateDescription(const OdString& sName, const OdString& sDesc);
408  OdResult getLayerStateNames(OdStringArray& lsArray, bool bIncludeHidden = true, bool bIncludeXref = true);
410  OdResult getLayerStateLayers(OdStringArray& layerArray, const OdString& sName, bool bInvert = false);
411  bool compareLayerStateToDb(const OdString& sName, const OdDbObjectId& idVp);
412  OdResult addLayerStateLayers(const OdString& sName, const OdDbObjectIdArray& layerIds);
413  OdResult removeLayerStateLayers(const OdString& sName, const OdStringArray& layerNames);
414  bool isDependentLayerState(const OdString& sName);
416 protected:
417  OdDbLayerStateManagerImpl* m_pImpl;
418  friend class OdDbLayerStateManagerImpl;
419  friend class OdDbDatabase;
420 };
421 
422 //FELIX_CHANGE_BEGIN
428 {
429 public:
432 
436  virtual bool load() = 0;
437 
441  virtual bool save() = 0;
442 
446  virtual OdString getActiveLayer() const = 0;
447  virtual OdResult setActiveLayer( const OdString& layerStateName ) = 0;
448 
452  virtual bool isOn( const OdString& layerName ) const = 0;
453  virtual OdResult setOn( const OdString& layerName, const bool& bOn ) = 0;
454 
458  virtual bool isFreezed( const OdString& layerName, OdDbObjectId id = NULL ) const = 0;
459  virtual OdResult setFreeze( const OdString& layerName, const bool& bFreeze, OdDbObjectId id = NULL ) = 0;
460 
464  virtual bool isLocked( const OdString& layerName ) const = 0;
465  virtual OdResult setLocked( const OdString& layerName, const bool& bLock ) = 0;
466 
470  virtual OdCmColor getLineColor( const OdString& layerName ) const = 0;
471  virtual OdResult setLineColor( const OdString& layerName, const OdCmColor& color ) = 0;
472 
476  virtual OdDb::LineWeight getLineWeight( const OdString& layerName ) const = 0;
477  virtual OdResult setLineWeight( const OdString& layerName, const OdDb::LineWeight& lweight ) = 0;
478 
482  virtual OdDbObjectId getLineType( const OdString& layerName ) const = 0;
483  virtual OdResult setLineType( const OdString& layerName, const OdDbObjectId& ltype ) = 0;
484 
488  virtual OdString getPlotStyle( const OdString& layerName ) const = 0;
489  virtual OdResult setPlotStyle( const OdString& layerName, const OdString& plotStyle ) = 0;
490 
494  virtual OdCmTransparency getTransparency( const OdString& layerName) const = 0;
495  virtual OdResult setTransparency ( const OdString& layerName, const OdCmTransparency& transparency ) = 0;
496 
500  virtual bool isPlotable( const OdString& layerName ) const = 0;
501  virtual OdResult setPlotable( const OdString& layerName, const bool& bPlot ) = 0;
502 
506  virtual bool isNewVPFreeze( const OdString& layerName ) const = 0;
507  virtual OdResult setNewVPFreeze( const OdString& layerName, const bool& bNewVPFreeze ) = 0;
508 
512  virtual OdDbDatabase* database() const = 0;
513 
517  virtual OdString getLayerStateName() const = 0;
518  };
519 
521 
527 {
528 public:
531 
534 
535 private:
536  OdDbDatabasePtr m_pDb;
537 };
538 //FELIX_CHANGE_END
539 
545 {
546 public:
548 
549  virtual void layerStateCreated(const OdString& layerStateName,
550  const OdDbObjectId& layerStateId);
551  virtual void layerStateCompareFailed(const OdString& layerStateName,
552  const OdDbObjectId& layerStateId);
553 
554  virtual void layerStateToBeRestored(const OdString& layerStateName,
555  const OdDbObjectId& layerStateId);
556  virtual void layerStateRestored(const OdString& layerStateName,
557  const OdDbObjectId& layerStateId);
558  virtual void abortLayerStateRestore(const OdString& layerStateName,
559  const OdDbObjectId& layerStateId);
560 
561 
562  virtual void layerStateToBeDeleted(const OdString& layerStateName,
563  const OdDbObjectId& layerStateId);
564  virtual void layerStateDeleted(const OdString& layerStateName);
565  virtual void abortLayerStateDelete(const OdString& layerStateName,
566  const OdDbObjectId& layerStateId);
567 
568  virtual void layerStateToBeRenamed(const OdString& oldLayerStateName,
569  const OdString& newLayerStateName);
570  virtual void layerStateRenamed(const OdString& oldLayerStateName,
571  const OdString& newLayerStateName);
572  virtual void abortLayerStateRename(const OdString& oldLayerStateName,
573  const OdString& newLayerStateName);
574 };
575 
577 
578 #include "TD_PackPop.h"
579 
580 #endif //#ifndef DBLAYERSTATEMANAGER_H
OdDbLayerState::addLayerStateLayers
static OdResult addLayerStateLayers(const OdString &sName, OdDbObjectIdArray layerIds)
OdDbLayerStateProperties::setActiveLayer
virtual OdResult setActiveLayer(const OdString &layerStateName)=0
OdDbLayerStateProperties::setLineColor
virtual OdResult setLineColor(const OdString &layerName, const OdCmColor &color)=0
OdResult
OdResult
Definition: OdResult.h:29
OdDbLayerStateManagerReactor::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbLayerStateManagerReactor)
OdDbLayerStateManager::addReactor
bool addReactor(OdDbLayerStateManagerReactor *pReactor)
OdDbLayerStateManager
Definition: DbLayerState.h:352
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
NULL
#define NULL
Definition: GsProperties.h:177
OdDbLayerStateManager::LayerStateMask
LayerStateMask
Definition: DbLayerState.h:360
OdDbLayerStateManager::getLayerStateMask
OdResult getLayerStateMask(const OdString &sName, LayerStateMask &returnMask)
OdDbLayerStateManagerReactor::abortLayerStateRename
virtual void abortLayerStateRename(const OdString &oldLayerStateName, const OdString &newLayerStateName)
OdDbLayerStateManager::importLayerStateFromDb
OdResult importLayerStateFromDb(const OdString &pStateName, OdDbDatabase *pDb)
OdDbLayerStateManagerReactor::layerStateDeleted
virtual void layerStateDeleted(const OdString &layerStateName)
OdDbLayerStateManager::getLayerStateLayers
OdResult getLayerStateLayers(OdStringArray &layerArray, const OdString &sName, bool bInvert=false)
OdDbLayerStateManager::getDatabase
OdDbDatabase * getDatabase() const
OdDbLayerStateManager::exportLayerState
OdResult exportLayerState(const OdString &sNameToExport, OdStreamBuf *pStreamBuf)
OdDbLayerStateProperties::setTransparency
virtual OdResult setTransparency(const OdString &layerName, const OdCmTransparency &transparency)=0
OdCmTransparency
Definition: CmColorBase.h:1617
OdDbLegacyLayerStateImporter::~OdDbLegacyLayerStateImporter
virtual ~OdDbLegacyLayerStateImporter()
Definition: DbLayerState.h:530
OdDbLegacyLayerStateImporter::OdDbLegacyLayerStateImporter
OdDbLegacyLayerStateImporter(OdDbDatabasePtr pDb)
Definition: DbLayerState.h:529
OdGiVisualStyleProperties::kColor
@ kColor
Definition: GiVisualStyle.h:800
StringArray.h
OdDbLayerStateManagerReactor::layerStateCreated
virtual void layerStateCreated(const OdString &layerStateName, const OdDbObjectId &layerStateId)
OdDbLayerState::exportData
static void exportData(OdDbDatabase *pDb, const OdString &layerStateName, OdStreamBuf *pStreamBuf)
OdDbLayerStateManagerReactor::abortLayerStateDelete
virtual void abortLayerStateDelete(const OdString &layerStateName, const OdDbObjectId &layerStateId)
OdRxObject
Definition: RxObject.h:564
OdDbObjectId
Definition: DbObjectId.h:99
OdDbLayerState::setDescription
static void setDescription(OdDbDatabase *pDb, const OdString &layerStateName, const OdString &description)
OdDbLayerStateProperties::isFreezed
virtual bool isFreezed(const OdString &layerName, OdDbObjectId id=NULL) const =0
OdDbLayerStateManagerReactor::layerStateRenamed
virtual void layerStateRenamed(const OdString &oldLayerStateName, const OdString &newLayerStateName)
OdDbLayerStateManagerReactor::abortLayerStateRestore
virtual void abortLayerStateRestore(const OdString &layerStateName, const OdDbObjectId &layerStateId)
OdDbLayerState::setMask
static void setMask(OdDbDatabase *pDb, const OdString &layerStateName, int layerStateMask)
OdDbLayerStateManager::removeReactor
bool removeReactor(OdDbLayerStateManagerReactor *pReactor)
OdDbLayerStateProperties::getLineWeight
virtual OdDb::LineWeight getLineWeight(const OdString &layerName) const =0
OdDbLayerStateProperties::isOn
virtual bool isOn(const OdString &layerName) const =0
OdDbLayerStateManagerReactor::layerStateToBeRenamed
virtual void layerStateToBeRenamed(const OdString &oldLayerStateName, const OdString &newLayerStateName)
OdArray< OdDbObjectId, OdMemoryAllocator< OdDbObjectId > >
OdDbLayerStateManager::hasLayerState
bool hasLayerState(const OdString &sName)
OdDbLayerStateManager::setLayerStateMask
OdResult setLayerStateMask(const OdString &sName, LayerStateMask mask)
TD_PackPop.h
ltype
ltype
Definition: DimVarDefs.h:2949
OdDbLayerStateProperties::save
virtual bool save()=0
OdDbLayerStateProperties::getLayerStateName
virtual OdString getLayerStateName() const =0
mask
GLenum GLint GLuint mask
Definition: gles2_ext.h:262
OdDbLayerStateManager::~OdDbLayerStateManager
~OdDbLayerStateManager()
OdDbLayerStateProperties::getLineType
virtual OdDbObjectId getLineType(const OdString &layerName) const =0
OdPdfPublish::Lighting::kNone
@ kNone
Light mode is inherited from the annotation.
Definition: PdfPublishCommon.h:160
OdDbLegacyLayerStateImporter::importLegacyLayerStates
OdResult importLegacyLayerStates()
OdDbLayerStateManagerReactor::layerStateRestored
virtual void layerStateRestored(const OdString &layerStateName, const OdDbObjectId &layerStateId)
OdDbLayerStateManager::layerStatesDictionaryId
OdDbObjectId layerStatesDictionaryId(bool bCreateIfNotPresent=false)
OdDbLayerStateManager::getLayerStateNames
OdResult getLayerStateNames(OdStringArray &lsArray, bool bIncludeHidden=true, bool bIncludeXref=true)
fxGetLayerStateProperties
TOOLKIT_EXPORT OdDbLayerStateProperties * fxGetLayerStateProperties(OdDbDatabase *pDb, const OdString &layerState)
OdDbLayerStateProperties::getPlotStyle
virtual OdString getPlotStyle(const OdString &layerName) const =0
OdDbLayerStateManager::removeLayerStateLayers
OdResult removeLayerStateLayers(const OdString &sName, const OdStringArray &layerNames)
OdDbLayerState::saveGroup
static OdResult saveGroup(OdDbDatabase *pDb, const OdString &sName, const OdDbObjectIdArray &pLayers, int mask=kOn, int includedLayersState=kOn, int otherLayersState=kNone)
OdDbLayerStateProperties::setLineWeight
virtual OdResult setLineWeight(const OdString &layerName, const OdDb::LineWeight &lweight)=0
OdDbLayerStateProperties::isPlotable
virtual bool isPlotable(const OdString &layerName) const =0
OdDbLayerState::has
static bool has(OdDbDatabase *pDb, const OdString &layerStateName)
OdSmartPtr< OdDbDatabase >
OdDbLayerState::ImportResult
ImportResult
Definition: DbLayerState.h:257
OdDbLayerStateProperties::getActiveLayer
virtual OdString getActiveLayer() const =0
OdDbLayerStateProperties::database
virtual OdDbDatabase * database() const =0
OdDbLayerStateManager::OdDbLayerStateManager
OdDbLayerStateManager()
OdDbLayerStateManager::isDependentLayerState
bool isDependentLayerState(const OdString &sName)
OdDbLayerStateManagerReactor::layerStateToBeDeleted
virtual void layerStateToBeDeleted(const OdString &layerStateName, const OdDbObjectId &layerStateId)
OdDbLayerStateProperties::setPlotStyle
virtual OdResult setPlotStyle(const OdString &layerName, const OdString &plotStyle)=0
OdDbLayerState::dictionaryId
static OdDbObjectId dictionaryId(OdDbDatabase *pDb, bool createIfNotFound=false)
OdDbObjectId::kNull
static TOOLKIT_EXPORT_STATIC const OdDbObjectId kNull
Definition: DbObjectId.h:118
OdDbLayerStateManager::deleteLayerState
OdResult deleteLayerState(const OdString &sName)
OdDbLayerStateProperties::setPlotable
virtual OdResult setPlotable(const OdString &layerName, const bool &bPlot)=0
OdDbLegacyLayerStateImporter::hasLegacyLayerStates
bool hasLegacyLayerStates()
OdDbLayerStateManager::setLayerStateDescription
OdResult setLayerStateDescription(const OdString &sName, const OdString &sDesc)
OdDbLayerStateManager::saveLayerState
OdResult saveLayerState(const OdString &sName, LayerStateMask mask)
OdDbLayerStateProperties::setNewVPFreeze
virtual OdResult setNewVPFreeze(const OdString &layerName, const bool &bNewVPFreeze)=0
OdDbLayerStateProperties::getLineColor
virtual OdCmColor getLineColor(const OdString &layerName) const =0
OdDbLayerState
Definition: DbLayerState.h:37
OdDbLayerStateProperties::~OdDbLayerStateProperties
virtual ~OdDbLayerStateProperties()
Definition: DbLayerState.h:431
TD_PackPush.h
OdDbLayerStateManager::saveLayerState
OdResult saveLayerState(const OdString &sName, LayerStateMask mask, const OdDbObjectId &idVp)
OdDbLayerState::mask
static int mask(OdDbDatabase *pDb, const OdString &layerStateName)
OdDbLayerStateProperties::getTransparency
virtual OdCmTransparency getTransparency(const OdString &layerName) const =0
OdDbLayerState::hasViewportData
static bool hasViewportData(OdDbDatabase *pDb, const OdString &layerStateName)
OdDbLayerStateManager::layerStateHasViewportData
bool layerStateHasViewportData(const OdString &sName)
OdDbLayerStateManagerReactor::layerStateCompareFailed
virtual void layerStateCompareFailed(const OdString &layerStateName, const OdDbObjectId &layerStateId)
OdStreamBuf
Definition: OdStreamBuf.h:67
OdDbLayerStateManager::restoreLayerState
OdResult restoreLayerState(const OdString &sName)
OdDbLayerStateManagerReactorPtr
OdSmartPtr< OdDbLayerStateManagerReactor > OdDbLayerStateManagerReactorPtr
Definition: DbLayerState.h:576
OdDbLayerStateProperties
Definition: DbLayerState.h:428
OdDbLayerState::save
static void save(OdDbDatabase *pDb, const OdString &layerStateName, int layerStateMask, const OdDbObjectId &viewportId=OdDbObjectId::kNull)
OdDbLayerStateManager::compareLayerStateToDb
bool compareLayerStateToDb(const OdString &sName, const OdDbObjectId &idVp)
OdDbLayerState::importData
static ImportResult importData(OdDbDatabase *pDb, OdStreamBuf *pStreamBuf, OdString *pName=0)
OdDb::LineWeight
LineWeight
Definition: OdaDefs.h:382
OdDbLayerStateManager::m_pImpl
OdDbLayerStateManagerImpl * m_pImpl
Definition: DbLayerState.h:417
OdDbLayerStateManager::importLayerState
OdResult importLayerState(OdStreamBuf *pStreamBuf)
OdDbLayerState::description
static OdString description(OdDbDatabase *pDb, const OdString &layerStateName)
OdDbLayerStateProperties::isLocked
virtual bool isLocked(const OdString &layerName) const =0
OdDbLayerStateProperties::setLocked
virtual OdResult setLocked(const OdString &layerName, const bool &bLock)=0
OdDbLayerStateManagerReactor
Definition: DbLayerState.h:545
OdDbLayerStateManager::addLayerStateLayers
OdResult addLayerStateLayers(const OdString &sName, const OdDbObjectIdArray &layerIds)
OdDbLayerState::rename
static void rename(OdDbDatabase *pDb, const OdString &oldName, const OdString &newName)
OdDbLayerStateProperties::setOn
virtual OdResult setOn(const OdString &layerName, const bool &bOn)=0
OdDbLayerStateProperties::isNewVPFreeze
virtual bool isNewVPFreeze(const OdString &layerName) const =0
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdIfc::kTransparency
@ kTransparency
Definition: IfcAttributesEnum.h:1237
OdDbLayerStateManager::renameLayerState
OdResult renameLayerState(const OdString &sName, const OdString &sNewName)
OdDbLayerStateProperties::setLineType
virtual OdResult setLineType(const OdString &layerName, const OdDbObjectId &ltype)=0
OdDbLayerStateManager::OdDbLayerStateManager
OdDbLayerStateManager(OdDbLayerStateManagerImpl *)
OdDbLayerState::kImported
@ kImported
Definition: DbLayerState.h:258
OdDbLayerStateProperties::setFreeze
virtual OdResult setFreeze(const OdString &layerName, const bool &bFreeze, OdDbObjectId id=NULL)=0
OdDbLegacyLayerStateImporter
Definition: DbLayerState.h:527
OdDbLayerStateProperties::OdDbLayerStateProperties
OdDbLayerStateProperties()
Definition: DbLayerState.h:430
OdDbLayerState::remove
static void remove(OdDbDatabase *pDb, const OdString &layerStateName)
OdCmColor
Definition: CmColor.h:59
OdDbLayerStateManager::importLayerState
OdResult importLayerState(OdStreamBuf *pStreamBuf, OdString &sName)
OdDbLayerState::restore
static void restore(OdDbDatabase *pDb, const OdString &layerStateName, int flags=kUndefDoNothing, const int layerStateMask=kDefMask, const OdDbObjectId &viewportId=OdDbObjectId::kNull)
OdDbLayerStateManager::getLastRestoredLayerState
OdResult getLastRestoredLayerState(OdString &sName, OdDbObjectId &restoredLSId)
OdDbLayerStateManagerReactor::layerStateToBeRestored
virtual void layerStateToBeRestored(const OdString &layerStateName, const OdDbObjectId &layerStateId)
OdDbLayerState::Mask
Mask
Definition: DbLayerState.h:40
OdDbLayerStateManager::restoreLayerState
OdResult restoreLayerState(const OdString &sName, const OdDbObjectId &idVp, int nRestoreFlags=0, const LayerStateMask *pClientMask=NULL)
OdDbLayerStateManager::getLayerStateDescription
OdResult getLayerStateDescription(const OdString &sName, OdString &sDesc)
OdDbLayerState::removeLayerStateLayers
static OdResult removeLayerStateLayers(OdDbDatabase *pDb, const OdString sName, const OdStringArray &layerNames)
OdDbLayerStateProperties::load
virtual bool load()=0
OdDbLayerStateManager::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbLayerStateManager)