NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Drawings_DraftingViewCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Drawings_DraftingViewCollection.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/Drawings_AddRemoveBoxViewBuilder.hxx>
23#include <NXOpen/Drawings_BaseViewBuilder.hxx>
24#include <NXOpen/Drawings_BrokenViewBuilder.hxx>
25#include <NXOpen/Drawings_CustomViewSettingsBuilder.hxx>
26#include <NXOpen/Drawings_DetailViewBuilder.hxx>
27#include <NXOpen/Drawings_DrawingViewBuilder.hxx>
28#include <NXOpen/Drawings_ProjectedViewBuilder.hxx>
29#include <NXOpen/Drawings_RefineDisplayBuilder.hxx>
30#include <NXOpen/Drawings_SecondaryGeometryInViewsBuilder.hxx>
31#include <NXOpen/Drawings_SectionInViewBuilder.hxx>
32#include <NXOpen/Drawings_SectionViewBuilder.hxx>
33#include <NXOpen/Drawings_StandardViewsBuilder.hxx>
34#include <NXOpen/Drawings_UpdateViewsBuilder.hxx>
35#include <NXOpen/Drawings_ViewCopyTo3dBuilder.hxx>
36#include <NXOpen/Drawings_ViewCreationWizardBuilder.hxx>
37#include <NXOpen/Drawings_ViewProjectionBuilder.hxx>
38#include <NXOpen/Drawings_ViewStyleBuilder.hxx>
39#include <NXOpen/Drawings_ViewStyleShipbuildingLinesBuilder.hxx>
40#include <NXOpen/TaggedObjectCollection.hxx>
41#include <NXOpen/TaggedObject.hxx>
42#include <NXOpen/libnxopencpp_drawings_exports.hxx>
43#ifdef _MSC_VER
44#pragma warning(push)
45#pragma warning(disable:4996)
46#endif
47#ifdef __GNUC__
48#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
49#endif
50namespace NXOpen
51{
52 namespace Drawings
53 {
55 }
56 class Part;
57 namespace Drawings
58 {
59 class DraftingView;
60 }
61 namespace Drawings
62 {
64 }
65 namespace Drawings
66 {
67 class BaseView;
68 }
69 namespace Drawings
70 {
71 class BaseViewBuilder;
72 }
73 namespace Drawings
74 {
76 }
77 namespace Drawings
78 {
80 }
81 namespace Drawings
82 {
83 class DetailView;
84 }
85 namespace Drawings
86 {
88 }
89 namespace Drawings
90 {
91 class DrawingSheet;
92 }
93 namespace Drawings
94 {
95 class DrawingView;
96 }
97 namespace Drawings
98 {
100 }
101namespace Drawings
102 {
103 class ProjectedView;
104 }
105 namespace Drawings
106 {
108 }
109 namespace Drawings
110 {
112 }
113 namespace Drawings
114 {
116 }
117 namespace Drawings
118 {
120 }
121 namespace Drawings
122 {
123 class SectionViewBuilder;
124 }
125 namespace Drawings
126 {
128 }
129 namespace Drawings
130 {
131 class UpdateViewsBuilder;
132 }
133 namespace Drawings
134 {
135 class ViewBreak;
136 }
137 namespace Drawings
138 {
140 }
141 namespace Drawings
142 {
144 }
145 namespace Drawings
146 {
148 }
149 namespace Drawings
150 {
152 }
153 class ModelingView;
154 class NXObject;
155 class View;
156 namespace Drawings
157 {
158 class DraftingViewCollectionImpl;
162 class NXOPENCPP_DRAWINGSEXPORT DraftingViewCollection : public NXOpen::TaggedObjectCollection
163 {
171
177
184 private: DraftingViewCollectionImpl * m_draftingviewcollection_impl;
185 private: NXOpen::Part* m_owner;
187 public: explicit DraftingViewCollection(NXOpen::Part *owner);
189 public:
191 tag_t Tag() const;
192 public: ~DraftingViewCollection();
194 //lint -sem(NXOpen::Drawings::DraftingViewCollection::iterator::copy,initializer)
195 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Drawings::DraftingView *>
196 {
197 public:
199 iterator() : m_context(nullptr), m_current(NULL_TAG)
200{
201 // coverity[uninit_member]
202 } //lint !e1401 m_state is not initialized
203
204 explicit iterator(NXOpen::Drawings::DraftingViewCollection *context) : m_context(context), m_current(NULL_TAG)
205 {
206 // coverity[uninit_member]
207 }//lint !e1401 m_state is not initialized
209
210 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
211 {
212 copy(other);
213 }
214
215 iterator &operator =(const iterator &other)
216 {
217 if (&other != this)
218 copy(other);
219 return *this;
220 }
221
222 bool operator ==(const iterator &other) const
223 {
224 return m_current == other.m_current && m_context == other.m_context;
225 }
226
227 bool operator !=(const iterator &other) const
228 {
229 return !operator == (other);
230 }
231
232 NXOPENCPP_DRAWINGSEXPORT value_type operator * () const;
234 iterator & operator ++()
235 {
236 next();
237 return *this;
238 }
239
240 iterator operator ++(int)
241 {
242 iterator tmp(*this);
243 ++*this;
244 return tmp;
245 }
246 private:
247 void copy(const iterator &other)
248 {
249 m_context = other.m_context;
250 m_current = other.m_current;
251 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
252 m_state[i] = other.m_state[i];
253 }
254 NXOPENCPP_DRAWINGSEXPORT void next();
256 tag_t m_current;
257 unsigned int m_state[8];
258 };
259
263 {
264 return iterator(this);
265 }
266
271 public: void UpdateViews
272 (
274 );
280 public: void UpdateViews
281 (
284 );
288 public: void UpdateViews
289 (
290 const std::vector<NXOpen::Drawings::DraftingView *> & views
291 );
296 (
298 );
302 public: void RestoreViewBreaks
303 (
305 );
309 public: void UpdateViewBreaks
310 (
312 );
316 public: void PasteViews
317 (
319 const std::vector<NXOpen::Drawings::DraftingView *> & views ,
322 std::vector<NXOpen::Drawings::DraftingView *> & newViews
323 );
328 (
329 const std::vector<NXOpen::Drawings::DraftingView *> & views ,
331 );
338 (
339 const NXString & journalIdentifier
340 );
347 (
348 const char * journalIdentifier
349 );
355 (
356 NXOpen::View * view
357 );
362 (
363 const std::vector<NXOpen::Drawings::DraftingView *> & views
364 );
369 (
370 );
375 (
378 );
383 (
386 );
391 (
392 NXOpen::NXObject * sectionViewOrSectionLine
394 );
399 (
400 );
405 (
406 NXOpen::Drawings::DrawingView * drawingview
408 );
413 (
416 );
421 (
422 );
427 (
428 );
433 (
434 );
439 (
440 NXOpen::Drawings::ViewBreak * viewbreak
442 );
447 (
448 const std::vector<NXOpen::Drawings::DraftingView *> & views
449 );
454 (
455 );
460 (
462 );
467 (
468 );
473 (
474 );
479 (
480 );
485 (
486 );
491 (
492 const std::vector<NXOpen::NXObject *> & inputViews
493 );
494}; //lint !e1712 类未定义默认构造函数
495 }
496}
497#ifdef _MSC_VER
498#pragma warning(pop)
499#endif
500#ifdef __GNUC__
501#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
502#pragma GCC diagnostic warning "-Wdeprecated-declarations"
503#endif
504#endif
505#undef EXPORTLIBRARY