NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Annotations_NoteCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口访问JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Annotations_NoteCollection.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/Annotations_NoteData.hxx>
23#include <NXOpen/Annotations_PmiData.hxx>
24#include <NXOpen/TaggedObjectCollection.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/ugmath.hxx>
27#include <NXOpen/libnxopencpp_annotations_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 Annotations
38 {
39 class NoteCollection;
40 }
41 class Part;
42 namespace Annotations
43 {
44 class BaseNote;
45 }
46 namespace Annotations
47 {
48 class NoteData;
49 }
50 namespace Annotations
51 {
52 class PmiData;
53 }
54 namespace Annotations
55 {
56 class PmiNote;
57 }
58 class Xform;
59 namespace Annotations
60 {
61 class NoteCollectionImpl;
65 class NXOPENCPP_ANNOTATIONSEXPORT NoteCollection : public NXOpen::TaggedObjectCollection
66 {
67 private: NoteCollectionImpl * m_notecollection_impl;
68 private: NXOpen::Part* m_owner;
70 public: explicit NoteCollection(NXOpen::Part *owner);
72 public:
74 tag_t Tag() const;
75 public: ~NoteCollection();
77 //lint -sem(NXOpen::Annotations::NoteCollection::iterator::copy,initializer)
78 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Annotations::BaseNote *>
79 {
80 public:
82 iterator() : m_context(nullptr), m_current(NULL_TAG)
83 {
84 // coverity[uninit_member]
85 } //lint !e1401 m_state is not initialized
86
87 explicit iterator(NXOpen::Annotations::NoteCollection *context) : m_context(context), m_current(NULL_TAG)
88 {
89 // coverity[uninit_member]
90 }//lint !e1401 m_state is not initialized
92
93 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
94 {
95 copy(other);
96 }
97
98 iterator &operator =(const iterator &other)
99 {
100 if (&other != this)
101 copy(other);
102 return *this;
103 }
104
105 bool operator ==(const iterator &other) const
106 {
107 return m_current == other.m_current && m_context == other.m_context;
108 }
109
110 bool operator !=(const iterator &other) const
111 {
112 return !operator == (other);
113 }
114
115 NXOPENCPP_ANNOTATIONSEXPORT value_type operator * () const;
117 iterator & operator ++()
118 {
119 next();
120 return *this;
121 }
122
123 iterator operator ++(int)
124 {
125 iterator tmp(*this);
126 ++*this;
127 return tmp;
128 }
129 private:
130 void copy(const iterator &other)
131 {
132 m_context = other.m_context;
133 m_current = other.m_current;
134 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
135 m_state[i] = other.m_state[i];
136 }
137 NXOPENCPP_ANNOTATIONSEXPORT void next();
139 tag_t m_current;
140 unsigned int m_state[8];
141 };
142
146 {
147 return iterator(this);
148 }
149
153 (
154 );
159 (
162 NXOpen::Xform * annotationPlane ,
163 const NXOpen::Point3d & origin
164 );
165 }; //lint !e1712 default constructor not defined for class
166 }
167}
168#ifdef _MSC_VER
169#pragma warning(pop)
170#endif
171#ifdef __GNUC__
172#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
173#pragma GCC diagnostic warning "-Wdeprecated-declarations"
174#endif
175#endif
176#undef EXPORTLIBRARY