NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
PlaneCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// PlaneCollection.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/PlaneTypes.hxx>
24#include <NXOpen/SmartObject.hxx>
25#include <NXOpen/TaggedObject.hxx>
26#include <NXOpen/ugmath.hxx>
27#include <NXOpen/libnxopencpp_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 class PlaneCollection;
38 class BasePart;
39 class Plane;
40 namespace Features
41 {
42 class Feature;
43 }
44 class NXObject;
45 class PlaneCollectionImpl;
51 class NXOPENCPPEXPORT PlaneCollection : public NXOpen::TaggedObjectCollection
52 {
53 private: PlaneCollectionImpl * m_planecollection_impl;
54 private: NXOpen::BasePart* m_owner;
56 public: explicit PlaneCollection(NXOpen::BasePart *owner);
58 public:
60 tag_t Tag() const;
61 public: ~PlaneCollection();
63 //lint -sem(NXOpen::PlaneCollection::iterator::copy,initializer)
64 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Plane *>
65 {
66 public:
68 iterator() : m_context(nullptr), m_current(NULL_TAG)
69 {
70 // coverity[uninit_member]
71 } //lint !e1401 m_state is not initialized
72
73 explicit iterator(NXOpen::PlaneCollection *context) : m_context(context), m_current(NULL_TAG)
74 {
75 // coverity[uninit_member]
76 }//lint !e1401 m_state is not initialized
78
79 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
80 {
81 copy(other);
82 }
83
84 iterator &operator =(const iterator &other)
85 {
86 if (&other != this)
87 copy(other);
88 return *this;
89 }
90
91 bool operator ==(const iterator &other) const
92 {
93 return m_current == other.m_current && m_context == other.m_context;
94 }
95
96 bool operator !=(const iterator &other) const
97 {
98 return !operator == (other);
99 }
100
101 NXOPENCPPEXPORT value_type operator * () const;
103 iterator & operator ++()
104 {
105 next();
106 return *this;
107 }
108
109 iterator operator ++(int)
110 {
111 iterator tmp(*this);
112 ++*this;
113 return tmp;
114 }
115 private:
116 void copy(const iterator &other)
117 {
118 m_context = other.m_context;
119 m_current = other.m_current;
120 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
121 m_state[i] = other.m_state[i];
122 }
123 NXOPENCPPEXPORT void next();
124 NXOpen::PlaneCollection *m_context;
125 tag_t m_current;
126 unsigned int m_state[8];
127 };
128
132 {
133 return iterator(this);
134 }
135
139 (
140 const NXOpen::Point3d & origin ,
141 const NXOpen::Vector3d & normal ,
143 );
148 (
150 );
155 (
158 const NXOpen::Point3d & origin ,
159 const NXOpen::Vector3d & normal ,
160 const NXString & expression ,
161 bool flip ,
162 bool percent ,
163 const std::vector<NXOpen::NXObject *> & geometry
164 );
169 (
172 const NXOpen::Point3d & origin ,
173 const NXOpen::Vector3d & normal ,
174 const char * expression ,
175 bool flip ,
176 bool percent ,
177 const std::vector<NXOpen::NXObject *> & geometry
178 );
183 (
184 const NXOpen::Point3d & origin ,
185 const NXOpen::Matrix3x3 & matrix
186 );
191 (
192 const NXOpen::Point3d & origin ,
193 const NXOpen::Matrix3x3 & matrix ,
194 bool show
195 );
200 (
201 const NXOpen::Point3d & origin ,
202 const NXOpen::Matrix3x3 & matrix ,
204 );
205 }; //lint !e1712 default constructor not defined for class
206}
207#ifdef _MSC_VER
208#pragma warning(pop)
209#endif
210#ifdef __GNUC__
211#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
212#pragma GCC diagnostic warning "-Wdeprecated-declarations"
213#endif
214#endif
215#undef EXPORTLIBRARY