NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Display_ImageDataCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Display_ImageDataCollection.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/TaggedObjectCollection.hxx>
23#include <NXOpen/TaggedObject.hxx>
24#include <NXOpen/libnxopencpp_display_exports.hxx>
25#ifdef _MSC_VER
26#pragma warning(push)
27#pragma warning(disable:4996)
28#endif
29#ifdef __GNUC__
30#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
31#endif
32namespace NXOpen
33{
34 namespace Display
35 {
37 }
38 class BasePart;
39 namespace Display
40 {
41 class ImageData;
42 }
43 namespace Display
44 {
45 class ImageDataCollectionImpl;
50 class NXOPENCPP_DISPLAYEXPORT ImageDataCollection : public NXOpen::TaggedObjectCollection
51 {
52 private: ImageDataCollectionImpl * m_imagedatacollection_impl;
53 private: NXOpen::BasePart* m_owner;
55 public: explicit ImageDataCollection(NXOpen::BasePart *owner);
57 public:
59 tag_t Tag() const;
60 public: ~ImageDataCollection();
62 //lint -sem(NXOpen::Display::ImageDataCollection::iterator::copy,initializer)
63 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Display::ImageData *>
64 {
65 public:
67 iterator() : m_context(nullptr), m_current(NULL_TAG)
68 {
69 // coverity[uninit_member]
70 } //lint !e1401 m_state未初始化
71
72 explicit iterator(NXOpen::Display::ImageDataCollection *context) : m_context(context), m_current(NULL_TAG)
73 {
74 // coverity[uninit_member]
75 }//lint !e1401 m_state未初始化
77
78 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
79 {
80 copy(other);
81 }
82
83 iterator &operator =(const iterator &other)
84 {
85 if (&other != this)
86 copy(other);
87 return *this;
88 }
89
90 bool operator ==(const iterator &other) const
91 {
92 return m_current == other.m_current && m_context == other.m_context;
93 }
94
95 bool operator !=(const iterator &other) const
96 {
97 return !operator == (other);
98 }
99
100 NXOPENCPP_DISPLAYEXPORT value_type operator * () const;
102 iterator & operator ++()
103 {
104 next();
105 return *this;
106 }
107
108 iterator operator ++(int)
109 {
110 iterator tmp(*this);
111 ++*this;
112 return tmp;
113 }
114 private:
115 void copy(const iterator &other)
116 {
117 m_context = other.m_context;
118 m_current = other.m_current;
119 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
120 m_state[i] = other.m_state[i];
121 }
122 NXOPENCPP_DISPLAYEXPORT void next();
124 tag_t m_current;
125 unsigned int m_state[8];
126 };
127
131 {
132 return iterator(this);
133 }
134
142 (
143 const NXString & journalIdentifier
144 );
153 (
154 const char * journalIdentifier
155 );
156 }; //lint !e1712 类未定义默认构造函数
157 }
158}
159#ifdef _MSC_VER
160#pragma warning(pop)
161#endif
162#ifdef __GNUC__
163#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
164#pragma GCC diagnostic warning "-Wdeprecated-declarations"
165#endif
166#endif
167#undef EXPORTLIBRARY