NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Routing_OffsetPathCollection.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 布线偏移路径集合JA接口的C++头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Routing_OffsetPathCollection.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/TaggedObject.hxx>
24#include <NXOpen/ugmath.hxx>
25#include <NXOpen/libnxopencpp_routing_exports.hxx>
26#ifdef _MSC_VER
27#pragma warning(push)
28#pragma warning(disable:4996)
29#endif
30#ifdef __GNUC__
31#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
32#endif
33namespace NXOpen
34{
35 namespace Routing
36 {
38 }
39 namespace Routing
40 {
41 class RouteManager;
42 }
43 namespace Routing
44 {
45 class OffsetPath;
46 }
47 namespace Routing
48 {
49 class ISegment;
50 }
51 namespace Routing
52 {
53 class Stock;
54 }
55 namespace Routing
56 {
57 class OffsetPathCollectionImpl;
62 class NXOPENCPP_ROUTINGEXPORT OffsetPathCollection : public NXOpen::TaggedObjectCollection
63 {
71 private: OffsetPathCollectionImpl * m_offsetpathcollection_impl;
72 private: NXOpen::Routing::RouteManager* m_owner;
76 public:
78 tag_t Tag() const;
79 public: ~OffsetPathCollection();
81 //lint -sem(NXOpen::Routing::OffsetPathCollection::iterator::copy,initializer)
82 class iterator : public std::iterator<std::forward_iterator_tag, NXOpen::Routing::OffsetPath *>
83 {
84 public:
86 iterator() : m_context(nullptr), m_current(NULL_TAG)
87 {
88 // coverity[uninit_member]
89 } //lint !e1401 m_state is not initialized
90
91 explicit iterator(NXOpen::Routing::OffsetPathCollection *context) : m_context(context), m_current(NULL_TAG)
92 {
93 // coverity[uninit_member]
94 }//lint !e1401 m_state is not initialized
96
97 iterator(const iterator &other): m_context(nullptr), m_current(NULL_TAG)
98 {
99 copy(other);
100 }
101
102 iterator &operator =(const iterator &other)
103 {
104 if (&other != this)
105 copy(other);
106 return *this;
107 }
108
109 bool operator ==(const iterator &other) const
110 {
111 return m_current == other.m_current && m_context == other.m_context;
112 }
113
114 bool operator !=(const iterator &other) const
115 {
116 return !operator == (other);
117 }
118
119 NXOPENCPP_ROUTINGEXPORT value_type operator * () const;
121 iterator & operator ++()
122 {
123 next();
124 return *this;
125 }
126
127 iterator operator ++(int)
128 {
129 iterator tmp(*this);
130 ++*this;
131 return tmp;
132 }
133 private:
134 void copy(const iterator &other)
135 {
136 m_context = other.m_context;
137 m_current = other.m_current;
138 for (int i = 0; i < sizeof(m_state)/sizeof(m_state[0]); i++)
139 m_state[i] = other.m_state[i];
140 }
141 NXOPENCPP_ROUTINGEXPORT void next();
143 tag_t m_current;
144 unsigned int m_state[8];
145 };
146
150 {
151 return iterator(this);
152 }
153
157 (
158 const std::vector<NXOpen::Routing::ISegment *> & segments ,
159 bool allStock ,
160 const std::vector<NXOpen::Routing::Stock *> & specStocks ,
161 bool maintainStock ,
162 bool copyBendCorners ,
164 bool useMinimumBendRatio ,
165 double minimumBendRatio ,
166 double minimumBendRadius ,
167 bool deleteAllDuplicates ,
168 bool createAssociativePaths ,
169 const NXOpen::Vector3d & patternXVector ,
170 const NXOpen::Vector3d & patternYVector ,
171 const NXOpen::Point3d & patternAxisEndPoint ,
173 double patternStartAngle ,
174 double radialOffset ,
175 int nPaths ,
176 double totalAngle ,
177 std::vector<NXOpen::Routing::OffsetPath *> & slavePathsCreated
178 );
183 (
184 const std::vector<NXOpen::Routing::ISegment *> & segments ,
185 bool allStock ,
186 const std::vector<NXOpen::Routing::Stock *> & specStocks ,
187 bool maintainStock ,
188 bool copyBendCorners ,
190 bool useMinimumBendRatio ,
191 double minimumBendRatio ,
192 double minimumBendRadius ,
193 bool deleteAllDuplicates ,
194 bool createAssociativePaths ,
195 const NXOpen::Vector3d & patternXVector ,
196 const NXOpen::Vector3d & patternYVector ,
197 const NXOpen::Point3d & patternAxisEndPoint ,
199 double patternStartAngle ,
200 double rowOffset ,
201 double columnOffset ,
202 int nRows ,
203 int nColumns ,
204 int masterRow ,
205 int masterColumn ,
206 std::vector<NXOpen::Routing::OffsetPath *> & slavePathsCreated
207 );
217 (
218 NXOpen::Routing::OffsetPath * masterOffsetPath
219 );
220 }; //lint !e1712 default constructor not defined for class
221 }
222}
223#ifdef _MSC_VER
224#pragma warning(pop)
225#endif
226#ifdef __GNUC__
227#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
228#pragma GCC diagnostic warning "-Wdeprecated-declarations"
229#endif
230#endif
231#undef EXPORTLIBRARY