CFx SDK Documentation  2020SP3
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_
OdResult
OdResult
Definition: OdResult.h:29
OdString
Definition: OdString.h:95
OdDbDatabase
Definition: DbDatabase.h:421
OdDbScale::setDrawingUnits
void setDrawingUnits(double vUnits)
DbObject.h
OdDbScale::dxfInFields
virtual OdResult dxfInFields(OdDbDxfFiler *pFiler) ODRX_OVERRIDE
OdDbScale::isTemporaryScale
bool isTemporaryScale() const
OdDbScale::dwgOutFields
virtual void dwgOutFields(OdDbDwgFiler *pFiler) const ODRX_OVERRIDE
OdDbScale::dwgInFields
virtual OdResult dwgInFields(OdDbDwgFiler *pFiler) ODRX_OVERRIDE
OdDbIdPair
Definition: DbIdMapping.h:60
OdDbScale::setScaleName
void setScaleName(const OdString &sName)
OdDbScale
Definition: DbScale.h:55
OdDbScale::dxfOutFields
virtual void dxfOutFields(OdDbDxfFiler *pFiler) const ODRX_OVERRIDE
OdDbScale::appendToOwner
virtual void appendToOwner(OdDbIdPair &idPair, OdDbObject *pOwnerObject, OdDbIdMapping &ownerIdMap) ODRX_OVERRIDE
OdRxClass
Definition: RxObject.h:865
OdSmartPtr
Definition: SmartPtr.h:58
OdDbScalePtr
OdSmartPtr< OdDbScale > OdDbScalePtr
Definition: DbScale.h:275
OdDbDxfFiler
Definition: DbFiler.h:194
OdDbScale::setIsTemporaryScale
void setIsTemporaryScale(bool bStatus)
OdDbScale::applyPartialUndo
virtual void applyPartialUndo(OdDbDwgFiler *pFiler, OdRxClass *pClass) ODRX_OVERRIDE
OdDbScale::setIsUnitScale
void setIsUnitScale(bool bStatus)
OdDbScale::drawingUnits
double drawingUnits() const
OdDbScale::ODDB_DECLARE_MEMBERS
ODDB_DECLARE_MEMBERS(OdDbScale)
OdDbScale::isUnitScale
bool isUnitScale() const
OdDbScale::setPaperUnits
void setPaperUnits(double vUnits)
OdDbScale::subErase
virtual OdResult subErase(bool erasing) ODRX_OVERRIDE
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ODRX_OVERRIDE
#define ODRX_OVERRIDE
Definition: OdPlatformSettings.h:114
OdDbScale::scale
double scale() const
OdDbScale::nameExists
static bool nameExists(const OdString &, OdString *, OdDbDatabase *)
OdDbScale::paperUnits
double paperUnits() const
OdDbIdMapping
Definition: DbIdMapping.h:238
OdDbObject
Definition: DbObject.h:211
OdDbDwgFiler
Definition: DbFiler.h:1031
OdDbScale::getXRefMangledName
void getXRefMangledName(OdString, OdString &, OdDbDatabase *)