CFx SDK Documentation 2024 SP0
|
#include <DbLayerState.h>
Public Types | |
enum | LayerStateMask { kNone = 0x0000 , kOn = 0x0001 , kFrozen = 0x0002 , kLocked = 0x0004 , kPlot = 0x0008 , kNewViewport = 0x0010 , kColor = 0x0020 , kLineType = 0x0040 , kLineWeight = 0x0080 , kPlotStyle = 0x0100 , kCurrentViewport = 0x0200 , kTransparency = 0x0400 , kAll , kStateIsHidden = 0x8000 , kLastRestored = 0x10000 , kDecomposition = kAll | 0x20000 } |
enum | { kUndefDoNothing = 0 , kUndefTurnOff = 1 , kUndefFreeze = 2 , kRestoreAsOverrides = 4 } |
Protected Member Functions | |
OdDbLayerStateManager (OdDbLayerStateManagerImpl *) | |
Protected Attributes | |
OdDbLayerStateManagerImpl * | m_pImpl |
Friends | |
class | OdDbLayerStateManagerImpl |
class | OdDbDatabase |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
This class represents Layer States Manager objects. Corresponding C++ library: TD_Db <group OdDb_Classes>
Definition at line 38 of file DbLayerState.h.
anonymous enum |
This enumeration determines flags that are used in restore layer state operations. The first three flags indicate what to do with the layers that are not included in the layer state being restored.
Enumerator | |
---|---|
kUndefDoNothing | |
kUndefTurnOff | |
kUndefFreeze | |
kRestoreAsOverrides |
Definition at line 87 of file DbLayerState.h.
Enumeration that determines which layer attributes are to be stored in the LayerState.
Enumerator | |
---|---|
kNone | |
kOn | |
kFrozen | |
kLocked | |
kPlot | |
kNewViewport | |
kColor | |
kLineType | |
kLineWeight | |
kPlotStyle | |
kCurrentViewport | |
kTransparency | |
kAll | |
kStateIsHidden | |
kLastRestored | |
kDecomposition |
Definition at line 61 of file DbLayerState.h.
|
protected |
OdDbLayerStateManager::OdDbLayerStateManager | ( | ) |
Default constructor for objects of the OdDbLayerStateManager class.
OdDbLayerStateManager::~OdDbLayerStateManager | ( | ) |
Default destructor for objects of the OdDbLayerStateManager class.
OdResult OdDbLayerStateManager::addLayerStateLayers | ( | const OdString & | sName, |
const OdDbObjectIdArray & | layerIds | ||
) |
bool OdDbLayerStateManager::addReactor | ( | OdDbLayerStateManagerReactor * | pReactor | ) |
Adds a state manager reactor to this state manager object.
OdDbLayerStateManagerReactor | [in] Pointer to the state manager reactor object to be added. |
bool OdDbLayerStateManager::compareLayerStateToDb | ( | const OdString & | sName, |
const OdDbObjectId & | idVp | ||
) |
Deletes a layer state.
sName | [in] Name of the layer state to be deleted. |
OdResult OdDbLayerStateManager::exportLayerState | ( | const OdString & | sNameToExport, |
OdStreamBuf * | pStreamBuf | ||
) |
OdDbDatabase * OdDbLayerStateManager::getDatabase | ( | ) | const |
OdResult OdDbLayerStateManager::getLastRestoredLayerState | ( | OdString & | sName, |
OdDbObjectId & | restoredLSId | ||
) |
OdResult OdDbLayerStateManager::getLayerStateDescription | ( | const OdString & | sName, |
OdString & | sDesc | ||
) |
OdResult OdDbLayerStateManager::getLayerStateLayers | ( | OdStringArray & | layerArray, |
const OdString & | sName, | ||
bool | bInvert = false |
||
) |
OdResult OdDbLayerStateManager::getLayerStateMask | ( | const OdString & | sName, |
LayerStateMask & | returnMask | ||
) |
Retrieves a layer state mask from a specific layer state.
sName | [in] Name of the layer state to get the mask from. |
returnMask | [out] Layer state mask. |
Value kNone 0x0000 kOn 0x0001 kFrozen 0x0002 kLocked 0x0004 kPlot 0x0008 kNewViewport 0x0010 kColor 0x0020 kLineType 0x0040 kLineWeight 0x0080 kPlotStyle 0x0100 kCurrentViewport 0x0200 kTransparency 0x0400 kAll kOn | kFrozen | kLocked | kPlot | kNewViewport | kColor | kLineType | kLineWeight | kPlotStyle | kCurrentViewport | kTransparency kHidden 0x8000
OdResult OdDbLayerStateManager::getLayerStateNames | ( | OdStringArray & | lsArray, |
bool | bIncludeHidden = true , |
||
bool | bIncludeXref = true |
||
) |
bool OdDbLayerStateManager::hasLayerState | ( | const OdString & | sName | ) |
Indicates if the layer state with the given name is managed by this layer state manager object.
sName | [in] Name of the layer state. |
OdResult OdDbLayerStateManager::importLayerState | ( | OdStreamBuf * | pStreamBuf | ) |
Imports a layer state.
pStreamBuf | [in] Stream buffer to import a layer state from. |
OdResult OdDbLayerStateManager::importLayerState | ( | OdStreamBuf * | pStreamBuf, |
OdString & | sName | ||
) |
Imports a layer state.
pStreamBuf | [in] Stream buffer to import a layer state from. |
sName | [out] Name of the imported layer state. |
OdResult OdDbLayerStateManager::importLayerStateFromDb | ( | const OdString & | pStateName, |
OdDbDatabase * | pDb | ||
) |
bool OdDbLayerStateManager::isDependentLayerState | ( | const OdString & | sName | ) |
bool OdDbLayerStateManager::layerStateHasViewportData | ( | const OdString & | sName | ) |
OdDbObjectId OdDbLayerStateManager::layerStatesDictionaryId | ( | bool | bCreateIfNotPresent = false | ) |
Gets the layer state dictionary ID if present in the current database. The layer state dictionary can be created if it's not present and the bCreateIfNotPresent parameter is set to true.
bCreateIfNotPresent | [in] Create a layer state dictionary if it's not present in the current database. |
OdDbLayerStateManager::ODRX_DECLARE_MEMBERS | ( | OdDbLayerStateManager | ) |
OdResult OdDbLayerStateManager::removeLayerStateLayers | ( | const OdString & | sName, |
const OdStringArray & | layerNames | ||
) |
bool OdDbLayerStateManager::removeReactor | ( | OdDbLayerStateManagerReactor * | pReactor | ) |
Removes a state manager reactor to this state manager object.
OdDbLayerStateManagerReactor | [in] Pointer to the state manager reactor object to be removed. |
OdResult OdDbLayerStateManager::renameLayerState | ( | const OdString & | sName, |
const OdString & | sNewName | ||
) |
Renames a layer state.
sName | [in] Name of the layer state to renamed. |
sNewName | [in] New name to be assigned to the layer state. |
Restores a layer state from the current database.
sName | [in] Name of the layer state to be restored. |
OdResult OdDbLayerStateManager::restoreLayerState | ( | const OdString & | sName, |
const OdDbObjectId & | idVp, | ||
int | nRestoreFlags = 0 , |
||
const LayerStateMask * | pClientMask = NULL |
||
) |
OdResult OdDbLayerStateManager::saveLayerState | ( | const OdString & | sName, |
LayerStateMask | mask | ||
) |
Saves a layer state to the current database.
sName | [in] Name of the layer state to be saved. |
mask | [in] Layer state mask. |
Value kNone 0x0000 kOn 0x0001 kFrozen 0x0002 kLocked 0x0004 kPlot 0x0008 kNewViewport 0x0010 kColor 0x0020 kLineType 0x0040 kLineWeight 0x0080 kPlotStyle 0x0100 kCurrentViewport 0x0200 kTransparency 0x0400 kAll kOn | kFrozen | kLocked | kPlot | kNewViewport | kColor | kLineType | kLineWeight | kPlotStyle | kCurrentViewport | kTransparency kHidden 0x8000
OdResult OdDbLayerStateManager::saveLayerState | ( | const OdString & | sName, |
LayerStateMask | mask, | ||
const OdDbObjectId & | idVp | ||
) |
OdResult OdDbLayerStateManager::setLayerStateDescription | ( | const OdString & | sName, |
const OdString & | sDesc | ||
) |
OdResult OdDbLayerStateManager::setLayerStateMask | ( | const OdString & | sName, |
LayerStateMask | mask | ||
) |
Sets the layer state mask for a specific layer state.
sName | [in] Name of the layer state to set the mask for. |
mask | [in] Layer state mask. |
Value kNone 0x0000 kOn 0x0001 kFrozen 0x0002 kLocked 0x0004 kPlot 0x0008 kNewViewport 0x0010 kColor 0x0020 kLineType 0x0040 kLineWeight 0x0080 kPlotStyle 0x0100 kCurrentViewport 0x0200 kTransparency 0x0400 kAll kOn | kFrozen | kLocked | kPlot | kNewViewport | kColor | kLineType | kLineWeight | kPlotStyle | kCurrentViewport | kTransparency kHidden 0x8000
|
friend |
Definition at line 308 of file DbLayerState.h.
|
friend |
Definition at line 307 of file DbLayerState.h.
|
protected |
Definition at line 306 of file DbLayerState.h.