NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
OffsetCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// OffsetCollection.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/Offset.hxx>
24#include <NXOpen/SmartObject.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/ugmath.hxx>
27#include <NXOpen/libnxopencpp_exports.hxx>
28#ifdef _MSC_VER
29#pragma warning(push)
30#pragma warning(disable:4996)
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34#endif
35namespace NXOpen
36{
37 class OffsetCollection;
38 class BasePart;
39 class Offset;
40 class Direction;
41 class Face;
42 class ICurve;
43 class Point;
44 class Scalar;
45 class SmartObject;
46 class Xform;
47 class OffsetCollectionImpl;
54 class NXOPENCPPEXPORT OffsetCollection : public NXOpen::TaggedObjectCollection
55 {
56 private: OffsetCollectionImpl * m_offsetcollection_impl;
57 private: NXOpen::BasePart* m_owner;
59 public: explicit OffsetCollection(NXOpen::BasePart *owner);
61 public:
63 tag_t Tag() const;
64 public: ~OffsetCollection();
66 //lint -sem(NXOpen::OffsetCollection::iterator::copy,initializer)
67 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Offset *>
68 {
69 public:
71 iterator() : m_context(nullptr), m_current(NULL_TAG)
72 {
73 // coverity[uninit_member]
74 } //lint !e1401 m_state is not initialized
75
76 explicit iterator(NXOpen::OffsetCollection *context) : m_context(context), m_current(NULL_TAG)
77 {
78 // coverity[uninit_member]
79 }//lint !e1401 m_state is not initialized
81
82 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
83 {
84 copy(other);
85 }
86
87 iterator &operator =(const iterator &other)
88 {
89 if (&other != this)
90 copy(other);
91 return *this;
92 }
93
94 bool operator ==(const iterator &other) const
95 {
96 return m_current == other.m_current && m_context == other.m_context;
97 }
98
99 bool operator !=(const iterator &other) const
100 {
101 return !operator == (other);
102 }
103
104 NXOPENCPPEXPORT value_type operator * () const;
106 iterator & operator ++()
107 {
108 next();
109 return *this;
110 }
111
112 iterator operator ++(int)
113 {
114 iterator tmp(*this);
115 ++*this;
116 return tmp;
117 }
118 private:
119 void copy(const iterator &other)
120 {
121 m_context = other.m_context;
122 m_current = other.m_current;
123 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
124 m_state[i] = other.m_state[i];
125 }
126 NXOPENCPPEXPORT void next();
127 NXOpen::OffsetCollection *m_context;
128 tag_t m_current;
129 unsigned int m_state[8];
130 };
131
135 {
136 return iterator(this);
137 }
138
144 (
145 const NXOpen::Point3d & origin ,
146 const NXOpen::Vector3d & vector ,
148 );
155 (
156 NXOpen::Scalar * deltaX ,
157 NXOpen::Scalar * deltaY ,
158 NXOpen::Scalar * deltaZ ,
160 );
168 (
169 NXOpen::Scalar * radius ,
170 NXOpen::Scalar * angle ,
171 NXOpen::Scalar * deltaZ ,
173 );
181 (
182 NXOpen::Scalar * radius ,
183 NXOpen::Scalar * angle1 ,
184 NXOpen::Scalar * angle2 ,
186 );
193 (
194 NXOpen::Direction * direction ,
195 NXOpen::Scalar * distance ,
197 );
203 (
204 NXOpen::ICurve * icurve ,
205 NXOpen::Scalar * t ,
207 );
217 (
218 NXOpen::Point * atPoint ,
219 NXOpen::ICurve * icurve ,
221 );
227 (
228 NXOpen::ICurve * icurve ,
229 NXOpen::Scalar * t ,
231 );
241 (
242 NXOpen::Point * atPoint ,
243 NXOpen::ICurve * icurve ,
245 );
251 (
252 NXOpen::Face * face ,
253 NXOpen::Scalar * u ,
254 NXOpen::Scalar * v ,
255 bool absoluteUv ,
257 NXOpen::Direction * sectionDirection ,
259 );
265 (
266 NXOpen::Face * face ,
267 NXOpen::Scalar * u ,
268 NXOpen::Scalar * v ,
269 bool absoluteUv ,
271 NXOpen::Direction * sectionDirection ,
273 );
283 (
284 NXOpen::Point * atPoint ,
285 NXOpen::Face * face ,
287 NXOpen::SmartObject * sectionDirection ,
289 );
298 (
299 NXOpen::Point * atPoint ,
300 NXOpen::Face * face ,
302 NXOpen::SmartObject * sectionDirection ,
304 );
310 (
311 NXOpen::Face * face ,
312 NXOpen::Scalar * u ,
313 NXOpen::Scalar * v ,
314 bool absoluteUv ,
315 NXOpen::Scalar * sectionAngle ,
317 );
323 (
324 NXOpen::Face * face ,
325 NXOpen::Scalar * u ,
326 NXOpen::Scalar * v ,
327 bool absoluteUv ,
328 NXOpen::Scalar * sectionAngle ,
330 );
337 (
338 NXOpen::Offset * offsetIn ,
339 NXOpen::Xform * xform ,
341 );
342 }; //lint !e1712 default constructor not defined for class
343}
344#ifdef _MSC_VER
345#pragma warning(pop)
346#endif
347#ifdef __GNUC__
348#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
349#pragma GCC diagnostic warning "-Wdeprecated-declarations"
350#endif
351#endif
352#undef EXPORTLIBRARY