NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Drawings_DrawingSheetCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的JA API头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Drawings_DrawingSheetCollection.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_DrawingSheet.hxx>
23#include <NXOpen/TaggedObjectCollection.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/libnxopencpp_drawings_exports.hxx>
26#ifdef _MSC_VER
27#pragma warning(push)
28#pragma warning(disable:4996)
29#endif
30#ifdef __GNUC__
31#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32#endif
33namespace NXOpen
34{
35 namespace Drawings
36 {
38 }
39 class Part;
40 namespace Drawings
41 {
42 class DrawingSheet;
43 }
44 namespace Drawings
45 {
47 }
48 namespace Drawings
49 {
51 }
52 namespace Drawings
53 {
54 class DrawingSheetCollectionImpl;
58 class NXOPENCPP_DRAWINGSEXPORT DrawingSheetCollection : public NXOpen::TaggedObjectCollection
59 {
60 private: DrawingSheetCollectionImpl * m_drawingsheetcollection_impl;
61 private: NXOpen::Part* m_owner;
63 public: explicit DrawingSheetCollection(NXOpen::Part *owner);
65 public:
67 tag_t Tag() const;
70 //lint -sem(NXOpen::Drawings::DrawingSheetCollection::iterator::copy,initializer)
71 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Drawings::DrawingSheet *>
72 {
73 public:
75 iterator() : m_context(nullptr), m_current(NULL_TAG)
76 {
77 // coverity[uninit_member]
78 } //lint !e1401 m_state 未初始化
79
80 explicit iterator(NXOpen::Drawings::DrawingSheetCollection *context) : m_context(context), m_current(NULL_TAG)
81 {
82 // coverity[uninit_member]
83 }//lint !e1401 m_state 未初始化
85
86 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
87 {
88 copy(other);
89 }
90
91 iterator &operator =(const iterator &other)
92 {
93 if (&other != this)
94 copy(other);
95 return *this;
96 }
97
98 bool operator ==(const iterator &other) const
99 {
100 return m_current == other.m_current && m_context == other.m_context;
101 }
102
103 bool operator !=(const iterator &other) const
104 {
105 return !operator == (other);
106 }
107
108 NXOPENCPP_DRAWINGSEXPORT value_type operator * () const;
110 iterator & operator ++()
111 {
112 next();
113 return *this;
114 }
115
116 iterator operator ++(int)
117 {
118 iterator tmp(*this);
119 ++*this;
120 return tmp;
121 }
122 private:
123 void copy(const iterator &other)
124 {
125 m_context = other.m_context;
126 m_current = other.m_current;
127 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
128 m_state[i] = other.m_state[i];
129 }
130 NXOPENCPP_DRAWINGSEXPORT void next();
132 tag_t m_current;
133 unsigned int m_state[8];
134 };
135
139 {
140 return iterator(this);
141 }
142
146 (
147 );
152 public: NX_DEPRECATED("Deprecated in NX12.0.0. Use NXOpen::Drawings::DraftingDrawingSheetCollection::InsertSheet instead.") NXOpen::Drawings::DrawingSheet * InsertSheet
153 (
154 const NXString & drawingName ,
155 NXOpen::Drawings::DrawingSheet::Unit drawingUnits ,
156 double width ,
157 double height ,
158 double numerator ,
159 double denominator ,
160 NXOpen::Drawings::DrawingSheet::ProjectionAngleType projectionAngle
161 );
167 (
168 const char * drawingName ,
169 NXOpen::Drawings::DrawingSheet::Unit drawingUnits ,
170 double width ,
171 double height ,
172 double numerator ,
173 double denominator ,
174 NXOpen::Drawings::DrawingSheet::ProjectionAngleType projectionAngle
175 );
180 public: NX_DEPRECATED("Deprecated in NX12.0.0. Use NXOpen::Drawings::DraftingDrawingSheetCollection::InsertSheet instead.") NXOpen::Drawings::DrawingSheet * InsertSheet
181 (
182 const NXString & drawingName ,
183 NXOpen::Drawings::DrawingSheet::StandardSheetSize sheetSize ,
184 double numerator ,
185 double denominator ,
186 NXOpen::Drawings::DrawingSheet::ProjectionAngleType projectionAngle
187 );
193 (
194 const char * drawingName ,
195 NXOpen::Drawings::DrawingSheet::StandardSheetSize sheetSize ,
196 double numerator ,
197 double denominator ,
198 NXOpen::Drawings::DrawingSheet::ProjectionAngleType projectionAngle
199 );
206 public: NX_DEPRECATED("Deprecated in NX12.0.0. Use NXOpen::Drawings::DraftingDrawingSheetCollection::FindObject instead.") NXOpen::Drawings::DrawingSheet * FindObject
207 (
208 const NXString & journalIdentifier
209 );
217 (
218 const char * journalIdentifier
219 );
224 public: NX_DEPRECATED("Deprecated in NX12.0.0. Use NXOpen::Drawings::DraftingDrawingSheetCollection::CreateDraftingDrawingSheetBuilder instead.") NXOpen::Drawings::DrawingSheetBuilder * DrawingSheetBuilder
225 (
226 NXOpen::Drawings::DrawingSheet * sheet
227 );
232 (
233 );
238 (
239 const std::vector<NXOpen::Drawings::DrawingSheet *> & dwgSheets ,
240 std::vector<NXOpen::Drawings::DrawingSheet *> & newPastedDwgSheets
241 );
246 }; //lint !e1712 default constructor not defined for class
247 }
248}
249#ifdef _MSC_VER
250#pragma warning(pop)
251#endif
252#ifdef __GNUC__
253#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
254#pragma GCC diagnostic warning "-Wdeprecated-declarations"
255#endif
256#endif
257#undef EXPORTLIBRARY