NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_CenterlineCollection.hxx
1//--------------------------------------------------------------------------
2// 版权所有 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_CenterlineCollection.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_AutomaticCenterlineBuilder.hxx>
23#include <NXOpen/Annotations_BoltCircleCenterlineBuilder.hxx>
24#include <NXOpen/Annotations_CenterMarkBuilder.hxx>
25#include <NXOpen/Annotations_Centerline2dBuilder.hxx>
26#include <NXOpen/Annotations_Centerline3dBuilder.hxx>
27#include <NXOpen/Annotations_CircularCenterlineBuilder.hxx>
28#include <NXOpen/Annotations_PmiBoltCircleCenterlineBuilder.hxx>
29#include <NXOpen/Annotations_PmiCenterMarkBuilder.hxx>
30#include <NXOpen/Annotations_PmiCenterline3dBuilder.hxx>
31#include <NXOpen/Annotations_SymmetricalCenterlineBuilder.hxx>
32#include <NXOpen/TaggedObjectCollection.hxx>
33#include <NXOpen/TaggedObject.hxx>
34#include <NXOpen/libnxopencpp_annotations_exports.hxx>
35#ifdef _MSC_VER
36#pragma warning(push)
37#pragma warning(disable:4996)
38#endif
39#ifdef __GNUC__
40#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
41#endif
42namespace NXOpen
43{
44 namespace Annotations
45 {
47 }
48 namespace Annotations
49 {
51 }
52 namespace Annotations
53 {
54 class Centerline;
55 }
56 namespace Annotations
57 {
59 }
60 namespace Annotations
61 {
63 }
64 namespace Annotations
65 {
67 }
68 namespace Annotations
69 {
70 class CenterMark;
71 }
72 namespace Annotations
73 {
75 }
76 namespace Annotations
77 {
78 class Centerline2d;
79 }
80 namespace Annotations
81 {
83 }
84 namespace Annotations
85 {
86 class Centerline3d;
87 }
88 namespace Annotations
89 {
91 }
92 namespace Annotations
93 {
95 }
96 namespace Annotations
97 {
99 }
100namespace Annotations
101{
103}
104namespace Annotations
105{
107}
108namespace Annotations
109{
110 class PmiCenterMark;
111}
112namespace Annotations
113{
115}
116namespace Annotations
117{
118 class PmiCenterline3d;
119}
120namespace Annotations
121{
123}
124namespace Annotations
125{
127}
128namespace Annotations
129{
131}
132namespace Annotations
133{
134 class CenterlineCollectionImpl;
138 class NXOPENCPP_ANNOTATIONSEXPORT CenterlineCollection : public NXOpen::TaggedObjectCollection
139 {
140 private: CenterlineCollectionImpl * m_centerlinecollection_impl;
145 public:
147 tag_t Tag() const;
148 public: ~CenterlineCollection();
150 //lint -sem(NXOpen::Annotations::CenterlineCollection::iterator::copy,initializer)
151 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::Centerline *>
152 {
153 public:
155 iterator() : m_context(nullptr), m_current(NULL_TAG)
156 {
157 // coverity[uninit_member]
158 } //lint !e1401 m_state is not initialized
159
160 explicit iterator(NXOpen::Annotations::CenterlineCollection *context) : m_context(context), m_current(NULL_TAG)
161 {
162 // coverity[uninit_member]
163 }//lint !e1401 m_state is not initialized
165
166 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
167 {
168 copy(other);
169 }
170
171 iterator &operator =(const iterator &other)
172 {
173 if (&other != this)
174 copy(other);
175 return *this;
176 }
177
178 bool operator ==(const iterator &other) const
179 {
180 return m_current == other.m_current && m_context == other.m_context;
181 }
182
183 bool operator !=(const iterator &other) const
184 {
185 return !operator == (other);
186 }
187
188 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
190 iterator & operator ++()
191 {
192 next();
193 return *this;
194 }
195
196 iterator operator ++(int)
197 {
198 iterator tmp(*this);
199++*this;
200 return tmp;
201 }
202 private:
203 void copy(const iterator &other)
204 {
205 m_context = other.m_context;
206 m_current = other.m_current;
207 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
208 m_state[i] = other.m_state[i];
209 }
210 NXOPENCPP_ANNOTATIONSEXPORT void next();
212 tag_t m_current;
213 unsigned int m_state[8];
214 };
215
219 {
220 return iterator(this);
221 }
222
226 (
228 );
233 (
235 );
240 (
242 );
247 (
249 );
254 (
256 );
261 (
263 );
268 (
269 const NXString & journalIdentifier
270 );
275 (
276 const char * journalIdentifier
277 );
282 (
283 );
288 (
290 );
295 (
297 );
302 (
304 );
305 }; //lint !e1712 类未定义默认构造函数
306 }
307}
308#ifdef _MSC_VER
309#pragma warning(pop)
310#endif
311#ifdef __GNUC__
312#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
313#pragma GCC diagnostic warning "-Wdeprecated-declarations"
314#endif
315#endif
316#undef EXPORTLIBRARY