CFx SDK Documentation  2020SP3
Public Types | Public Member Functions | Static Public Member Functions | List of all members
CFxDatabase Class Referenceabstract

#include <FxDatabase.h>

Inheritance diagram for CFxDatabase:
OdDbDatabase OdDbObject OdGiDrawable OdRxObject

Public Types

enum  FxPartialUndoID {
  kPU_COMMANDNAME = LAST_DWGDIRECT_UNDO_ID + 1, kPU_DbDWGCODEPAGE, kPU_DbTDUCREATE, kPU_DbTDUUPDATE,
  kPU_DbTDINDWG, kPU_DbTDUSRTIMER, kPU_DbPSTYLEMODE, kPU_DbPUCSORG,
  kPU_DbPUCSXDIR, kPU_DbPUCSYDIR, kPU_DbREFEDIT, kPU_DbREFSET,
  kPU_DbREFBASEPT, kPU_DbHIDEOBJ, kPU_DbBEDIT, kPU_DbDummy
}
 
enum  UNDOCTL_Modes {
  Enabled = 0x1, One = 0x2, Auto = 0x4, Combine = 0x10,
  Layer = 0x20
}
 
- Public Types inherited from OdGiDrawable
enum  SetAttributesFlags {
  kDrawableNone = 0, kDrawableIsAnEntity = 1, kDrawableUsesNesting = 2, kDrawableIsCompoundObject = 4,
  kDrawableViewIndependentViewportDraw = 8, kDrawableIsInvisible = 16, kDrawableHasAttributes = 32, kDrawableRegenTypeDependantGeometry = 64,
  kDrawableIsDimension = (kDrawableIsAnEntity + kDrawableIsCompoundObject + 128), kDrawableRegenDraw = 256, kDrawableStandardDisplaySingleLOD = 512, kDrawableShadedDisplaySingleLOD = 1024,
  kDrawableViewDependentViewportDraw = 2048, kDrawableBlockDependentViewportDraw = 4096, kDrawableIsExternalReference = 8192, kDrawableNotPlottable = 16384,
  kLastFlag = kDrawableNotPlottable
}
 
enum  DrawableType {
  kGeometry = 0, kDistantLight = 1, kPointLight = 2, kSpotLight = 3,
  kAmbientLight, kSolidBackground, kGradientBackground, kImageBackground,
  kGroundPlaneBackground, kViewport, kWebLight, kSkyBackground,
  kImageBasedLightingBackground
}
 

Public Member Functions

 ODRX_DECLARE_MEMBERS (CFxDatabase)
 
 CFxDatabase (void)
 
 ~CFxDatabase (void) override
 
virtual bool SaveFile (const CFxFileData *pNewData=0, bool deleteBackupFile=true)=0
 
virtual void LockFile (bool bLock)=0
 
OdDbObjectId GetActiveViewportId (OdDbObjectId idLayout=OdDbObjectId::kNull) const
 
bool IsModelLayoutActive () const
 
OdDbObjectId GetActiveBlockId () const
 
virtual const CFxUnitsFormatterGetUnitsFormatter () const =0
 
virtual const CFxFileDataGetFileData () const =0
 
virtual void SetFileData (const CFxFileData &) const =0
 
virtual CFxGsModel * GetFxGsModel ()=0
 
virtual const CFxGsModel * GetFxGsModel () const =0
 
virtual CFxRecentlyErasedGetRecentlyErased ()=0
 
virtual void StartUndoRecord (const CFxString &strLabel)=0
 
virtual void ResetTime ()=0
 
virtual CFxDatabaseHistoryGetDatabaseHistory ()=0
 Gets the database history. More...
 
virtual int BlockPurge (OdDbObjectId id, bool block)=0
 Block purge. More...
 
virtual const std::set< OdDbObjectId > & GetBlockedPurge () const =0
 
virtual const OdTimeStampgetElapsedTime ()=0
 
OdCodePageId getDWGCODEPAGE () const override
 
OdGePoint2d getPLIMMIN () const override=0
 
OdGePoint2d getPLIMMAX () const override=0
 
virtual bool setDWGCODEPAGE (OdCodePageId value)=0
 
virtual bool setTDUCREATE (OdDbDate value)=0
 
virtual bool setTDUUPDATE (OdDbDate value)=0
 
virtual bool setTDINDWG (OdDbDate value)=0
 
virtual bool setTDUSRTIMER (OdDbDate value)=0
 
virtual bool setPSTYLEMODE (bool value)=0
 
virtual bool setPUCSORG (OdGePoint3d value)=0
 
virtual bool setPUCSXDIR (OdGeVector3d value)=0
 
virtual bool setPUCSYDIR (OdGeVector3d value)=0
 
virtual bool setUCSORG (OdGePoint3d value)=0
 
virtual bool setUCSXDIR (OdGeVector3d value)=0
 
virtual bool setUCSYDIR (OdGeVector3d value)=0
 
virtual OdString getUSERS1 () const =0
 
virtual bool setUSERS1 (const OdString &value)=0
 
virtual OdString getUSERS2 () const =0
 
virtual bool setUSERS2 (const OdString &value)=0
 
virtual OdString getUSERS3 () const =0
 
virtual bool setUSERS3 (const OdString &value)=0
 
virtual OdString getUSERS4 () const =0
 
virtual bool setUSERS4 (const OdString &value)=0
 
virtual OdString getUSERS5 () const =0
 
virtual bool setUSERS5 (const OdString &value)=0
 
virtual OdInt16 getBINDTYPE () const =0
 
virtual bool setBINDTYPE (OdInt16 value)=0
 
virtual CFxViewGetGsView (OdDbObjectId id) const =0
 
- Public Member Functions inherited from OdDbDatabase
OdResult subGetClassID (void *pClsid) const
 
 ODRX_DECLARE_MEMBERS (OdDbDatabase)
 
void addRef ()
 
void release ()
 
OdDbHostAppServicesappServices () const
 
void initialize (OdDb::MeasurementValue measurement=OdDb::kEnglish)
 
void initialize (OdDb::MeasurementValue measurement, bool bVisualStyles)
 
virtual ~OdDbDatabase ()
 
OdDbObjectId addOdDbObject (OdDbObject *pObject, OdDbObjectId ownerId=OdDbObjectId::kNull, OdDbHandle handle=0)
 
bool newRegApp (const OdString &regAppName)
 
OdDbObjectId getBlockTableId () const
 
OdDbObjectId getLayerTableId () const
 
OdDbObjectId getTextStyleTableId () const
 
OdDbObjectId getLinetypeTableId () const
 
OdDbObjectId getViewTableId () const
 
OdDbObjectId getUCSTableId () const
 
OdDbObjectId getViewportTableId () const
 
OdDbObjectId getRegAppTableId () const
 
OdDbObjectId getDimStyleTableId () const
 
OdDbObjectId getMLStyleDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getGroupDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getLayoutDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getPlotStyleNameDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getNamedObjectsDictionaryId () const
 
OdDbObjectId getPlotSettingsDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getColorDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getMaterialDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getVisualStyleDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getTableStyleDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId getScaleListDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId tablestyle () const
 
void setTablestyle (OdDbObjectId objectId)
 
OdDbObjectId getMLeaderStyleDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId mleaderstyle () const
 
void setMLeaderstyle (OdDbObjectId objectId)
 
OdDbObjectId getDetailViewStyleDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId detailViewStyle () const
 
void setDetailViewStyle (OdDbObjectId objectId)
 
OdDbObjectId getSectionViewStyleDictionaryId (bool createIfNotFound=true) const
 
OdDbObjectId sectionViewStyle () const
 
void setSectionViewStyle (OdDbObjectId objectId)
 
OdDbObjectId getRegAppAcadId () const
 
OdDbObjectId getLinetypeContinuousId () const
 
OdDbObjectId getLinetypeByLayerId () const
 
OdDbObjectId getLinetypeByBlockId () const
 
OdDbObjectId getModelSpaceId () const
 
OdDbObjectId getPaperSpaceId () const
 
OdDbObjectId getTextStyleStandardId () const
 
OdDbObjectId getDimStyleStandardId () const
 
OdDbObjectId getLayerZeroId () const
 
OdDbObjectId getLayerDefpointsId (bool createIfNotFound=false) const
 
OdDbObjectId getLayerAdskId (OdDb::LayerAdskType layerType, bool createIfNotFound=false) const
 
OdDbObjectId getSectionManager () const
 
OdDbObjectId getPointCloudDictionaryId () const
 
const OdString classDxfName (const OdRxClass *pClass)
 
OdDbObjectId getOdDbObjectId (const OdDbHandle &objHandle, bool createIfNotFound=false, OdUInt32 xRefId=0)
 
void writeFile (OdStreamBuf *pStreamBuf, OdDb::SaveType fileType, OdDb::DwgVersion fileVersion, bool saveThumbnailImage=false, int dxfPrecision=16)
 
void writeFile (const OdString &filename, OdDb::SaveType fileType, OdDb::DwgVersion fileVersion, bool saveThumbnailImage=false, int dxfPrecision=16)
 
void save (OdStreamBuf *pStreamBuf, bool saveThumbnailImage=false)
 
void save (const OdString &filename, bool saveThumbnailImage=false)
 
void readFile (OdStreamBuf *pStreamBuf, bool partialLoad=false, OdDbAuditInfo *pAuditInfo=0, const OdPassword &password=OdPassword(), bool allowCPConversion=false)
 
void readFile (const OdString &filename, bool partialLoad=false, Oda::FileShareMode shareMode=Oda::kShareDenyWrite, const OdPassword &password=OdPassword(), bool allowCPConversion=false)
 
void closeInput ()
 
OdInt32 approxNumObjects () const
 
OdDb::DwgVersion version (OdDb::MaintReleaseVer *pMaintReleaseVer=0) const
 
OdInt32 numberOfSaves () const
 
OdDb::DwgVersion lastSavedAsVersion (OdDb::MaintReleaseVer *pMaintReleaseVer=0) const
 
OdDb::SaveType originalFileType () const
 
OdDb::DwgVersion originalFileVersion (OdDb::MaintReleaseVer *pMaintReleaseVer=0) const
 
OdDb::DwgVersion originalFileSavedByVersion (OdDb::MaintReleaseVer *pMaintReleaseVer=0) const
 
void addReactor (OdDbDatabaseReactor *pReactor) const
 
void removeReactor (OdDbDatabaseReactor *pReactor) const
 
int dimfit () const
 
int dimunit () const
 
void setDimfit (int val)
 
void setDimunit (int val)
 
void deepCloneObjects (const OdDbObjectIdArray &objectIds, OdDbObjectId ownerId, OdDbIdMapping &idMap, bool deferXlation=false)
 
void wblockCloneObjects (const OdDbObjectIdArray &objectIds, OdDbObjectId ownerId, OdDbIdMapping &idMap, OdDb::DuplicateRecordCloning duplicateRecordCloning, bool deferXlation=false)
 
void abortDeepClone (OdDbIdMapping &idMap)
 
void audit (OdDbAuditInfo *pAuditInfo)
 
virtual void startTransaction ()
 
virtual void endTransaction ()
 
virtual void abortTransaction ()
 
virtual int numActiveTransactions ()
 
virtual void addTransactionReactor (OdDbTransactionReactor *reactor)
 
virtual void removeTransactionReactor (OdDbTransactionReactor *reactor)
 
const voidthumbnailBitmap (OdUInt32 &dataLength) const
 
void setThumbnailBitmap (const void *pBMPData, OdUInt32 dataLength)
 
bool retainOriginalThumbnailBitmap () const
 
void setRetainOriginalThumbnailBitmap (bool retain)
 
void dwgOutFields (OdDbDwgFiler *pFiler) const
 
OdResult dwgInFields (OdDbDwgFiler *pFiler)
 
bool getDIMANNO () const
 
OdDbDate getTDCREATE () const
 
OdDbDate getTDUPDATE () const
 
void resetTimes ()
 
OdResBufPtr getSysVar (const OdString &name) const
 
void setSysVar (const OdString &name, const OdResBuf *pValue)
 
OdDbHandle handseed () const
 
void getDimstyleData (OdDbDimStyleTableRecord *pDestination) const
 
OdResult getDimstyleChildData (const OdRxClass *pDimClass, OdDbDimStyleTableRecord *pRec, OdDbObjectId &style) const
 
OdDbObjectId getDimstyleChildId (const OdRxClass *pDimClass, const OdDbObjectId &parentStyle) const
 
OdDbObjectId getDimstyleParentId (const OdDbObjectId &childStyle) const
 
void setDimstyleData (const OdDbDimStyleTableRecord *pSource)
 
void setDimstyleData (OdDbObjectId objectId)
 
void loadLineTypeFile (const OdString &ltName, const OdString &filename, OdDb::DuplicateLinetypeLoading dlt=OdDb::kDltNotApplicable, OdDb::TextFileEncoding encode=OdDb::kTextFileEncodingDefault)
 
virtual OdString getFilename () const
 
virtual void purge (OdDbObjectIdArray &objectIds) const
 
virtual OdResult purge (OdDbObjectIdGraph &objectIds) const
 
virtual void countHardReferences (const OdDbObjectIdArray &objectIds, OdUInt32 *counts) const
 
OdDbObjectId currentLayoutId () const
 
virtual void setCurrentLayout (const OdString &layoutName)
 
virtual void setCurrentLayout (const OdDbObjectId &layoutId)
 
virtual OdString findActiveLayout (bool allowModel) const
 
virtual OdDbObjectId getActiveLayoutBTRId () const
 
virtual OdDbObjectId findLayoutNamed (const OdString &layoutName) const
 
virtual void deleteLayout (const OdString &layoutName)
 
virtual OdDbObjectId createLayout (const OdString &layoutName, OdDbObjectId *pBlockTableRecId=0)
 
virtual int countLayouts () const
 
virtual void renameLayout (const OdString &oldName, const OdString &newName)
 
void startUndoRecord ()
 
bool hasUndo () const
 
void undo ()
 
void blockUndoRecording (bool bBegin)
 
bool isUndoBlockStarted ()
 
void setUndoMark ()
 
bool hasUndoMark () const
 
void undoBack ()
 
int getUNDOMARKS () const
 
void clearUndo ()
 
bool hasRedo () const
 
void redo ()
 
void auditDatabase (OdDbAuditInfo *pAuditInfo)
 
void applyPartialUndo (OdDbDwgFiler *pUndoFiler, OdRxClass *pClassObj)
 
OdDbDwgFilerundoFiler ()
 
OdDbObjectId insert (const OdString &destinationBlockName, OdDbDatabase *pSource, bool preserveSourceDatabase=true)
 
OdDbObjectId insert (const OdString &sourceBlockName, const OdString &destinationBlockName, OdDbDatabase *pSource, bool preserveSourceDatabase=true)
 
void insert (const OdGeMatrix3d &xfm, OdDbDatabase *pSource, bool preserveSourceDatabase=true)
 
OdDbDatabasePtr wblock (const OdDbObjectIdArray &outObjIds, const OdGePoint3d &basePoint)
 
OdDbDatabasePtr wblock (OdDbObjectId blockId)
 
OdDbDatabasePtr wblock ()
 
OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *) const
 
void setSecurityParams (const OdSecurityParams &secParams, bool setDbMod=true)
 
bool securityParams (OdSecurityParams &secParams) const
 
OdFileDependencyManagerPtr fileDependencyManager () const
 
OdDbObjectContextManagerPtr objectContextManager () const
 
OdDbLayerStateManagergetLayerStateManager () const
 
void updateExt (bool bExact=false)
 
bool isEMR () const
 
OdDbObjectId xrefBlockId () const
 
bool isPartiallyOpened () const
 
bool isDatabaseLoading () const
 
bool isDatabaseConverting () const
 
OdDbAuditInfoauditInfo () const
 
void setCurrentUCS (OdDb::OrthographicView viewType)
 
void setCurrentUCS (const OdDbObjectId &ucsId)
 
void setCurrentUCS (const OdGePoint3d &origin, const OdGeVector3d &xAxis, const OdGeVector3d &yAxis)
 
OdGePoint3d getUCSBASEORG (OdDb::OrthographicView viewType) const
 
void setUCSBASEORG (OdDb::OrthographicView viewType, const OdGePoint3d &origin)
 
OdGePoint3d getPUCSBASEORG (OdDb::OrthographicView viewType) const
 
void setPUCSBASEORG (OdDb::OrthographicView viewType, const OdGePoint3d &origin)
 
void restoreOriginalXrefSymbols ()
 
void restoreForwardingXrefSymbols ()
 
OdDbObjectId byLayerMaterialId () const
 
OdDbObjectId byBlockMaterialId () const
 
OdDbObjectId globalMaterialId () const
 
OdDbObjectId activeViewportId () const
 
virtual OdDbUnitsFormatterformatter ()
 
void enableGraphicsFlush (bool bEnable)
 
void flushGraphics ()
 
bool isMultiThreadedMode () const
 
OdDb::MultiThreadedMode multiThreadedMode () const
 
virtual void setMultiThreadedMode (OdDb::MultiThreadedMode)
 
void setCannoscale (OdDbAnnotationScale *val)
 
OdDbAnnotationScalePtr cannoscale () const
 
OdDbHistoryManagerhistoryManager ()
 
- Public Member Functions inherited from OdDbObject
 ODDB_DECLARE_MEMBERS (OdDbObject)
 
 ~OdDbObject ()
 
void addRef ()
 
void release ()
 
long numRefs () const
 
OdDbObjectId objectId () const
 
OdDbHandle getDbHandle () const
 
OdDbHandle handle () const
 
OdDbObjectId ownerId () const
 
virtual void setOwnerId (OdDbObjectId ownerId)
 
OdDbDatabasedatabase () const
 
void createExtensionDictionary ()
 
OdDbObjectId extensionDictionary () const
 
bool releaseExtensionDictionary ()
 
OdDbXrecordPtr createXrecord (const OdString &xrecordName, OdDb::DuplicateRecordCloning style=OdDb::kDrcIgnore)
 
void upgradeOpen ()
 
void downgradeOpen ()
 
void cancel ()
 
virtual OdResult subOpen (OdDb::OpenMode mode)
 
virtual void subClose ()
 
OdResult erase (bool eraseIt=true)
 
virtual OdResult subErase (bool erasing)
 
void handOverTo (OdDbObject *pNewObject, bool keepXData=true, bool keepExtDict=true)
 
virtual void subHandOverTo (OdDbObject *pNewObject)
 
void swapIdWith (OdDbObjectId otherId, bool swapXdata=false, bool swapExtDict=false)
 
virtual void subSwapIdWith (const OdDbObjectId &otherId, bool swapXdata=false, bool swapExtDict=false)
 
void dwgIn (OdDbDwgFiler *pFiler)
 
void dwgOut (OdDbDwgFiler *pFiler) const
 
virtual OdResult dxfIn (OdDbDxfFiler *pFiler)
 
virtual void dxfOut (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields (OdDbDxfFiler *pFiler) const
 
virtual OdResult dxfInFields_R12 (OdDbDxfFiler *pFiler)
 
virtual void dxfOutFields_R12 (OdDbDxfFiler *pFiler) const
 
virtual OdDb::DuplicateRecordCloning mergeStyle () const
 
virtual OdResBufPtr xData (const OdString &regappName=OdString::kEmpty) const
 
virtual void setXData (const OdResBuf *pRb)
 
bool isEraseStatusToggled () const
 
bool isErased () const
 
bool isReadEnabled () const
 
bool isWriteEnabled () const
 
bool isNotifyEnabled () const
 
bool isModified () const
 
bool isModifiedXData () const
 
bool isModifiedGraphics () const
 
bool isNewObject () const
 
bool isNotifying () const
 
bool isUndoing () const
 
bool isReallyClosing () const
 
bool isDBRO () const
 
void assertReadEnabled () const
 
void assertWriteEnabled (bool autoUndo=true, bool recordModified=true)
 
void assertNotifyEnabled () const
 
void disableUndoRecording (bool disable)
 
bool isUndoRecordingDisabled () const
 
OdDbDwgFilerundoFiler ()
 
void addReactor (OdDbObjectReactor *pReactor) const
 
void removeReactor (OdDbObjectReactor *pReactor) const
 
virtual void addPersistentReactor (const OdDbObjectId &objId)
 
virtual void removePersistentReactor (const OdDbObjectId &objId)
 
bool hasPersistentReactor (const OdDbObjectId &objId) const
 
OdDbObjectIdArray getPersistentReactors () const
 
OdDbObjectReactorArray getTransientReactors () const
 
virtual void recvPropagateModify (const OdDbObject *pSubObj)
 
virtual void xmitPropagateModify () const
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr deepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdDbObjectPtr wblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary=true) const ODRX_SEALED
 
virtual void appendToOwner (OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap)
 
void setOdDbObjectIdsInFlux ()
 
bool isOdDbObjectIdsInFlux () const
 
virtual void copied (const OdDbObject *pObject, const OdDbObject *pNewObject)
 
virtual void erased (const OdDbObject *pObject, bool erasing=true)
 
virtual void goodbye (const OdDbObject *pObject)
 
virtual void openedForModify (const OdDbObject *pObject)
 
virtual void modified (const OdDbObject *pObject)
 
virtual void subObjModified (const OdDbObject *pObject, const OdDbObject *pSubObj)
 
virtual void modifyUndone (const OdDbObject *pObject)
 
virtual void modifiedXData (const OdDbObject *pObject)
 
virtual void unappended (const OdDbObject *pObject)
 
virtual void reappended (const OdDbObject *pObject)
 
bool isAProxy () const
 
virtual void objectClosed (const OdDbObjectId &objectId)
 
virtual void modifiedGraphics (const OdDbObject *pObject)
 
virtual void copyFrom (const OdRxObject *pSource)
 
bool hasSaveVersionOverride () const
 
void setHasSaveVersionOverride (bool hasSaveVersionOverride)
 
virtual OdDb::DwgVersion getObjectSaveVersion (const OdDbFiler *pFiler, OdDb::MaintReleaseVer *pMaintVer=0) const
 
virtual OdDbObjectPtr decomposeForSave (OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
virtual OdDbObjectPtr decomposeForSave (OdDb::SaveType format, OdDb::DwgVersion ver, OdDbObjectId &replaceId, bool &exchangeXData)
 
void convertForSave (OdDb::DwgVersion ver)
 
virtual void composeForLoad (OdDb::SaveType format, OdDb::DwgVersion version, OdDbAuditInfo *pAuditInfo)
 
virtual OdGiDrawabledrawable ()
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *pTraits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *pWd) const
 
virtual void subViewportDraw (OdGiViewportDraw *pVd) const
 
virtual bool isPersistent () const
 
virtual OdDbStub * id () const
 
ODRX_SEALED_VIRTUAL OdResult getClassID (void *pClsid) const ODRX_SEALED
 
void setGsNode (OdGsCache *pNode)
 
OdGsCachegsNode () const
 
void xDataTransformBy (const OdGeMatrix3d &xfm)
 
bool hasFields () const
 
OdDbObjectId getField (const OdString &fieldName) const
 
OdDbObjectPtr getField (const OdString &fieldName, OdDb::OpenMode mode) const
 
virtual OdDbObjectId setField (const OdString &fieldName, OdDbField *pField)
 
virtual OdResult removeField (OdDbObjectId fieldId)
 
virtual OdDbObjectId removeField (const OdString &fieldName)
 
OdDbObjectId getFieldDictionary () const
 
OdDbObjectPtr getFieldDictionary (OdDb::OpenMode mode) const
 
virtual OdRxClasssaveAsClass (OdRxClass *pClass) const
 
- Public Member Functions inherited from OdGiDrawable
 ODRX_DECLARE_MEMBERS (OdGiDrawable)
 
virtual DrawableType drawableType () const
 
ODRX_SEALED_VIRTUAL OdUInt32 setAttributes (OdGiDrawableTraits *pTraits) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL bool worldDraw (OdGiWorldDraw *pWd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL void viewportDraw (OdGiViewportDraw *pVd) const ODRX_SEALED
 
ODRX_SEALED_VIRTUAL OdUInt32 viewportDrawLogicalFlags (OdGiViewportDraw *pVd) const ODRX_SEALED
 
virtual OdResult getGeomExtents (OdGeExtents3d &extents) const
 
ODRX_SEALED_VIRTUAL OdUInt32 regenSupportFlags () const ODRX_SEALED
 
- Public Member Functions inherited from OdRxObject
 ODRX_HEAP_OPERATORS ()
 
 OdRxObject ()
 
virtual ~OdRxObject ()
 
virtual OdRxObjectqueryX (const OdRxClass *pClass) const
 
virtual OdRxObjectx (const OdRxClass *pClass) const
 
virtual OdRxClassisA () const
 
bool isKindOf (const OdRxClass *pClass) const
 
virtual OdRxObjectPtr clone () const
 
virtual OdRx::Ordering comparedTo (const OdRxObject *pOther) const
 
virtual bool isEqualTo (const OdRxObject *pOther) const
 

Static Public Member Functions

static CFxDatabasePtr LoadFile (const CFxString &strFilename, OdCodePageId *pCodepage=0, const OdPassword &password=OdPassword())
 
static CFxDatabasePtr RecoverFile (const CFxString &strFilename, OdCodePageId *pCodepage=0, const OdPassword &password=OdPassword())
 
- Static Public Member Functions inherited from OdDbDatabase
static bool isValidLineWeight (int weight)
 
static OdDb::LineWeight getNearestLineWeight (int weight)
 
- Static Public Member Functions inherited from OdRxObject
static OdRxObjectPtr cast (const OdRxObject *pointer)
 
static OdRxClassdesc ()
 

Additional Inherited Members

- Protected Member Functions inherited from OdDbDatabase
 OdDbDatabase ()
 
- Protected Member Functions inherited from OdDbObject
 OdDbObject ()
 
virtual OdDbObjectPtr subDeepClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const
 
virtual OdDbObjectPtr subWblockClone (OdDbIdMapping &ownerIdMap, OdDbObject *pOwner, bool bPrimary) const
 
- Protected Member Functions inherited from OdGiDrawable
 OdGiDrawable ()
 
virtual OdUInt32 subViewportDrawLogicalFlags (OdGiViewportDraw *vd) const
 
virtual OdUInt32 subRegenSupportFlags () const
 
- Protected Attributes inherited from OdDbObject
OdDbObjectImplm_pImpl
 

Detailed Description

Description: Represents a drawing database in memory. Library: DDKERNEL

Definition at line 47 of file FxDatabase.h.

Member Enumeration Documentation

◆ FxPartialUndoID

Enumerator
kPU_COMMANDNAME 
kPU_DbDWGCODEPAGE 
kPU_DbTDUCREATE 
kPU_DbTDUUPDATE 
kPU_DbTDINDWG 
kPU_DbTDUSRTIMER 
kPU_DbPSTYLEMODE 
kPU_DbPUCSORG 
kPU_DbPUCSXDIR 
kPU_DbPUCSYDIR 
kPU_DbREFEDIT 
kPU_DbREFSET 
kPU_DbREFBASEPT 
kPU_DbHIDEOBJ 
kPU_DbBEDIT 
kPU_DbDummy 

Definition at line 236 of file FxDatabase.h.

◆ UNDOCTL_Modes

Enumerator
Enabled 
One 
Auto 
Combine 
Layer 

Definition at line 282 of file FxDatabase.h.

Constructor & Destructor Documentation

◆ CFxDatabase()

CFxDatabase::CFxDatabase ( void  )

◆ ~CFxDatabase()

CFxDatabase::~CFxDatabase ( void  )
override

Member Function Documentation

◆ BlockPurge()

virtual int CFxDatabase::BlockPurge ( OdDbObjectId  id,
bool  block 
)
pure virtual

Block purge.

Description:

Parameters
idThe identifier.
blocktrue to block.

Return Value: .

◆ GetActiveBlockId()

OdDbObjectId CFxDatabase::GetActiveBlockId ( ) const

Description: Returns active block table record. Returns model space id inside paper space viewport.

◆ GetActiveViewportId()

OdDbObjectId CFxDatabase::GetActiveViewportId ( OdDbObjectId  idLayout = OdDbObjectId::kNull) const

Description: Returns the active viewport id. If 'idLayout' is null then current layout from database is used.

◆ getBINDTYPE()

virtual OdInt16 CFxDatabase::getBINDTYPE ( ) const
pure virtual

◆ GetBlockedPurge()

virtual const std::set<OdDbObjectId>& CFxDatabase::GetBlockedPurge ( ) const
pure virtual

Description: Gets the blocked purge.

Return Value: The blocked purge.

◆ GetDatabaseHistory()

virtual CFxDatabaseHistory* CFxDatabase::GetDatabaseHistory ( )
pure virtual

Gets the database history.

Description: Return Value: null if it fails, else the database history.

◆ getDWGCODEPAGE()

OdCodePageId CFxDatabase::getDWGCODEPAGE ( ) const
override

◆ getElapsedTime()

virtual const OdTimeStamp& CFxDatabase::getElapsedTime ( )
pure virtual

Gets the elapsed time.

Return Value: The elapsed time.

◆ GetFileData()

virtual const CFxFileData& CFxDatabase::GetFileData ( ) const
pure virtual

Description: Returns file data included in database.

◆ GetFxGsModel() [1/2]

virtual const CFxGsModel* CFxDatabase::GetFxGsModel ( ) const
pure virtual

Description: Returns the GsBaseModel associated.

◆ GetFxGsModel() [2/2]

virtual CFxGsModel* CFxDatabase::GetFxGsModel ( )
pure virtual

Description: Returns the GsBaseModel associated.

◆ GetGsView()

virtual CFxView* CFxDatabase::GetGsView ( OdDbObjectId  id) const
pure virtual

Description: Looks for gs view inside display device associated to this database. Arguments:

Parameters
idInput Id of the OdDbViewport or OdDbViewportTableRecord. Return value: Returns null in case database is not attached to any document or in case of inconsistent display device.

◆ getPLIMMAX()

OdGePoint2d CFxDatabase::getPLIMMAX ( ) const
overridepure virtual

◆ getPLIMMIN()

OdGePoint2d CFxDatabase::getPLIMMIN ( ) const
overridepure virtual

◆ GetRecentlyErased()

virtual CFxRecentlyErased* CFxDatabase::GetRecentlyErased ( )
pure virtual

Description: Returns the recently erased files.

◆ GetUnitsFormatter()

virtual const CFxUnitsFormatter* CFxDatabase::GetUnitsFormatter ( ) const
pure virtual

Description: Returns units formatter.

◆ getUSERS1()

virtual OdString CFxDatabase::getUSERS1 ( ) const
pure virtual

◆ getUSERS2()

virtual OdString CFxDatabase::getUSERS2 ( ) const
pure virtual

◆ getUSERS3()

virtual OdString CFxDatabase::getUSERS3 ( ) const
pure virtual

◆ getUSERS4()

virtual OdString CFxDatabase::getUSERS4 ( ) const
pure virtual

◆ getUSERS5()

virtual OdString CFxDatabase::getUSERS5 ( ) const
pure virtual

◆ IsModelLayoutActive()

bool CFxDatabase::IsModelLayoutActive ( ) const

Description: Returns true if model layout active. If 'idLayout' is null then current layout from database is used.

◆ LoadFile()

static CFxDatabasePtr CFxDatabase::LoadFile ( const CFxString strFilename,
OdCodePageId pCodepage = 0,
const OdPassword password = OdPassword() 
)
static

Description: Load file.

Return Value: Returns database if file was opened successfully and null otherwise.

◆ LockFile()

virtual void CFxDatabase::LockFile ( bool  bLock)
pure virtual

Description: Lock file on disk.

◆ ODRX_DECLARE_MEMBERS()

CFxDatabase::ODRX_DECLARE_MEMBERS ( CFxDatabase  )

◆ RecoverFile()

static CFxDatabasePtr CFxDatabase::RecoverFile ( const CFxString strFilename,
OdCodePageId pCodepage = 0,
const OdPassword password = OdPassword() 
)
static

Description: Load file.

Return Value: Returns database if file was recovered and opened successfully and null otherwise.

◆ ResetTime()

virtual void CFxDatabase::ResetTime ( )
pure virtual

Description: Resets database time record.

◆ SaveFile()

virtual bool CFxDatabase::SaveFile ( const CFxFileData pNewData = 0,
bool  deleteBackupFile = true 
)
pure virtual

Description: Saves file on disk.

Return Value: Returns true if file was opened successfully and false otherwise.

◆ setBINDTYPE()

virtual bool CFxDatabase::setBINDTYPE ( OdInt16  value)
pure virtual

◆ setDWGCODEPAGE()

virtual bool CFxDatabase::setDWGCODEPAGE ( OdCodePageId  value)
pure virtual

◆ SetFileData()

virtual void CFxDatabase::SetFileData ( const CFxFileData ) const
pure virtual

Description: Sets file data.

◆ setPSTYLEMODE()

virtual bool CFxDatabase::setPSTYLEMODE ( bool  value)
pure virtual

◆ setPUCSORG()

virtual bool CFxDatabase::setPUCSORG ( OdGePoint3d  value)
pure virtual

◆ setPUCSXDIR()

virtual bool CFxDatabase::setPUCSXDIR ( OdGeVector3d  value)
pure virtual

◆ setPUCSYDIR()

virtual bool CFxDatabase::setPUCSYDIR ( OdGeVector3d  value)
pure virtual

◆ setTDINDWG()

virtual bool CFxDatabase::setTDINDWG ( OdDbDate  value)
pure virtual

◆ setTDUCREATE()

virtual bool CFxDatabase::setTDUCREATE ( OdDbDate  value)
pure virtual

◆ setTDUSRTIMER()

virtual bool CFxDatabase::setTDUSRTIMER ( OdDbDate  value)
pure virtual

◆ setTDUUPDATE()

virtual bool CFxDatabase::setTDUUPDATE ( OdDbDate  value)
pure virtual

◆ setUCSORG()

virtual bool CFxDatabase::setUCSORG ( OdGePoint3d  value)
pure virtual

◆ setUCSXDIR()

virtual bool CFxDatabase::setUCSXDIR ( OdGeVector3d  value)
pure virtual

◆ setUCSYDIR()

virtual bool CFxDatabase::setUCSYDIR ( OdGeVector3d  value)
pure virtual

◆ setUSERS1()

virtual bool CFxDatabase::setUSERS1 ( const OdString value)
pure virtual

◆ setUSERS2()

virtual bool CFxDatabase::setUSERS2 ( const OdString value)
pure virtual

◆ setUSERS3()

virtual bool CFxDatabase::setUSERS3 ( const OdString value)
pure virtual

◆ setUSERS4()

virtual bool CFxDatabase::setUSERS4 ( const OdString value)
pure virtual

◆ setUSERS5()

virtual bool CFxDatabase::setUSERS5 ( const OdString value)
pure virtual

◆ StartUndoRecord()

virtual void CFxDatabase::StartUndoRecord ( const CFxString strLabel)
pure virtual

Description: Returns the last command after undo record.


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