40#define LAST_DWGDIRECT_UNDO_ID 0x1000
215#define QVAR_DEF_RO( type, name, validator ) \
216 virtual type get##name() const = 0; \
217 virtual bool set##name( type val ) = 0;
219#define QVAR_DEF( type, name, validator ) \
220 QVAR_DEF_RO( type, name, validator )
222#define QVAR_DEF_RO_2( type, name, validator )
223#define QVAR_DEF_2( type, name, validator )
225#define FX_VAR_DEF_RO( type, name, def_val, metric_def_value, filerType, rbType, validation ) \
226 QVAR_DEF_RO( type, name, validation )
228#define FX_VAR_DEF( type, name, def_val, metric_def_value, filerType, rbType, validation ) \
229 QVAR_DEF_RO( type, name, validation )
231#define ODTUCSNAME OdDbHardPointerId
251 #define FX_VAR_DEF(type, name, def_val, metric_def_value, filerType, rbType, validate) kPU_Db##name,
252 #define FX_VAR_DEF_RO(type, name, def_val, metric_def_value, filerType, rbType, validate) kPU_Db##name,
253 #define FX_REGVAR_DEF( type, name, def_val, filerType, rbType, validation ) kPU_Db##name,
254 #define FX_REGVAR_DEF_RO( type, name, def_val, filerType, rbType, validation ) kPU_Db##name,
255 #define QVAR_DEF( type, name, validation ) kPU_Db##name,
256 #define QVAR_DEF_RO( type, name, validation ) kPU_Db##name,
265 #undef FX_REGVAR_DEF_RO
269 #define REGVAR_DEF( type, name, def_val, filerType, validation ) kPU_Db##name,
320 bool saveThumbnailImage =
false,
321 int dxfPrecision = 16);
OdSmartPtr< CFxDatabase > CFxDatabasePtr
#define LAST_DWGDIRECT_UNDO_ID
virtual OdString getUSERS5() const =0
virtual void StartUndoRecord(const CFxString &strLabel)=0
virtual bool setTDINDWG(OdDbDate value)=0
virtual OdString getUSERS2() const =0
virtual bool setUSERS2(const OdString &value)=0
virtual bool setUCSORG(OdGePoint3d value)=0
virtual OdInt16 getBINDTYPE() const =0
virtual const CFxFileData & GetFileData() const =0
static CFxDatabasePtr RecoverFile(const CFxString &strFilename, OdCodePageId *pCodepage=0, const OdPassword &password=OdPassword())
virtual CFxDatabaseHistory * GetDatabaseHistory()=0
Gets the database history. Return Value: null if it fails, else the database history.
virtual OdString getUSERS3() const =0
OdDbObjectId GetActiveViewportId(OdDbObjectId idLayout=OdDbObjectId::kNull) const
virtual bool setPUCSAll(OdGePoint3d org, OdGeVector3d xDir, OdGeVector3d yDir)=0
~CFxDatabase(void) override
virtual const OdTimeStamp & getElapsedTime()=0
virtual bool setTDUCREATE(OdDbDate value)=0
OdGePoint2d getPLIMMIN() const override=0
virtual int BlockPurge(OdDbObjectId id, bool block)=0
Block purge. Arguments:
virtual bool setUCSAll(OdGePoint3d org, OdGeVector3d xDir, OdGeVector3d yDir)=0
virtual void SetFileData(const CFxFileData &) const =0
static CFxDatabasePtr LoadFile(const CFxString &strFilename, OdCodePageId *pCodepage=0, const OdPassword &password=OdPassword())
virtual void ResetTime()=0
virtual CFxView * GetGsView(OdDbObjectId id) const =0
virtual bool setUSERS3(const OdString &value)=0
virtual bool setTDUUPDATE(OdDbDate value)=0
virtual OdString getUSERS4() const =0
OdCodePageId getDWGCODEPAGE() const override
virtual CFxGsModel * GetFxGsModel()=0
OdGePoint2d getPLIMMAX() const override=0
virtual bool setUSERS1(const OdString &value)=0
virtual bool setPUCSXDIR(OdGeVector3d value)=0
virtual const CFxGsModel * GetFxGsModel() const =0
virtual bool setPSTYLEMODE(bool value)=0
virtual const CFxUnitsFormatter * GetUnitsFormatter() const =0
virtual const std::set< OdDbObjectId > & GetBlockedPurge() const =0
virtual bool setUSERS5(const OdString &value)=0
OdDbObjectId GetActiveBlockId() const
virtual bool SaveFile(const CFxFileData *pNewData=0, bool deleteBackupFile=true)=0
virtual bool setTDUSRTIMER(OdDbDate value)=0
virtual bool setDWGCODEPAGE(OdCodePageId value)=0
virtual bool setBINDTYPE(OdInt16 value)=0
virtual void LockFile(bool bLock)=0
virtual bool setUCSYDIR(OdGeVector3d value)=0
ODRX_DECLARE_MEMBERS(CFxDatabase)
virtual bool setUCSXDIR(OdGeVector3d value)=0
virtual bool setPUCSORG(OdGePoint3d value)=0
virtual CFxRecentlyErased * GetRecentlyErased()=0
virtual OdString getUSERS1() const =0
virtual void ClearError()=0
virtual const OdError & GetLastError() const =0
virtual bool setPUCSYDIR(OdGeVector3d value)=0
bool IsModelLayoutActive() const
virtual bool setUSERS4(const OdString &value)=0
void writeFile(OdStreamBuf *pStreamBuf, OdDb::SaveType fileType, OdDb::DwgVersion fileVersion, bool saveThumbnailImage=false, int dxfPrecision=16)
static TOOLKIT_EXPORT_STATIC const OdDbObjectId kNull
GLsizei const GLfloat * value