NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Display_DecalCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Display_DecalCollection.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/Display_DecalBuilder.hxx>
23#include <NXOpen/Display_DecalStickerBuilder.hxx>
24#include <NXOpen/TaggedObjectCollection.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/libnxopencpp_display_exports.hxx>
27#ifdef _MSC_VER
28#pragma warning(push)
29#pragma warning(disable:4996)
30#endif
31#ifdef __GNUC__
32#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33#endif
34namespace NXOpen
35{
36 namespace Display
37 {
38 class DecalCollection;
39 }
40 class BasePart;
41 class Decal;
42 namespace Display
43 {
44 class DecalBuilder;
45 }
46 namespace Display
47 {
49 }
50 class TaggedObject;
51 namespace Display
52 {
53 class DecalCollectionImpl;
60 class NXOPENCPP_DISPLAYEXPORT DecalCollection : public NXOpen::TaggedObjectCollection
61 {
62 private: DecalCollectionImpl * m_decalcollection_impl;
63 private: NXOpen::BasePart* m_owner;
65 public: explicit DecalCollection(NXOpen::BasePart *owner);
67 public:
69 tag_t Tag() const;
70 public: ~DecalCollection();
72 //lint -sem(NXOpen::Display::DecalCollection::iterator::copy,initializer)
73 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Decal *>
74 {
75 public:
77 iterator() : m_context(nullptr), m_current(NULL_TAG)
78 {
79 // coverity[uninit_member]
80 } //lint !e1401 m_state 未初始化
81
82 explicit iterator(NXOpen::Display::DecalCollection *context) : m_context(context), m_current(NULL_TAG)
83 {
84 // coverity[uninit_member]
85 }//lint !e1401 m_state 未初始化
87
88 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
89 {
90 copy(other);
91 }
92
93 iterator &operator =(const iterator &other)
94{
95 if (&other != this)
96 copy(other);
97 return *this;
98 }
99
100 bool operator ==(const iterator &other) const
101 {
102 return m_current == other.m_current && m_context == other.m_context;
103 }
104
105 bool operator !=(const iterator &other) const
106 {
107 return !operator == (other);
108 }
109
110 NXOPENCPP_DISPLAYEXPORT value_type operator * () const;
112 iterator & operator ++()
113 {
114 next();
115 return *this;
116 }
117
118 iterator operator ++(int)
119 {
120 iterator tmp(*this);
121 ++*this;
122 return tmp;
123 }
124 private:
125 void copy(const iterator &other)
126 {
127 m_context = other.m_context;
128 m_current = other.m_current;
129 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
130 m_state[i] = other.m_state[i];
131 }
132 NXOPENCPP_DISPLAYEXPORT void next();
134 tag_t m_current;
135 unsigned int m_state[8];
136 };
137
141 {
142 return iterator(this);
143 }
144
148 public: NX_DEPRECATED("在 NX1980.0.0 中已弃用。请使用 NXOpen::Display::DecalCollection::CreateDecalStickerBuilder 替代。") NXOpen::Display::DecalBuilder * CreateDecalBuilder
149 (
150 NXOpen::TaggedObject * decal
151 );
158 public: NX_DEPRECATED("在 NX1980.0.0 中已弃用。请使用 NXOpen::Display::DecalCollection::CreateDecalStickerBuilder 替代。") NXOpen::Display::DecalBuilder * CreateDecalBuilderFull
159 (
160 NXOpen::TaggedObject * decal
161 );
166 (
167 NXOpen::TaggedObject * decal
168 );
175 (
176 const NXString & journalIdentifier
177 );
184 (
185 const char * journalIdentifier
186 );
187}; //lint !e1712 类未定义默认构造函数
188 }
189}
190#ifdef _MSC_VER
191#pragma warning(pop)
192#endif
193#ifdef __GNUC__
194#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
195#pragma GCC diagnostic warning "-Wdeprecated-declarations"
196#endif
197#endif
198#undef EXPORTLIBRARY