NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Display_GridCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Display_GridCollection.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/BasePart.hxx>
23#include <NXOpen/Display_DatumPlaneGrid.hxx>
24#include <NXOpen/Display_DatumPlaneGridBuilder.hxx>
25#include <NXOpen/Display_PlanarShipGrid.hxx>
26#include <NXOpen/Display_PlanarShipGridBuilder.hxx>
27#include <NXOpen/Display_PlaneGrid.hxx>
28#include <NXOpen/Display_PlaneGridBuilder.hxx>
29#include <NXOpen/TaggedObjectCollection.hxx>
30#include <NXOpen/TaggedObject.hxx>
31#include <NXOpen/libnxopencpp_display_exports.hxx>
32#ifdef _MSC_VER
33#pragma warning(push)
34#pragma warning(disable:4996)
35#endif
36#ifdef __GNUC__
37#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
38#endif
39namespace NXOpen
40{
41 namespace Display
42 {
43 class GridCollection;
44 }
45 class BasePart;
46 namespace Display
47 {
48 class Grid;
49 }
50 class DatumPlane;
51 namespace Display
52 {
53 class DatumPlaneGrid;
54 }
55 namespace Display
56 {
58 }
59 namespace Display
60 {
61 class PlanarShipGrid;
62 }
63 namespace Display
64 {
66 }
67 namespace Display
68 {
69 class PlaneGrid;
70 }
71 namespace Display
72 {
73 class PlaneGridBuilder;
74 }
75 namespace Display
76 {
77 class GridCollectionImpl;
81 class NXOPENCPP_DISPLAYEXPORT GridCollection : public NXOpen::TaggedObjectCollection
82 {
83 private: GridCollectionImpl * m_gridcollection_impl;
84 private: NXOpen::BasePart* m_owner;
86 public: explicit GridCollection(NXOpen::BasePart *owner);
88 public:
90 tag_t Tag() const;
91 public: ~GridCollection();
93 //lint -sem(NXOpen::Display::GridCollection::iterator::copy,initializer)
94 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Display::Grid *>
95 {
96 public:
98 iterator() : m_context(nullptr), m_current(NULL_TAG)
99{
100 // coverity[uninit_member]
101 } //lint !e1401 m_state is not initialized
102
103 explicit iterator(NXOpen::Display::GridCollection *context) : m_context(context), m_current(NULL_TAG)
104 {
105 // coverity[uninit_member]
106 }//lint !e1401 m_state is not initialized
108
109 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
110 {
111 copy(other);
112 }
113
114 iterator &operator =(const iterator &other)
115 {
116 if (&other != this)
117 copy(other);
118 return *this;
119 }
120
121 bool operator ==(const iterator &other) const
122 {
123 return m_current == other.m_current && m_context == other.m_context;
124 }
125
126 bool operator !=(const iterator &other) const
127 {
128 return !operator == (other);
129 }
130
131 NXOPENCPP_DISPLAYEXPORT value_type operator * () const;
133 iterator & operator ++()
134 {
135 next();
136 return *this;
137 }
138
139 iterator operator ++(int)
140 {
141 iterator tmp(*this);
142 ++*this;
143 return tmp;
144 }
145 private:
146 void copy(const iterator &other)
147 {
148 m_context = other.m_context;
149 m_current = other.m_current;
150 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
151 m_state[i] = other.m_state[i];
152 }
153 NXOPENCPP_DISPLAYEXPORT void next();
155 tag_t m_current;
156 unsigned int m_state[8];
157 };
158
162 {
163 return iterator(this);
164 }
165
171 (
173 );
179 (
181 );
187 (
188 const std::vector<NXOpen::DatumPlane *> & datumPlanes
189 );
198 (
199 const NXString & journalIdentifier
200 );
209 (
210 const char * journalIdentifier
211 );
217 (
218 NXOpen::DatumPlane * datumPlane
219 );
226 (
228 );
229 }; //lint !e1712 类未定义默认构造函数
230 }
231}
232#ifdef _MSC_VER
233#pragma warning(pop)
234#endif
235#ifdef __GNUC__
236#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
237#pragma GCC diagnostic warning "-Wdeprecated-declarations"
238#endif
239#endif
240#undef EXPORTLIBRARY