NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
TracelineCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// Header for C++ interface to JA API
5//--------------------------------------------------------------------------
6//
7// Source File:
8// TracelineCollection.ja
9//
10// Generated by:
11// apiwrap
12//
13// WARNING:
14// This file is automatically generated - do not edit by hand
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/AutomaticTraceline.hxx>
23#include <NXOpen/TaggedObjectCollection.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 Part;
38 class Traceline;
39 namespace Assemblies
40 {
41 class Explosion;
42 }
44 class Direction;
45 class Point;
46 class TracelineCollectionImpl;
49 {
50 private: TracelineCollectionImpl * m_tracelinecollection_impl;
51 private: NXOpen::Part* m_owner;
53 public: explicit TracelineCollection(NXOpen::Part *owner);
55 public:
57 tag_t Tag() const;
58 public: ~TracelineCollection();
60 //lint -sem(NXOpen::TracelineCollection::iterator::copy,initializer)
61 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Traceline *>
62 {
63 public:
65 iterator() : m_context(nullptr), m_current(NULL_TAG)
66 {
67 // coverity[uninit_member]
68 } //lint !e1401 m_state is not initialized
69
70 explicit iterator(NXOpen::TracelineCollection *context) : m_context(context), m_current(NULL_TAG)
71 {
72 // coverity[uninit_member]
73 }//lint !e1401 m_state is not initialized
75
76 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
77 {
78 copy(other);
79 }
80
81 iterator &operator =(const iterator &other)
82 {
83 if (&other != this)
84 copy(other);
85 return *this;
86 }
87
88 bool operator ==(const iterator &other) const
89 {
90 return m_current == other.m_current && m_context == other.m_context;
91 }
92
93 bool operator !=(const iterator &other) const
94 {
95 return !operator == (other);
96 }
97
98 NXOPENCPPEXPORT value_type operator * () const;
100 iterator & operator ++()
101 {
102 next();
103 return *this;
104 }
105
106 iterator operator ++(int)
107 {
108 iterator tmp(*this);
109 ++*this;
110 return tmp;
111 }
112 private:
113 void copy(const iterator &other)
114 {
115 m_context = other.m_context;
116 m_current = other.m_current;
117 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
118 m_state[i] = other.m_state[i];
119 }
120 NXOPENCPPEXPORT void next();
122 tag_t m_current;
123 unsigned int m_state[8];
124 };
125
129 {
130 return iterator(this);
131 }
132
134 (
136 NXOpen::Point * startPoint ,
137 NXOpen::Direction * startDirection ,
138 NXOpen::Point * endPoint ,
139 NXOpen::Direction * endDirection ,
140 const NXOpen::Matrix3x3 & orientation ,
142 int solution ,
143 double startOffset ,
144 double endOffset ,
145 const std::vector<int> & segmentIndices ,
146 const std::vector<double> & segmentLengths
147 );
148 }; //lint !e1712 default constructor not defined for class
149}
150#ifdef _MSC_VER
151#pragma warning(pop)
152#endif
153#ifdef __GNUC__
154#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
155#pragma GCC diagnostic warning "-Wdeprecated-declarations"
156#endif
157#endif
158#undef EXPORTLIBRARY