CFx SDK Documentation  2022 SP0
DbScale.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 _DBSCALE_INCLUDED_
25 #define _DBSCALE_INCLUDED_
26 
27 #include "DbObject.h"
28 
55 {
56 public:
58 
67 
68 
81  class OdString scaleName() const;
82 
83 
99  void setScaleName( const OdString& sName );
100 
101 
115  double scale() const;
116 
117 
129  double drawingUnits() const;
130 
131 
145  void setDrawingUnits( double vUnits );
146 
147 
159  double paperUnits() const;
160 
161 
175  void setPaperUnits( double vUnits );
176 
177 
194  bool isTemporaryScale() const;
195 
196 
214  void setIsTemporaryScale( bool bStatus );
215 
216 
229  bool isUnitScale() const;
230 
231 
245  void setIsUnitScale( bool bStatus );
246 
256  static bool nameExists(const OdString&,OdString*,OdDbDatabase *);
257 
259  virtual void dwgOutFields(OdDbDwgFiler* pFiler) const ODRX_OVERRIDE;
261  virtual void dxfOutFields(OdDbDxfFiler* pFiler) const ODRX_OVERRIDE;
262 
263  virtual void appendToOwner(OdDbIdPair& idPair, OdDbObject* pOwnerObject, OdDbIdMapping& ownerIdMap) ODRX_OVERRIDE;
264  virtual OdResult subErase(bool erasing) ODRX_OVERRIDE;
265  virtual void applyPartialUndo(OdDbDwgFiler* pFiler, OdRxClass* pClass) ODRX_OVERRIDE;
266 };
267 
276 
277 
278 #endif //_DBSCALE_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbScale > OdDbScalePtr
Definition: DbScale.h:275
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
static bool nameExists(const OdString &, OdString *, OdDbDatabase *)
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const ODRX_OVERRIDE
void setIsUnitScale(bool bStatus)
double drawingUnits() const
virtual void applyPartialUndo(OdDbDwgFiler *pFiler, OdRxClass *pClass) ODRX_OVERRIDE
void setIsTemporaryScale(bool bStatus)
void setScaleName(const OdString &sName)
bool isUnitScale() const
double paperUnits() const
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) ODRX_OVERRIDE
double scale() const
void setDrawingUnits(double vUnits)
bool isTemporaryScale() const
void getXRefMangledName(OdString, OdString &, OdDbDatabase *)
virtual void appendToOwner(OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap) ODRX_OVERRIDE
ODDB_DECLARE_MEMBERS(OdDbScale)
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const ODRX_OVERRIDE
void setPaperUnits(double vUnits)
virtual OdResult subErase(bool erasing) ODRX_OVERRIDE
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler) ODRX_OVERRIDE