NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_GdtDatumCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_GdtDatumCollection.ja
9//
10// 生成方式:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成 - 请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <iterator>
19#include <vector>
20#include <NXOpen/NXString.hxx>
21#include <NXOpen/Callback.hxx>
22#include <NXOpen/Annotations_DatumData.hxx>
23#include <NXOpen/Annotations_DraftingDatumFeatureSymbolBuilder.hxx>
24#include <NXOpen/Annotations_LeaderBundle.hxx>
25#include <NXOpen/Annotations_PmiData.hxx>
26#include <NXOpen/Annotations_PmiDatumFeatureSymbolBuilder.hxx>
27#include <NXOpen/TaggedObjectCollection.hxx>
28#include <NXOpen/TaggedObject.hxx>
29#include <NXOpen/ugmath.hxx>
30#include <NXOpen/libnxopencpp_annotations_exports.hxx>
31#ifdef _MSC_VER
32#pragma warning(push)
33#pragma warning(disable:4996)
34#endif
35#ifdef __GNUC__
36#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
37#endif
38namespace NXOpen
39{
40 namespace Annotations
41 {
43 }
44 namespace Annotations
45 {
47 }
48 namespace Annotations
49 {
50 class Datum;
51 }
52 namespace Annotations
53 {
54 class DatumData;
55 }
56 namespace Annotations
57 {
58 class DraftingDatum;
59 }
60 namespace Annotations
61 {
63 }
64 namespace Annotations
65 {
66 class LeaderBundle;
67 }
68 namespace Annotations
69 {
70 class PmiData;
71 }
72 namespace Annotations
73 {
75 }
76 class Xform;
77 namespace Annotations
78 {
79 class GdtDatumCollectionImpl;
83 class NXOPENCPP_ANNOTATIONSEXPORT GdtDatumCollection : public NXOpen::TaggedObjectCollection
84 {
85 private: GdtDatumCollectionImpl * m_gdtdatumcollection_impl;
90 public:
92 tag_t Tag() const;
93 public: ~GdtDatumCollection();
95 //lint -sem(NXOpen::Annotations::GdtDatumCollection::iterator::copy,initializer)
96 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::Datum *>
97 {
98 public:
100 iterator() : m_context(nullptr), m_current(NULL_TAG)
101{
102 // coverity[uninit_member]
103 } //lint !e1401 m_state 未初始化
104
105 explicit iterator(NXOpen::Annotations::GdtDatumCollection *context) : m_context(context), m_current(NULL_TAG)
106 {
107 // coverity[uninit_member]
108 }//lint !e1401 m_state 未初始化
110
111 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
112 {
113 copy(other);
114 }
115
116 iterator &operator =(const iterator &other)
117 {
118 if (&other != this)
119 copy(other);
120 return *this;
121 }
122
123 bool operator ==(const iterator &other) const
124 {
125 return m_current == other.m_current && m_context == other.m_context;
126 }
127
128 bool operator !=(const iterator &other) const
129 {
130 return !operator == (other);
131 }
132
133 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
135 iterator & operator ++()
136 {
137 next();
138 return *this;
139 }
140
141 iterator operator ++(int)
142 {
143 iterator tmp(*this);
144 ++*this;
145 return tmp;
146 }
147 private:
148 void copy(const iterator &other)
149 {
150 m_context = other.m_context;
151 m_current = other.m_current;
152 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
153 m_state[i] = other.m_state[i];
154 }
155 NXOPENCPP_ANNOTATIONSEXPORT void next();
157 tag_t m_current;
158 unsigned int m_state[8];
159 };
160
164 {
165 return iterator(this);
166 }
167
171 (
172 );
177 (
180 NXOpen::Xform * annotationPlane ,
181 const NXOpen::Point3d & origin ,
185 );
190 (
192 const NXOpen::Point3d & origin ,
196 );
201 (
203 );
208 (
210 );
211 }; //lint !e1712 类未定义默认构造函数
212 }
213}
214#ifdef _MSC_VER
215#pragma warning(pop)
216#endif
217#ifdef __GNUC__
218#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
219#pragma GCC diagnostic warning "-Wdeprecated-declarations"
220#endif
221#endif
222#undef EXPORTLIBRARY