CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
DbAnnotationScale.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 ODDB_ANNOTATIONSCALE_H_INCLUDED
25#define ODDB_ANNOTATIONSCALE_H_INCLUDED
26
27#include "DbObjectContext.h"
28#include "TD_PackPush.h"
29
30class OdDbAnnotationScaleImpl;
31class OdDbAnnotationScaleViewImpl;
32
34// class OdDbAnnotationScale
36
49{
50public:
52
61 virtual OdString getName() const;
62
73 virtual OdResult setName (const OdString& name);
74
81 virtual OdIntPtr uniqueIdentifier () const;
82
87 virtual OdString collectionName () const;
88
92 virtual void copyFrom(const OdRxObject* pSource);
93
102 virtual double getPaperUnits() const;
103
115 virtual OdResult setPaperUnits (double dPaperUnits);
116
125 virtual double getDrawingUnits () const;
126
138 virtual OdResult setDrawingUnits (double dDrawingUnits);
139
147 virtual OdResult getScale (double& dScale) const;
148
158 virtual bool getIsTemporaryScale() const;
159
174 virtual bool matchScaleId(OdIntPtr id) const;
175protected:
176 OdDbAnnotationScale(OdDbAnnotationScaleImpl*);
177 OdDbAnnotationScaleImpl* m_pImpl;
178 friend class OdDbAnnotationScaleImpl;
179};
180
187{
188public:
191protected:
192 OdDbAnnotationScaleView(OdDbAnnotationScaleViewImpl*);
193 friend class OdDbAnnotationScaleViewImpl;
194};
195
196class OdDbViewport;
197
202{
203public:
205
206 virtual void annotationScaleChanged(const OdDbDatabase* pDb,
207 const OdDbViewport* pVP,
208 const OdDbAnnotationScale* pScale,
209 const bool bInitializing);
210};
211
212// returns true if there was such reactor
213// (puts it at the end of the list in any case)
215
216// returns true if there was such reactor
218
219#include "TD_PackPop.h"
220
222
223#endif //ODDB_ANNOTATIONSCALE_H_INCLUDED
TOOLKIT_EXPORT bool oddbAddAnnotationScaleReactor(OdDbAnnotationScaleReactor *pReactor)
OdSmartPtr< OdDbAnnotationScale > OdDbAnnotationScalePtr
TOOLKIT_EXPORT bool oddbRemoveAnnotationScaleReactor(OdDbAnnotationScaleReactor *pReactor)
#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)
virtual void annotationScaleChanged(const OdDbDatabase *pDb, const OdDbViewport *pVP, const OdDbAnnotationScale *pScale, const bool bInitializing)
ODRX_DECLARE_MEMBERS(OdDbAnnotationScaleReactor)
OdDbAnnotationScaleView(OdDbAnnotationScaleViewImpl *)
OdString collectionName() const
ODRX_DECLARE_MEMBERS(OdDbAnnotationScaleView)
GLuint const GLchar * name
Definition: gles2_ext.h:265