NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Assemblies_SubsetRecipe.hxx
1//--------------------------------------------------------------------------
2// 版权所有 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Assemblies_SubsetRecipe.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/Assemblies_AttributeSearchTerm.hxx>
23#include <NXOpen/Assemblies_BoxSearchTerm.hxx>
24#include <NXOpen/Assemblies_ExplicitSearchTerm.hxx>
25#include <NXOpen/Assemblies_GroupSearchTerm.hxx>
26#include <NXOpen/Assemblies_Partition.hxx>
27#include <NXOpen/Assemblies_PartitionSearchTerm.hxx>
28#include <NXOpen/Assemblies_PlaneSearchTerm.hxx>
29#include <NXOpen/Assemblies_ProximitySearchTerm.hxx>
30#include <NXOpen/Assemblies_RunContentProximitySearchTerm.hxx>
31#include <NXOpen/Assemblies_SearchResultElement.hxx>
32#include <NXOpen/Assemblies_SearchTerm.hxx>
33#include <NXOpen/Assemblies_SearchTermBuilder.hxx>
34#include <NXOpen/TaggedObjectCollection.hxx>
35#include <NXOpen/TaggedObject.hxx>
36#include <NXOpen/ugmath.hxx>
37#include <NXOpen/libnxopencpp_assemblies_exports.hxx>
38#ifdef _MSC_VER
39#pragma warning(push)
40#pragma warning(disable:4996)
41#endif
42#ifdef __GNUC__
43#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
44#endif
45namespace NXOpen
46{
47 namespace Assemblies
48 {
49 class SubsetRecipe;
50 }
51 namespace Assemblies
52 {
53 class SubsetBuilder;
54 }
55 namespace Assemblies
56 {
57 class SearchTerm;
58 }
59 namespace Assemblies
60 {
62 }
63 namespace Assemblies
64 {
65 class BoxSearchTerm;
66 }
67 namespace Assemblies
68 {
70 }
71 namespace Assemblies
72 {
73 class GroupSearchTerm;
74 }
75 namespace Assemblies
76 {
77 class Partition;
78 }
79 namespace Assemblies
80 {
82 }
83 namespace Assemblies
84 {
85 class PlaneSearchTerm;
86 }
87 namespace Assemblies
88 {
90 }
91 namespace Assemblies
92 {
94 }
95 namespace Assemblies
96 {
98 }
99namespace Assemblies
100{
101 class SearchTermBuilder;
102}
103namespace Assemblies
104{
105 class SubsetRecipeImpl;
112 class NXOPENCPP_ASSEMBLIESEXPORT SubsetRecipe : public NXOpen::TaggedObjectCollection
113 {
114 private: SubsetRecipeImpl * m_subsetrecipe_impl;
115 private: NXOpen::Assemblies::SubsetBuilder* m_owner;
117 public: explicit SubsetRecipe(NXOpen::Assemblies::SubsetBuilder *owner);
119 public:
121 tag_t Tag() const;
122 public: ~SubsetRecipe();
124 //lint -sem(NXOpen::Assemblies::SubsetRecipe::iterator::copy,initializer)
125 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Assemblies::SearchTerm *>
126 {
127 public:
129 iterator() : m_context(nullptr), m_current(NULL_TAG)
130 {
131 // coverity[uninit_member]
132 } //lint !e1401 m_state is not initialized
133
134 explicit iterator(NXOpen::Assemblies::SubsetRecipe *context) : m_context(context), m_current(NULL_TAG)
135 {
136 // coverity[uninit_member]
137 }//lint !e1401 m_state is not initialized
139
140 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
141 {
142 copy(other);
143 }
144
145 iterator &operator =(const iterator &other)
146 {
147 if (&other != this)
148 copy(other);
149 return *this;
150 }
151
152 bool operator ==(const iterator &other) const
153 {
154 return m_current == other.m_current && m_context == other.m_context;
155 }
156
157 bool operator !=(const iterator &other) const
158 {
159 return !operator == (other);
160 }
161
162 NXOPENCPP_ASSEMBLIESEXPORT value_type operator * () const;
164 iterator & operator ++()
165 {
166 next();
167 return *this;
168 }
169
170 iterator operator ++(int)
171 {
172 iterator tmp(*this);
173 ++*this;
174 return tmp;
175 }
176 private:
177 void copy(const iterator &other)
178 {
179 m_context = other.m_context;
180 m_current = other.m_current;
181 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
182 m_state[i] = other.m_state[i];
183 }
184 NXOPENCPP_ASSEMBLIESEXPORT void next();
186 tag_t m_current;
187 unsigned int m_state[8];
188 };
189
193 {
194 return iterator(this);
195 }
196
204 (
205 const NXString & journalIdentifier
206 );
213 (
214 const char * journalIdentifier
215 );
220 (
222 NXOpen::Assemblies::SearchResultElement * searchResultElement
223 );
228 (
230 const std::vector<NXOpen::Assemblies::SearchResultElement *> & searchResultElements
231 );
236 (
237 NXOpen::Assemblies::SearchTermBuilder * searchTermBuilder
238 );
243 (
246 const NXOpen::Point3d & bottomCorner ,
247 const NXOpen::Point3d & topCorner ,
248 bool trueShapeRefinement
249 );
254 (
256 const std::vector<NXOpen::Assemblies::SearchResultElement *> & seeds ,
257 double distance ,
258 bool trueShapeRefinement
259 );
264 (
266 const NXString & seedRunName ,
267 double distance ,
268 bool trueShapeRefinement
269 );
274 (
276 const char * seedRunName ,
277 double distance ,
278 bool trueShapeRefinement
279 );
284 (
287 const NXOpen::Vector3d & normal ,
288 double displacement ,
289 const NXOpen::Point3d & pointOnPlane ,
290 bool trueShapeRefinement
291 );
296 (
298 const NXString & queryName ,
299 std::vector<NXString> & entries ,
300 std::vector<NXString> & values
301 );
306 (
308 const char * queryName ,
309 std::vector<NXString> & entries ,
310 std::vector<NXString> & values
311 );
317 public: NX_DEPRECATED("在 NX11.0.0 中弃用。请使用提供是否包含子分区的具体控制的 NXOpen::Assemblies::SubsetRecipe::CreatePartitionSearchTerm") NXOpen::Assemblies::PartitionSearchTerm * CreatePartitionSearchTerm
318 (
319 NXOpen::Assemblies::SearchTerm::SearchTermLogicType logicType ,
320 NXOpen::Assemblies::Partition * partition
321 );
327 public: NX_DEPRECATED("在 NX11.0.0 中弃用。请使用提供是否包含子分区的具体控制的 NXOpen::Assemblies::SubsetRecipe::CreatePartitionSearchTermGroup") NXOpen::Assemblies::GroupSearchTerm * CreatePartitionSearchTermGroup
328 (
329 NXOpen::Assemblies::SearchTerm::SearchTermLogicType logicType ,
330 const std::vector<NXOpen::Assemblies::Partition *> & partitions
331 );
336 (
337 NXOpen::Assemblies::SearchTerm::SearchTermLogicType logicType ,
338 NXOpen::Assemblies::PartitionSearchTerm::IncludeChildren includeChildrenLogic ,
339 NXOpen::Assemblies::Partition * partition
340 );
345 (
346 NXOpen::Assemblies::SearchTerm::SearchTermLogicType logicType ,
347 NXOpen::Assemblies::PartitionSearchTerm::IncludeChildren includeChildrenLogic ,
348 const std::vector<NXOpen::Assemblies::Partition *> & partitions
349 );
353 public: void MoveUp
354 (
355 NXOpen::Assemblies::SearchTerm * searchTerm
356 );
360 public: void MoveDown
361 (
362 NXOpen::Assemblies::SearchTerm * searchTerm
363 );
368 public: void Group
369 (
370 NXOpen::Assemblies::SearchTerm::SearchTermLogicType logicType ,
371 const std::vector<NXOpen::Assemblies::SearchTerm *> & searchTerms
372 );
377 public: void Ungroup
378 (
379 const std::vector<NXOpen::Assemblies::SearchTerm *> & searchTerms
380 );
384 public: void DeleteSearchTerms
385 (
386 const std::vector<NXOpen::Assemblies::SearchTerm *> & searchTerms
387 );
392 (
393 NXOpen::Assemblies::SearchTerm::SearchTermLogicType logicType ,
394 const std::vector<NXOpen::Assemblies::SearchTerm *> & searchTerms
395 );
400 (
401 NXOpen::Assemblies::SearchTerm::SearchTermLogicType logicType ,
402 NXOpen::Assemblies::PartitionSearchTerm::IncludeChildren includeChildrenLogic ,
403 const std::vector<NXOpen::Assemblies::SearchTerm *> & searchTerms
404 );
411 (
412 const NXString & optionSet ,
413 const NXString & searchOption ,
414 bool optionValue
415 );
422 (
423 const char * optionSet ,
424 const char * searchOption ,
425 bool optionValue
426 );
433 (
434 const NXString & optionSet ,
435 const NXString & searchOption
436 );
443 (
444 const char * optionSet ,
445 const char * searchOption
446 );
451 public: std::vector<NXString> GetAllSearchOptions
452 (
453 const NXString & optionSet
454 );
460 (
461 const char * optionSet
462 );
466 public: std::vector<NXString> GetAllSearchOptionSets
467 (
468 );
469}; //lint !e1712 类未定义默认构造函数
470 }
471}
472#ifdef _MSC_VER
473#pragma warning(pop)
474#endif
475#ifdef __GNUC__
476#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
477#pragma GCC diagnostic warning "-Wdeprecated-declarations"
478#endif
479#endif
480#undef EXPORTLIBRARY