NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Display_TrueShadingCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Display_TrueShadingCollection.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_TrueShading.hxx>
24#include <NXOpen/Display_TrueShadingBuilder.hxx>
25#include <NXOpen/TaggedObjectCollection.hxx>
26#include <NXOpen/TaggedObject.hxx>
27#include <NXOpen/libnxopencpp_display_exports.hxx>
28#ifdef _MSC_VER
29#pragma warning(push)
30#pragma warning(disable:4996)
31#endif
32#ifdef __GNUC__
33#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
34#endif
35namespace NXOpen
36{
37 namespace Display
38 {
40 }
41 class BasePart;
42 namespace Display
43 {
44 class TrueShading;
45 }
46 namespace Display
47 {
49 }
50 namespace Display
51 {
52 class TrueShadingCollectionImpl;
57 class NXOPENCPP_DISPLAYEXPORT TrueShadingCollection : public NXOpen::TaggedObjectCollection
58 {
59 private: TrueShadingCollectionImpl * m_trueshadingcollection_impl;
60 private: NXOpen::BasePart* m_owner;
62 public: explicit TrueShadingCollection(NXOpen::BasePart *owner);
64 public:
66 tag_t Tag() const;
67 public: ~TrueShadingCollection();
69 //lint -sem(NXOpen::Display::TrueShadingCollection::iterator::copy,initializer)
70 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Display::TrueShading *>
71 {
72 public:
74 iterator() : m_context(nullptr), m_current(NULL_TAG)
75 {
76 // coverity[uninit_member]
77 } //lint !e1401 m_state未初始化
78
79 explicit iterator(NXOpen::Display::TrueShadingCollection *context) : m_context(context), m_current(NULL_TAG)
80 {
81 // coverity[uninit_member]
82 }//lint !e1401 m_state未初始化
84
85 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
86 {
87 copy(other);
88 }
89
90 iterator &operator =(const iterator &other)
91 {
92 if (&other != this)
93 copy(other);
94 return *this;
95 }
96
97 bool operator ==(const iterator &other) const
98 {
99 return m_current == other.m_current && m_context == other.m_context;
100 }
101
102 bool operator !=(const iterator &other) const
103 {
104 return !operator == (other);
105 }
106
107 NXOPENCPP_DISPLAYEXPORT value_type operator * () const;
109 iterator & operator ++()
110 {
111 next();
112 return *this;
113 }
114
115 iterator operator ++(int)
116 {
117 iterator tmp(*this);
118 ++*this;
119 return tmp;
120 }
121 private:
122 void copy(const iterator &other)
123 {
124 m_context = other.m_context;
125 m_current = other.m_current;
126 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
127 m_state[i] = other.m_state[i];
128 }
129 NXOPENCPP_DISPLAYEXPORT void next();
131 tag_t m_current;
132 unsigned int m_state[8];
133 };
134
138 {
139 return iterator(this);
140 }
141
147 (
149 );
159 (
160 const NXString & journalIdentifier
161 );
171 (
172 const char * journalIdentifier
173 );
179 (
180 );
181 }; //lint !e1712 类未定义默认构造函数
182 }
183}
184#ifdef _MSC_VER
185#pragma warning(pop)
186#endif
187#ifdef __GNUC__
188#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
189#pragma GCC diagnostic warning "-Wdeprecated-declarations"
190#endif
191#endif
192#undef EXPORTLIBRARY