NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Routing_Port.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// 用于JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Routing_Port.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成,请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.hxx>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/INXObject.hxx>
22#include <NXOpen/Routing_ICharacteristic.hxx>
23#include <NXOpen/Routing_IRoutePosition.hxx>
24#include <NXOpen/SmartObject.hxx>
25#include <NXOpen/Routing_CharacteristicList.hxx>
26#include <NXOpen/ugmath.hxx>
27#include <NXOpen/libnxopencpp_routing_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 namespace Routing
38 {
39 class Port;
40 }
41 namespace Assemblies
42 {
43 class Component;
44 }
45 class BasePart;
47 class Expression;
48 namespace Features
49 {
50 class WaveRouting;
51 }
52 class INXObject;
53 class NXObject;
54 class Point;
55 namespace Positioning
56 {
57 class Constraint;
58 }
59 namespace Routing
60 {
62 }
63 namespace Routing
64 {
65 class ControlPoint;
66 }
67 namespace Routing
68 {
69 class FeaturePort;
70 }
71 namespace Routing
72 {
73 class ICharacteristic;
74 }
75 namespace Routing
76 {
77 class IRoutePosition;
78 }
79 namespace Routing
80 {
81 class ISegment;
82 }
83 namespace Routing
84 {
85 class PortConnection;
86 }
87 namespace Routing
88 {
89 class Stock;
90 }
91 class SmartObject;
92 namespace Routing
93 {
94 class _PortBuilder;
95 class PortImpl;
100 class NXOPENCPP_ROUTINGEXPORT Port : public NXOpen::SmartObject, public virtual NXOpen::Routing::IRoutePosition
101 {
113
121
129 private: PortImpl * m_port_impl;
130 private: friend class _PortBuilder;
131 protected: Port();
132public: ~Port();
137 (
138 );
143 (
144 );
148 public: double GetClockIncrement
149 (
150 );
154 public: void SetClockIncrement
155 (
156 double increment
157 );
162 (
163 );
167 public: void SetFlowDirection
168 (
170 );
175 (
176 );
181 (
182 );
188 (
189 );
193 public: double GetForwardExtension
194 (
195 );
200 (
201 );
205 public: double BackwardExtension
206 (
207 );
212 (
213 double extension
214 );
219 (
220 );
225 (
226 NXOpen::Expression * backwardExtension
227 );
231 public: double GetEngagement
232 (
233 );
238 (
239 );
243 public: double GetCutbackLength
244 (
245 );
250 (
251 const NXString & name
252 );
257 (
258 const char * name
259 );
264 (
265 const NXString & name
266 );
271 (
272 const char * name
273 );
278 (
279 const NXString & name
280 );
285 (
286 const char * name
287 );
294 (
295 );
302 (
303 bool allowMultipleConnections
304 );
309 (
310 const NXString & name
311 );
316 (
317 const char * name
318 );
323 (
324 const NXString & name ,
325 const NXString & value
326 );
331 (
332 const char * name ,
333 const char * value
334 );
342 (
343 );
347 public: void Disconnect
348 (
349 );
353 public: std::vector<NXOpen::Positioning::Constraint *> LockEngagement
354 (
355 NXOpen::Routing::Port * portToLock
356 );
360 public: std::vector<NXOpen::Positioning::Constraint *> LockRotation
361 (
362 NXOpen::Routing::Port * portToLock
363 );
367 public: void UnlockEngagement
368 (
369 NXOpen::Routing::Port * portToUnlock
370 );
374 public: void UnlockRotation
375 (
376 NXOpen::Routing::Port * portToUnlock
377 );
381 public: bool IsRotationLocked
382 (
383 NXOpen::Routing::Port * portToCheck
384 );
389 (
390 NXOpen::Routing::Port * portToCheck
391 );
396 (
397 );
402 (
403 NXOpen::Expression * increment
404 );
413 (
414 );
421 (
422 );
429 public: void ReorderFeature
430 (
431 );
436 (
437 );
441 public: void GetConnectedPorts
442 (
443 NXOpen::Routing::Port ** connectedPort1 ,
444 NXOpen::Routing::Port ** connectedPort2
445 );
450 (
451 );
458 (
459 );
464 (
465 );
471 (
472 );
476 public: virtual NXOpen::Point3d Position
477 (
478 );
482 public: virtual void SetPosition
483 (
484 const NXOpen::Point3d & position
485 );
490 public: virtual NXOpen::Point * Point
491 (
492 );
497 public: virtual void SetPoint
498 (
499 NXOpen::Point * point
500 );
505 (
506 );
511 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristics2 instead.") virtual void SetCharacteristics
512 (
514 );
518 public: virtual int GetIntegerCharacteristic
519 (
520 const NXString & name
521 );
526 (
527 const char * name
528 );
534 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic
535 (
536 const NXString & name ,
537 int value
538 );
544 virtual void SetCharacteristic
545 (
546 const char * name ,
547 int value
548 );
552 public: virtual double GetRealCharacteristic
553 (
554 const NXString & name
555 );
560 (
561 const char * name
562 );
568 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic
569 (
570 const NXString & name ,
571 double value
572 );
578 virtual void SetCharacteristic
579 (
580 const char * name ,
581 double value
582 );
587 (
588 const NXString & name
589 );
594 (
595 const char * name
596 );
602 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic
603 (
604 const NXString & name ,
606 );
613 virtual void SetCharacteristic
614 (
615 const char * name ,
616 const char * value
617 );
621 public: virtual void DeleteCharacterstics
622 (
624 );
639 (
640 );
653 public: virtual void SetCharacteristic2
654 (
655 const NXString & title ,
656 int value
657 );
671 (
672 const char * title ,
673 int value
674 );
687 public: virtual void SetCharacteristic2
688 (
689 const NXString & title ,
690 double value
691 );
705 (
706 const char * title ,
707 double value
708 );
721 public: virtual void SetCharacteristic2
722 (
723 const NXString & title ,
724 const NXString & value
725 );
739 (
740 const char * title ,
741 const char * value
742 );
755 public: virtual void SetCharacteristics2
756 (
758 );
759 };
760 }
761}
762#ifdef _MSC_VER
763#pragma warning(pop)
764#endif
765#ifdef __GNUC__
766#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
767#pragma GCC diagnostic warning "-Wdeprecated-declarations"
768#endif
769#endif
770#undef EXPORTLIBRARY