NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_DatumTargetCollection.hxx
1//--------------------------------------------------------------------------
2// 版权所有 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_DatumTargetCollection.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_ArbitraryTargetData.hxx>
23#include <NXOpen/Annotations_CircularTargetData.hxx>
24#include <NXOpen/Annotations_DatumTargetData.hxx>
25#include <NXOpen/Annotations_LeaderBundle.hxx>
26#include <NXOpen/Annotations_PmiData.hxx>
27#include <NXOpen/Annotations_RectangularTargetData.hxx>
28#include <NXOpen/TaggedObjectCollection.hxx>
29#include <NXOpen/TaggedObject.hxx>
30#include <NXOpen/ugmath.hxx>
31#include <NXOpen/libnxopencpp_annotations_exports.hxx>
32#ifdef _MSC_VER
33#pragma warning(push)
34#pragma warning(disable:4996)
35#endif
36#ifdef __GNUC__
37#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
38#endif
39namespace NXOpen
40{
41 namespace Annotations
42 {
44 }
45 namespace Annotations
46 {
48 }
49 namespace Annotations
50 {
51 class DatumTarget;
52 }
53 namespace Annotations
54 {
55 class ArbitraryTarget;
56 }
57 namespace Annotations
58 {
60 }
61 namespace Annotations
62 {
63 class CircularTarget;
64 }
65 namespace Annotations
66 {
68 }
69 namespace Annotations
70 {
71 class DatumTargetData;
72 }
73 namespace Annotations
74 {
76 }
77 namespace Annotations
78 {
80 }
81 namespace Annotations
82 {
84 }
85 namespace Annotations
86 {
87 class LeaderBundle;
88 }
89 namespace Annotations
90 {
91 class LineTarget;
92 }
93 namespace Annotations
94 {
95 class PmiData;
96 }
97 namespace Annotations
98 {
99 class PointTarget;
100 }
101namespace Annotations
102{
103 class RectangularTarget;
104}
105namespace Annotations
106{
108}
109class Xform;
110namespace Annotations
111{
112 class DatumTargetCollectionImpl;
116 class NXOPENCPP_ANNOTATIONSEXPORT DatumTargetCollection : public NXOpen::TaggedObjectCollection
117 {
118 private: DatumTargetCollectionImpl * m_datumtargetcollection_impl;
123 public:
125 tag_t Tag() const;
126 public: ~DatumTargetCollection();
128 //lint -sem(NXOpen::Annotations::DatumTargetCollection::iterator::copy,initializer)
129 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::DatumTarget *>
130 {
131 public:
133 iterator() : m_context(nullptr), m_current(NULL_TAG)
134 {
135 // coverity[uninit_member]
136 } //lint !e1401 m_state is not initialized
137
138 explicit iterator(NXOpen::Annotations::DatumTargetCollection *context) : m_context(context), m_current(NULL_TAG)
139 {
140 // coverity[uninit_member]
141 }//lint !e1401 m_state is not initialized
143
144 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
145 {
146 copy(other);
147 }
148
149 iterator &operator =(const iterator &other)
150 {
151 if (&other != this)
152 copy(other);
153 return *this;
154 }
155
156 bool operator ==(const iterator &other) const
157 {
158 return m_current == other.m_current && m_context == other.m_context;
159 }
160
161 bool operator !=(const iterator &other) const
162 {
163 return !operator == (other);
164 }
165
166 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
168 iterator & operator ++()
169 {
170 next();
171 return *this;
172 }
173
174 iterator operator ++(int)
175 {
176 iterator tmp(*this);
177 ++*this;
178 return tmp;
179 }
180 private:
181 void copy(const iterator &other)
182 {
183 m_context = other.m_context;
184 m_current = other.m_current;
185 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
186 m_state[i] = other.m_state[i];
187 }
188 NXOPENCPP_ANNOTATIONSEXPORT void next();
190 tag_t m_current;
191 unsigned int m_state[8];
192 };
193
197 {
198 return iterator(this);
199}
200
204 (
205 );
210 (
211 );
216 (
217 );
222 (
223 );
228 (
231 NXOpen::Xform * annotationPlane ,
232 const NXOpen::Point3d & origin ,
234 );
239 (
241 const NXOpen::Point3d & origin ,
243 );
248 (
251 NXOpen::Xform * annotationPlane ,
252 const NXOpen::Point3d & origin ,
254 );
259 (
261 const NXOpen::Point3d & origin ,
263 );
268 (
271 NXOpen::Xform * annotationPlane ,
272 const NXOpen::Point3d & origin ,
274 );
279 (
282 NXOpen::Xform * annotationPlane ,
283 const NXOpen::Point3d & origin ,
285 );
290 (
293 NXOpen::Xform * annotationPlane ,
294 const NXOpen::Point3d & origin ,
296 );
301 (
303 const NXOpen::Point3d & origin ,
305 );
306}; //lint !e1712 类未定义默认构造函数
307 }
308}
309#ifdef _MSC_VER
310#pragma warning(pop)
311#endif
312#ifdef __GNUC__
313#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
314#pragma GCC diagnostic warning "-Wdeprecated-declarations"
315#endif
316#endif
317#undef EXPORTLIBRARY