NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Display_PointCloudCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口到JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Display_PointCloudCollection.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_PointCloud.hxx>
24#include <NXOpen/Display_PointCloudBuilder.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 PointCloud;
45 }
46 namespace Display
47 {
49 }
50 namespace Display
51 {
52 class PointCloudCollectionImpl;
56 class NXOPENCPP_DISPLAYEXPORT PointCloudCollection : public NXOpen::TaggedObjectCollection
57 {
58 private: PointCloudCollectionImpl * m_pointcloudcollection_impl;
59 private: NXOpen::BasePart* m_owner;
61 public: explicit PointCloudCollection(NXOpen::BasePart *owner);
63 public:
65 tag_t Tag() const;
66 public: ~PointCloudCollection();
68 //lint -sem(NXOpen::Display::PointCloudCollection::iterator::copy,initializer)
69 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Display::PointCloud *>
70 {
71 public:
73 iterator() : m_context(nullptr), m_current(NULL_TAG)
74 {
75 // coverity[uninit_member]
76 } //lint !e1401 m_state未初始化
77
78 explicit iterator(NXOpen::Display::PointCloudCollection *context) : m_context(context), m_current(NULL_TAG)
79 {
80 // coverity[uninit_member]
81 }//lint !e1401 m_state未初始化
83
84 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
85 {
86 copy(other);
87 }
88
89 iterator &operator =(const iterator &other)
90 {
91 if (&other != this)
92 copy(other);
93 return *this;
94 }
95
96 bool operator ==(const iterator &other) const
97 {
98 return m_current == other.m_current && m_context == other.m_context;
99 }
100
101 bool operator !=(const iterator &other) const
102 {
103 return !operator == (other);
104 }
105
106 NXOPENCPP_DISPLAYEXPORT value_type operator * () const;
108 iterator & operator ++()
109 {
110 next();
111 return *this;
112 }
113
114 iterator operator ++(int)
115 {
116 iterator tmp(*this);
117 ++*this;
118 return tmp;
119 }
120 private:
121 void copy(const iterator &other)
122 {
123 m_context = other.m_context;
124 m_current = other.m_current;
125 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
126 m_state[i] = other.m_state[i];
127 }
128 NXOPENCPP_DISPLAYEXPORT void next();
130 tag_t m_current;
131 unsigned int m_state[8];
132 };
133
137 {
138 return iterator(this);
139 }
140
148 (
149 const NXString & journalIdentifier
150 );
159 (
160 const char * journalIdentifier
161 );
168 (
169 NXOpen::Display::PointCloud * referencePointCloud
170 );
171 }; //lint !e1712 类未定义默认构造函数
172 }
173}
174#ifdef _MSC_VER
175#pragma warning(pop)
176#endif
177#ifdef __GNUC__
178#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
179#pragma GCC diagnostic warning "-Wdeprecated-declarations"
180#endif
181#endif
182#undef EXPORTLIBRARY