CFx SDK Documentation  2020SP3
DbAnnotationScale.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 ODDB_ANNOTATIONSCALE_H_INCLUDED
25 #define ODDB_ANNOTATIONSCALE_H_INCLUDED
26 
27 #include "DbObjectContext.h"
28 #include "TD_PackPush.h"
29 
30 class OdDbAnnotationScaleImpl;
31 class OdDbAnnotationScaleViewImpl;
32 
34 // class OdDbAnnotationScale
36 
52 {
53 public:
55 
64  virtual OdString getName() const;
65 
76  virtual OdResult setName (const OdString& name);
77 
84  virtual OdIntPtr uniqueIdentifier () const;
85 
90  virtual OdString collectionName () const;
91 
95  virtual void copyFrom(const OdRxObject* pSource);
96 
105  virtual double getPaperUnits() const;
106 
118  virtual OdResult setPaperUnits (double dPaperUnits);
119 
128  virtual double getDrawingUnits () const;
129 
141  virtual OdResult setDrawingUnits (double dDrawingUnits);
142 
150  virtual OdResult getScale (double& dScale) const;
151 
161  virtual bool getIsTemporaryScale() const;
162 
177  virtual bool matchScaleId(OdIntPtr id) const;
178 protected:
179  OdDbAnnotationScale(OdDbAnnotationScaleImpl*);
180  OdDbAnnotationScaleImpl* m_pImpl;
181  friend class OdDbAnnotationScaleImpl;
182 };
183 
193 {
194 public:
197 protected:
198  OdDbAnnotationScaleView(OdDbAnnotationScaleViewImpl*);
199  friend class OdDbAnnotationScaleViewImpl;
200 };
201 
202 #include "TD_PackPop.h"
203 
205 
206 #endif //ODDB_ANNOTATIONSCALE_H_INCLUDED
OdResult
OdResult
Definition: OdResult.h:29
OdDbObjectContext
Definition: DbObjectContext.h:49
OdString
Definition: OdString.h:95
name
GLuint const GLchar * name
Definition: gles2_ext.h:265
DbObjectContext.h
OdRxObject
Definition: RxObject.h:564
TD_PackPop.h
OdDbAnnotationScale::setPaperUnits
virtual OdResult setPaperUnits(double dPaperUnits)
OdDbAnnotationScale::getScale
virtual OdResult getScale(double &dScale) const
OdDbAnnotationScale::m_pImpl
OdDbAnnotationScaleImpl * m_pImpl
Definition: DbAnnotationScale.h:180
OdDbAnnotationScale::getDrawingUnits
virtual double getDrawingUnits() const
OdDbAnnotationScale::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbAnnotationScale)
OdSmartPtr
Definition: SmartPtr.h:58
TD_PackPush.h
OdDbAnnotationScale
Definition: DbAnnotationScale.h:52
OdDbAnnotationScale::setDrawingUnits
virtual OdResult setDrawingUnits(double dDrawingUnits)
OdDbAnnotationScaleView::OdDbAnnotationScaleView
OdDbAnnotationScaleView(OdDbAnnotationScaleViewImpl *)
OdDbAnnotationScaleView::collectionName
OdString collectionName() const
OdDbAnnotationScale::uniqueIdentifier
virtual OdIntPtr uniqueIdentifier() const
OdDbAnnotationScaleView
Definition: DbAnnotationScale.h:193
OdIntPtr
ptrdiff_t OdIntPtr
Definition: OdPlatformSettings.h:884
OdDbAnnotationScale::getName
virtual OdString getName() const
OdDbAnnotationScalePtr
OdSmartPtr< OdDbAnnotationScale > OdDbAnnotationScalePtr
Definition: DbAnnotationScale.h:204
OdDbAnnotationScaleView::ODRX_DECLARE_MEMBERS
ODRX_DECLARE_MEMBERS(OdDbAnnotationScaleView)
OdDbAnnotationScale::setName
virtual OdResult setName(const OdString &name)
OdDbAnnotationScale::getIsTemporaryScale
virtual bool getIsTemporaryScale() const
TOOLKIT_EXPORT
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
OdDbAnnotationScale::copyFrom
virtual void copyFrom(const OdRxObject *pSource)
OdDbAnnotationScale::OdDbAnnotationScale
OdDbAnnotationScale(OdDbAnnotationScaleImpl *)
OdDbAnnotationScale::collectionName
virtual OdString collectionName() const
OdDbAnnotationScale::getPaperUnits
virtual double getPaperUnits() const
OdDbAnnotationScale::matchScaleId
virtual bool matchScaleId(OdIntPtr id) const