CFx SDK Documentation  2023 SP0
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
OdSmartPtr< OdDbAnnotationScale > OdDbAnnotationScalePtr
#define TOOLKIT_EXPORT
Definition: DbExport.h:40
ptrdiff_t OdIntPtr
OdResult
Definition: OdResult.h:29
virtual double getPaperUnits() const
virtual OdResult setName(const OdString &name)
virtual bool matchScaleId(OdIntPtr id) const
virtual OdResult setDrawingUnits(double dDrawingUnits)
virtual bool getIsTemporaryScale() const
virtual OdIntPtr uniqueIdentifier() const
OdDbAnnotationScaleImpl * m_pImpl
virtual void copyFrom(const OdRxObject *pSource)
virtual OdString collectionName() const
virtual double getDrawingUnits() const
virtual OdString getName() const
virtual OdResult setPaperUnits(double dPaperUnits)
virtual OdResult getScale(double &dScale) const
OdDbAnnotationScale(OdDbAnnotationScaleImpl *)
ODRX_DECLARE_MEMBERS(OdDbAnnotationScale)
OdDbAnnotationScaleView(OdDbAnnotationScaleViewImpl *)
OdString collectionName() const
ODRX_DECLARE_MEMBERS(OdDbAnnotationScaleView)
GLuint const GLchar * name
Definition: gles2_ext.h:265