CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbScale.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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 Open Design Alliance software pursuant to a license
16// agreement with Open Design Alliance.
17// Open Design Alliance Copyright (C) 2002-2022 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
53{
54public:
56
65
66
79 class OdString scaleName() const;
80
81
97 void setScaleName( const OdString& sName );
98
99
113 double scale() const;
114
115
127 double drawingUnits() const;
128
129
143 void setDrawingUnits( double vUnits );
144
145
157 double paperUnits() const;
158
159
173 void setPaperUnits( double vUnits );
174
175
192 bool isTemporaryScale() const;
193
194
212 void setIsTemporaryScale( bool bStatus );
213
214
227 bool isUnitScale() const;
228
229
243 void setIsUnitScale( bool bStatus );
244
254 static bool nameExists(const OdString&, bool xref, OdString*, OdDbDatabase *);
255
257 virtual void dwgOutFields(OdDbDwgFiler* pFiler) const ODRX_OVERRIDE;
259 virtual void dxfOutFields(OdDbDxfFiler* pFiler) const ODRX_OVERRIDE;
260
261 virtual void appendToOwner(OdDbIdPair& idPair, OdDbObject* pOwnerObject, OdDbIdMapping& ownerIdMap) ODRX_OVERRIDE;
262 virtual OdResult subErase(bool erasing) ODRX_OVERRIDE;
263 virtual void applyPartialUndo(OdDbDwgFiler* pFiler, OdRxClass* pClass) ODRX_OVERRIDE;
264};
265
274
275
276#endif //_DBSCALE_INCLUDED_
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdSmartPtr< OdDbScale > OdDbScalePtr
Definition: DbScale.h:273
#define ODRX_OVERRIDE
OdResult
Definition: OdResult.h:29
static bool nameExists(const OdString &, bool xref, 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