NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
PointCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// PointCollection.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/type.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 PointCollection;
38 class BasePart;
39 class Point;
40 namespace Annotations
41 {
42 class Annotation;
43 }
44 namespace CAE
45 {
46 class CAEFace;
47 }
49 class CoordinateSystem;
50 class Direction;
51 class Expression;
52 class IBaseCurve;
53 class IBasePlane;
55 class ISurface;
56 class Offset;
57 namespace Routing
58 {
59 class IRoutePosition;
60 }
61 namespace Routing
62 {
63 class Port;
64 }
65 class ScCollector;
66 class Scalar;
67 class TaggedObject;
68 class View;
69 class Xform;
70 class PointCollectionImpl;
76 class NXOPENCPPEXPORT PointCollection : public NXOpen::TaggedObjectCollection
77 {
87
98
104
110
116 private: PointCollectionImpl * m_pointcollection_impl;
117 private: NXOpen::BasePart* m_owner;
119 public: explicit PointCollection(NXOpen::BasePart *owner);
121 public:
123 tag_t Tag() const;
124 public: ~PointCollection();
126 //lint -sem(NXOpen::PointCollection::iterator::copy,initializer)
127 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Point *>
128 {
129 public:
131 iterator() : m_context(nullptr), m_current(NULL_TAG)
132 {
133 // coverity[uninit_member]
134 } //lint !e1401 m_state is not initialized
135
136 explicit iterator(NXOpen::PointCollection *context) : m_context(context), m_current(NULL_TAG)
137 {
138 // coverity[uninit_member]
139 }//lint !e1401 m_state is not initialized
141
142 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
143 {
144 copy(other);
145 }
146
147 iterator &operator =(const iterator &other)
148 {
149 if (&other != this)
150 copy(other);
151 return *this;
152 }
153
154 bool operator ==(const iterator &other) const
155 {
156 return m_current == other.m_current && m_context == other.m_context;
157 }
158
159 bool operator !=(const iterator &other) const
160 {
161 return !operator == (other);
162 }
163
164 NXOPENCPPEXPORT value_type operator * () const;
166 iterator & operator ++()
167 {
168 next();
169 return *this;
170 }
171
172 iterator operator ++(int)
173 {
174 iterator tmp(*this);
175 ++*this;
176 return tmp;
177 }
178 private:
179 void copy(const iterator &other)
180 {
181 m_context = other.m_context;
182 m_current = other.m_current;
183 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
184 m_state[i] = other.m_state[i];
185 }
186 NXOPENCPPEXPORT void next();
187 NXOpen::PointCollection *m_context;
188 tag_t m_current;
189 unsigned int m_state[8];
190 };
191
195 {
196 return iterator(this);
197 }
198
204 (
205 const NXOpen::Point3d & coordinates
206 );
213 (
214 NXOpen::Offset * offset ,
215 NXOpen::Point * offsetPoint ,
217 );
224 (
226 NXOpen::Scalar * scalarU ,
227 NXOpen::Scalar * scalarV ,
229 );
236 (
237 NXOpen::View * view ,
238 NXOpen::IBaseCurve * edgeCurve1 ,
239 NXOpen::IBaseCurve * edgeCurve2 ,
240 const NXOpen::Point3d & helpPt ,
242 );
249 (
250 NXOpen::IBaseCurve * edgeCurve ,
251 NXOpen::Scalar * scalarT ,
253 );
260 (
261 NXOpen::IBaseCurve * edgeCurve ,
262 NXOpen::Scalar * scalarT ,
265 );
272 (
273 NXOpen::IBaseCurve * edgeCurve ,
274 NXOpen::Scalar * scalarT ,
276 bool useReverseParameter
277 );
284 (
285 NXOpen::IBaseCurve * edgeCurve ,
286 NXOpen::Point * pointOffset ,
287 NXOpen::Scalar * distancePercent ,
289 NXOpen::Sense sense ,
291 );
298 (
299 NXOpen::Scalar * scalarX ,
300 NXOpen::Scalar * scalarY ,
301 NXOpen::Scalar * scalarZ ,
303 );
310 (
311 NXOpen::Point * pointExtract ,
312 NXOpen::Xform * xform ,
314 );
321 (
322 NXOpen::IBaseCurve * edgeCurve ,
323 NXOpen::Scalar * angle ,
324 NXOpen::Xform * xform ,
326 );
333 (
334 NXOpen::IBaseCurve * edgeCurve ,
336 );
343 (
344 NXOpen::IBaseCurve * curve1 ,
345 NXOpen::IBaseCurve * curve2 ,
346 NXOpen::Point * helpPt1 ,
347 NXOpen::Point * helpPt2 ,
349 );
356 (
357 NXOpen::IBaseCurve * curve1 ,
358 NXOpen::IBaseCurve * curve2 ,
359 const NXOpen::Point3d & startPoint ,
360 NXOpen::View * view ,
362 );
369 (
371 NXOpen::IBaseCurve * curve ,
372 NXOpen::Point * helpPt1 ,
373 NXOpen::Point * helpPt2 ,
375 );
382 (
383 NXOpen::IBasePlane * plane ,
384 NXOpen::IBaseCurve * curve ,
385 NXOpen::Point * helpPt1 ,
386 NXOpen::Point * helpPt2 ,
388 );
395 (
396 NXOpen::IParameterizedSurface * sphericalFace ,
398 );
405 (
406 NXOpen::Routing::IRoutePosition * routePosition ,
407 NXOpen::Xform * xform ,
409 );
417 (
418 const NXString & journalIdentifier
419 );
427 (
428 const char * journalIdentifier
429 );
436 (
438 NXOpen::Scalar * scalarX ,
439 NXOpen::Scalar * scalarY ,
440 NXOpen::Scalar * scalarZ ,
442 );
450 (
451 NXOpen::Point * point1 ,
452 NXOpen::Point * point2 ,
453 NXOpen::Scalar * distancePercentage ,
455 );
462 (
463 NXOpen::IBaseCurve * curve1 ,
464 NXOpen::IBaseCurve * curve2 ,
465 NXOpen::Point * helpPt1 ,
466 NXOpen::Point * helpPt2 ,
468 );
475 (
476 NXOpen::Expression * exp ,
478 );
485 (
486 NXOpen::Point * basePoint ,
487 NXOpen::Direction * offsetDirr ,
488 const NXString & offsetExpression ,
490 );
497 (
498 NXOpen::Point * basePoint ,
499 NXOpen::Direction * offsetDirr ,
500 const char * offsetExpression ,
502 );
509 (
510 NXOpen::Point * basePoint ,
511 NXOpen::Direction * offsetDirr ,
512 const NXString & offsetExpression ,
514 );
523 (
524 NXOpen::Point * basePoint ,
525 NXOpen::Direction * offsetDirr ,
526 const char * offsetExpression ,
528 );
536 (
538 NXOpen::Routing::Port * port ,
539 NXOpen::Scalar * distance
540 );
546 (
547 NXOpen::TaggedObject * face ,
548 NXOpen::Scalar * parameter ,
550 );
557 (
558 NXOpen::CAE::CAEFace * face ,
559 NXOpen::Point * projectedPoint ,
561 );
566 (
567 NXOpen::IBaseCurve * curveOrEdge ,
568 int quadrant ,
570 );
578 (
581 );
586 public: void DeletePoint
587 (
588 NXOpen::Point * point
589 );
594 public: void RemoveParameters
595 (
596 NXOpen::Point * point
597 );
604 (
605 NXOpen::ScCollector * faces ,
606 NXOpen::IBaseCurve * curve ,
607 NXOpen::Point * helpPt1 ,
608 NXOpen::Point * helpPt2 ,
610 );
616 (
619 NXOpen::Scalar * t ,
620 int side ,
621 int block ,
622 bool attachFcfToDim
623 );
630 (
631 NXOpen::IBaseCurve * splarc ,
632 NXOpen::View * view
633 );
640 (
641 NXOpen::IBaseCurve * splineCurve ,
642 int poleIndex ,
644 );
651 (
652 NXOpen::IBaseCurve * splarc ,
653 NXOpen::View * view
654 );
661 (
662 NXOpen::IBaseCurve * splineCurve ,
663 int definingPointIndex ,
665 );
672 (
673 NXOpen::IBaseCurve * edgeCurve ,
674 NXOpen::Scalar * scalarT ,
676 NXOpen::Point * specifiedPoint ,
678 );
683 (
685 NXOpen::CoordinateSystem * smartCsys
686 );
693 (
695 int uIndex ,
696 int vIndex ,
698 );
705 (
706 NXOpen::IBaseCurve * curve ,
708 );
715 (
717 NXOpen::IBasePlane * xPlane ,
718 NXOpen::IBasePlane * yPlane ,
719 NXOpen::IBasePlane * zPlane ,
723 NXOpen::Scalar * xDistance ,
724 NXOpen::Scalar * yDistance ,
725 NXOpen::Scalar * zDistance
726 );
727 }; //lint !e1712 default constructor not defined for class
728}
729#ifdef _MSC_VER
730#pragma warning(pop)
731#endif
732#ifdef __GNUC__
733#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
734#pragma GCC diagnostic warning "-Wdeprecated-declarations"
735#endif
736#endif
737#undef EXPORTLIBRARY