NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Features_GeodesicSketchCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口至JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Features_GeodesicSketchCollection.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/TaggedObjectCollection.hxx>
23#include <NXOpen/TaggedObject.hxx>
24#include <NXOpen/libnxopencpp_features_exports.hxx>
25#ifdef _MSC_VER
26#pragma warning(push)
27#pragma warning(disable:4996)
28#endif
29#ifdef __GNUC__
30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31#endif
32namespace NXOpen
33{
34 namespace Features
35 {
37 }
38 namespace Features
39 {
41 }
42 namespace Features
43 {
44 class Feature;
45 }
46 namespace Features
47 {
48 class GeodesicChamfer;
49 }
50 namespace Features
51 {
53 }
54 namespace Features
55 {
56 class GeodesicFillet;
57 }
58 namespace Features
59 {
61 }
62 namespace Features
63 {
65 }
66 namespace Features
67 {
69 }
70 namespace Features
71 {
72 class GeodesicLine;
73 }
74 namespace Features
75 {
77 }
78 namespace Features
79 {
80 class GeodesicOffset;
81 }
82 namespace Features
83 {
85 }
86 namespace Features
87 {
88 class GeodesicPoint;
89 }
90 namespace Features
91 {
93 }
94 namespace Features
95 {
96 class GeodesicProject;
97 }
98namespace Features
99 {
101 }
102 namespace Features
103 {
105 }
106 namespace Features
107 {
108 class GeodesicSketch;
109 }
110 namespace Features
111 {
113 }
114 namespace Features
115 {
117 }
118 namespace Features
119 {
120 class GeodesicSketchCollectionImpl;
124 class NXOPENCPP_FEATURESEXPORT GeodesicSketchCollection : public NXOpen::TaggedObjectCollection
125 {
126 private: GeodesicSketchCollectionImpl * m_geodesicsketchcollection_impl;
127 private: NXOpen::Features::FeatureCollection* m_owner;
131 public:
133 tag_t Tag() const;
136 //lint -sem(NXOpen::Features::GeodesicSketchCollection::iterator::copy,initializer)
137 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Features::Feature *>
138 {
139 public:
141 iterator() : m_context(nullptr), m_current(NULL_TAG)
142 {
143 // coverity[uninit_member]
144 } //lint !e1401 m_state 未初始化
145
146 explicit iterator(NXOpen::Features::GeodesicSketchCollection *context) : m_context(context), m_current(NULL_TAG)
147 {
148 // coverity[uninit_member]
149 }//lint !e1401 m_state 未初始化
151
152 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
153 {
154 copy(other);
155 }
156
157 iterator &operator =(const iterator &other)
158 {
159 if (&other != this)
160 copy(other);
161 return *this;
162 }
163
164 bool operator ==(const iterator &other) const
165 {
166 return m_current == other.m_current && m_context == other.m_context;
167 }
168
169 bool operator !=(const iterator &other) const
170 {
171 return !operator == (other);
172 }
173
174 NXOPENCPP_FEATURESEXPORT value_type operator * () const;
176 iterator & operator ++()
177 {
178 next();
179 return *this;
180 }
181
182 iterator operator ++(int)
183 {
184 iterator tmp(*this);
185 ++*this;
186 return tmp;
187 }
188 private:
189 void copy(const iterator &other)
190 {
191 m_context = other.m_context;
192 m_current = other.m_current;
193 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
194 m_state[i] = other.m_state[i];
195 }
196NXOPENCPP_FEATURESEXPORT void next();
198 tag_t m_current;
199 unsigned int m_state[8];
200 };
201
205 {
206 return iterator(this);
207 }
208
213 (
214 NXOpen::Features::GeodesicSketch * geodesicSketch
215 );
220 (
221 NXOpen::Features::GeodesicSketch * geodesicSketch
222 );
228 (
229 NXOpen::Features::GeodesicIntersect * geodesicIntersect
230 );
236 (
237 NXOpen::Features::GeodesicProject * geodesicProject
238 );
244 (
245 NXOpen::Features::GeodesicOffset * geodesicOffset
246 );
252 (
253 NXOpen::Features::GeodesicPoint * geodesicPoint
254 );
260 (
261 NXOpen::Features::GeodesicLine * geodesicLine
262 );
268 (
269 NXOpen::Features::GeodesicSketch * geodesicSketch
270 );
276 (
277 NXOpen::Features::GeodesicFillet * geodesicFillet
278 );
284 (
285 NXOpen::Features::GeodesicChamfer * geodesicChamfer
286 );
292 (
293 );
294 }; //lint !e1712 default constructor not defined for class
295 }
296}
297#ifdef _MSC_VER
298#pragma warning(pop)
299#endif
300#ifdef __GNUC__
301#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
302#pragma GCC diagnostic warning "-Wdeprecated-declarations"
303#endif
304#endif
305#undef EXPORTLIBRARY