NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_CustomSymbolCollection.hxx
1//--------------------------------------------------------------------------
2// 版权所有 2024 Siemens
3//--------------------------------------------------------------------------
4// C++ 接口到 JA API 的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_CustomSymbolCollection.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_CustomSymbolData.hxx>
23#include <NXOpen/Annotations_DraftingCustomSymbolBuilder.hxx>
24#include <NXOpen/Annotations_EditSymbolDisplayBuilder.hxx>
25#include <NXOpen/Annotations_LeaderBundle.hxx>
26#include <NXOpen/Annotations_MasterSymbolBuilder.hxx>
27#include <NXOpen/Annotations_MasterSymbolListItemBuilder.hxx>
28#include <NXOpen/Annotations_PmiCustomSymbolBuilder.hxx>
29#include <NXOpen/Annotations_ReplaceSymbolBuilder.hxx>
30#include <NXOpen/Annotations_SmashCustomSymbolBuilder.hxx>
31#include <NXOpen/Annotations_SymbolCatalogBuilder.hxx>
32#include <NXOpen/TaggedObjectCollection.hxx>
33#include <NXOpen/TaggedObject.hxx>
34#include <NXOpen/ugmath.hxx>
35#include <NXOpen/libnxopencpp_annotations_exports.hxx>
36#ifdef _MSC_VER
37#pragma warning(push)
38#pragma warning(disable:4996)
39#endif
40#ifdef __GNUC__
41#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
42#endif
43namespace NXOpen
44{
45 namespace Annotations
46 {
48 }
49 namespace Annotations
50 {
52 }
53 namespace Annotations
54 {
55 class BaseCustomSymbol;
56 }
57 namespace Annotations
58 {
59 class CustomSymbol;
60 }
61 namespace Annotations
62 {
63 class CustomSymbolData;
64 }
65 namespace Annotations
66 {
68 }
69 namespace Annotations
70 {
72 }
73 namespace Annotations
74 {
75 class LeaderBundle;
76 }
77 namespace Annotations
78 {
79 class MasterSymbol;
80 }
81 namespace Annotations
82 {
84 }
85 namespace Annotations
86 {
88 }
89 namespace Annotations
90 {
91 class PmiCustomSymbol;
92 }
93 namespace Annotations
94 {
96 }
97 namespace Annotations
98 {
99 class PmiData;
100 }
101namespace Annotations
102{
104}
105namespace Annotations
106{
108}
109namespace Annotations
110{
112}
113class Xform;
114namespace Annotations
115{
116 class CustomSymbolCollectionImpl;
120 class NXOPENCPP_ANNOTATIONSEXPORT CustomSymbolCollection : public NXOpen::TaggedObjectCollection
121 {
122 private: CustomSymbolCollectionImpl * m_customsymbolcollection_impl;
127 public:
129 tag_t Tag() const;
130 public: ~CustomSymbolCollection();
132 //lint -sem(NXOpen::Annotations::CustomSymbolCollection::iterator::copy,initializer)
133 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::BaseCustomSymbol *>
134 {
135 public:
137 iterator() : m_context(nullptr), m_current(NULL_TAG)
138 {
139 // coverity[uninit_member]
140 } //lint !e1401 m_state is not initialized
141
142 explicit iterator(NXOpen::Annotations::CustomSymbolCollection *context) : m_context(context), m_current(NULL_TAG)
143 {
144 // coverity[uninit_member]
145 }//lint !e1401 m_state is not initialized
147
148 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
149 {
150 copy(other);
151 }
152
153 iterator &operator =(const iterator &other)
154 {
155 if (&other != this)
156 copy(other);
157 return *this;
158 }
159
160 bool operator ==(const iterator &other) const
161 {
162 return m_current == other.m_current && m_context == other.m_context;
163 }
164
165 bool operator !=(const iterator &other) const
166 {
167 return !operator == (other);
168 }
169
170 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
172 iterator & operator ++()
173 {
174 next();
175 return *this;
176 }
177
178 iterator operator ++(int)
179 {
180 iterator tmp(*this);
181 ++*this;
182 return tmp;
183 }
184 private:
185 void copy(const iterator &other)
186 {
187 m_context = other.m_context;
188 m_current = other.m_current;
189 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
190 m_state[i] = other.m_state[i];
191 }
192 NXOPENCPP_ANNOTATIONSEXPORT void next();
194 tag_t m_current;
195 unsigned int m_state[8];
196 };
197
201 {
202 return iterator(this);
203 }
204
208 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use NXOpen::Annotations::DraftingCustomSymbolBuilder for Drafting Custom Symbol and NXOpen::Annotations::PmiCustomSymbolBuilder for PMI Custom Symbol objects.") NXOpen::Annotations::CustomSymbolData * NewCustomSymbolData
209 (
210 const NXString & masterFileName
211 );
217 (
218 const char * masterFileName
219 );
224 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use NXOpen::Annotations::DraftingCustomSymbolBuilder for Drafting Custom Symbol and NXOpen::Annotations::PmiCustomSymbolBuilder for PMI Custom Symbol objects.") NXOpen::Annotations::CustomSymbolData * NewPartSymbolData
225 (
226 const NXString & partSymbolName
227 );
233 (
234 const char * partSymbolName
235 );
240 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use NXOpen::Annotations::DraftingCustomSymbolBuilder instead.") NXOpen::Annotations::CustomSymbol * CreateCustomSymbol
241 (
242 NXOpen::Annotations::CustomSymbolData * customSymbolData ,
243 const NXOpen::Point3d & origin ,
245 );
250 public: NX_DEPRECATED("Deprecated in NX9.0.0. Use NXOpen::Annotations::PmiCustomSymbolBuilder instead.") NXOpen::Annotations::PmiCustomSymbol * CreatePmiCustomSymbol
251 (
252 NXOpen::Annotations::CustomSymbolData * customSymbolData ,
253 NXOpen::Annotations::PmiData * pmiData ,
254 NXOpen::Xform * annotationPlane ,
255 const NXOpen::Point3d & origin ,
257 );
262 (
263 );
268 (
269 NXOpen::Annotations::MasterSymbol * masterSymbolTag
270 );
275 (
276 );
281 (
282 NXOpen::Annotations::CustomSymbol * symbolTag
283 );
288 (
289 NXOpen::Annotations::PmiCustomSymbol * symbolTag
290 );
295 (
296 NXOpen::Annotations::BaseCustomSymbol * symbolTag
297 );
303 (
304 const NXString & name
305 );
311 (
312 const char * name
313 );
318 (
319 );
324 (
325 );
326 }; //lint !e1712 类未定义默认构造函数
327 }
328}
329#ifdef _MSC_VER
330#pragma warning(pop)
331#endif
332#ifdef __GNUC__
333#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
334#pragma GCC diagnostic warning "-Wdeprecated-declarations"
335#endif
336#endif
337#undef EXPORTLIBRARY