NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
CoordinateSystemCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口的JA API头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// CoordinateSystemCollection.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/SmartObject.hxx>
24#include <NXOpen/TaggedObject.hxx>
25#include <NXOpen/ugmath.hxx>
26#include <NXOpen/libnxopencpp_exports.hxx>
27#ifdef _MSC_VER
28#pragma warning(push)
29#pragma warning(disable:4996)
30#endif
31#ifdef __GNUC__
32#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33#endif
34namespace NXOpen
35{
37 class BasePart;
38 class CoordinateSystem;
41 class Direction;
42 class NXMatrix;
43 class Point;
45 class Xform;
46 class CoordinateSystemCollectionImpl;
52 {
53 private: CoordinateSystemCollectionImpl * m_coordinatesystemcollection_impl;
54 private: NXOpen::BasePart* m_owner;
56 public: explicit CoordinateSystemCollection(NXOpen::BasePart *owner);
58 public:
60 tag_t Tag() const;
63 //lint -sem(NXOpen::CoordinateSystemCollection::iterator::copy,initializer)
64 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::CoordinateSystem *>
65 {
66 public:
68 iterator() : m_context(nullptr), m_current(NULL_TAG)
69 {
70 // coverity[uninit_member]
71 } //lint !e1401 m_state未初始化
72
73 explicit iterator(NXOpen::CoordinateSystemCollection *context) : m_context(context), m_current(NULL_TAG)
74 {
75 // coverity[uninit_member]
76 }//lint !e1401 m_state未初始化
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();
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 ,
142 const NXOpen::Matrix3x3 & orientation ,
144 bool isTemporary
145 );
150 (
151 const NXOpen::Point3d & origin ,
153 const NXOpen::Vector3d & xDirection ,
155 const NXOpen::Vector3d & yDirection
157 );
162 (
163 const NXOpen::Point3d & origin ,
165 const NXOpen::Vector3d & xDirection ,
167 const NXOpen::Vector3d & yDirection
169 );
174 (
175 const NXOpen::Point3d & origin ,
177 const NXOpen::Vector3d & xDirection ,
179 const NXOpen::Vector3d & yDirection
181 );
186 (
187 const NXOpen::Point3d & origin ,
189 NXOpen::NXMatrix * orientation ,
190 bool isTemporary
191 );
196 (
197 NXOpen::Xform * xform ,
199 );
204 (
205 const NXOpen::Point3d & origin ,
206 NXOpen::NXMatrix * orientation ,
207 bool isTemporary
208 );
213 (
214 NXOpen::Xform * xform ,
216 );
221 (
222 const NXOpen::Point3d & origin ,
223 NXOpen::NXMatrix * orientation ,
224 bool isTemporary
225 );
230 (
231 NXOpen::Xform * xform ,
233 );
238 (
239 NXOpen::CoordinateSystem * csystem ,
240 NXOpen::Point ** origin ,
241 NXOpen::Direction ** direction1 ,
242 NXOpen::Direction ** direction2
243 );
244 }; //lint !e1712 default constructor not defined for class
245}
246#ifdef _MSC_VER
247#pragma warning(pop)
248#endif
249#ifdef __GNUC__
250#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
251#pragma GCC diagnostic warning "-Wdeprecated-declarations"
252#endif
253#endif
254#undef EXPORTLIBRARY