CFx SDK Documentation  2022 SP0
GiAnnoScaleSet.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 __ODGIANNOSCALESET_H__
25 #define __ODGIANNOSCALESET_H__
26 
27 #include "TD_PackPush.h"
28 
29 #include "Gi/GiExport.h"
30 #include "DbStubPtrArray.h"
31 
40 {
41 public:
42  OdGiAnnoScaleSet() : m_defaultId(NULL){}
43  OdGiAnnoScaleSet(OdDbStubPtrArray& aSortedId, OdDbStub* defaultId) : m_aId(aSortedId), m_defaultId(defaultId){}
44  OdGiAnnoScaleSet(const OdGiAnnoScaleSet& v) : m_aId(v.m_aId), m_defaultId(v.m_defaultId){}
45  bool operator < (const OdGiAnnoScaleSet& v) const;
46  void set(OdDbStubPtrArray& aSortedId, OdDbStub* defaultId)
47  {
48  m_aId = aSortedId; m_defaultId = defaultId;
49  }
50  void clear() { m_aId.clear(); m_defaultId = NULL; }
51  const OdDbStubPtrArray &annoScaleIds() const { return m_aId; }
52  OdDbStub* defaultId() const { return m_defaultId; }
53 
54 protected:
56  OdDbStub* m_defaultId;
57 };
58 
59 #include "TD_PackPop.h"
60 
61 #endif // __ODGIANNOSCALESET_H__
#define ODGI_EXPORT
Definition: GiExport.h:35
#define NULL
Definition: GsProperties.h:177
bool operator<(const OdString &s1, const OdString &s2)
Definition: OdString.h:1284
OdGiAnnoScaleSet(OdDbStubPtrArray &aSortedId, OdDbStub *defaultId)
const OdDbStubPtrArray & annoScaleIds() const
OdDbStubPtrArray m_aId
OdDbStub * defaultId() const
void set(OdDbStubPtrArray &aSortedId, OdDbStub *defaultId)
OdDbStub * m_defaultId
OdGiAnnoScaleSet(const OdGiAnnoScaleSet &v)
const GLfloat * v
Definition: gles2_ext.h:315