NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Routing_Stock.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// JA API的C++接口头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Routing_Stock.ja
9//
10// 生成工具:
11// apiwrap
12//
13// 警告:
14// 此文件为自动生成,请勿手动编辑
15//
16#pragma once
17#include <NXOpen/NXDeprecation.hxx>
18#include <vector>
19#include <NXOpen/NXString.h>
20#include <NXOpen/Callback.hxx>
21#include <NXOpen/INXObject.hxx>
22#include <NXOpen/NXObject.hxx>
23#include <NXOpen/Routing_ICharacteristic.hxx>
24#include <NXOpen/Routing_CharacteristicList.hxx>
25#include <NXOpen/Routing_StockData.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 Stock;
40 }
41 namespace Assemblies
42 {
43 class Component;
44 }
45 class BasePart;
46 class Body;
47 class Curve;
48 namespace Features
49 {
50 class Feature;
51 }
52 class INXObject;
53 class NXObject;
54 namespace Routing
55 {
56 class Anchor;
57 }
58 namespace Routing
59 {
61 }
62 namespace Routing
63 {
64 class CrossSection;
65 }
66 namespace Routing
67 {
68 namespace Electrical
69 {
70 class Connection;
71 }
72 }
73 namespace Routing
74 {
75 namespace Electrical
76 {
77 class HarnessDevice;
78 }
79 }
80 namespace Routing
81 {
82 class ICharacteristic;
83 }
84 namespace Routing
85 {
86 class StockData;
87 }
88 namespace Routing
89 {
90 class StockPort;
91 }
92 namespace Routing
93 {
94 class Wire;
95 }
96 namespace Routing
97 {
104
110
119
125 }
126namespace Routing
127 {
128 class _StockBuilder;
129 class StockImpl;
158 class NXOPENCPP_ROUTINGEXPORT Stock : public NXOpen::NXObject, public virtual NXOpen::Routing::ICharacteristic
159 {
160 private: StockImpl * m_stock_impl;
161 private: friend class _StockBuilder;
162 protected: Stock();
163 public: ~Stock();
168 (
169 );
175 public: void SetStockData
176 (
177 NXOpen::Routing::StockData * stockData
178 );
183 (
184 );
191 public: void SetCrossSection
192 (
193 NXOpen::Routing::CrossSection * crossSection
194 );
199 (
200 );
206 public: void SetAnchor
207 (
209 );
214 (
215 );
220 public: void SetStockStyle
221 (
223 );
227 public: std::vector<NXOpen::Curve *> GetSegments
228 (
229 );
233 public: void AddSegments
234 (
235 const std::vector<NXOpen::Curve *> & segments
236 );
241 public: void RemoveSegments
242 (
243 const std::vector<NXOpen::Curve *> & segments
244 );
248 public: double GetRotationAngle
249 (
250 );
254 public: void SetRotationAngle
255 (
256 double rotationAngle
257 );
261 public: double GetTwistAngle
262 (
263 );
267 public: void SetTwistAngle
268 (
269 double twistAngle
270 );
275 (
276 );
280 public: void SetProfileEnd
281 (
283 );
288 (
289 );
293 public: void SetFlippedStatus
294 (
295 NXOpen::Routing::Flip flipped
296 );
300 public: void GetPorts
301 (
302 NXOpen::Routing::StockPort ** startPort ,
304 );
309 (
310 );
316 public: std::vector<NXOpen::Features::Feature *> GetFeatures
317 (
318 );
325 (
326 );
332 (
333 );
339 public: double GetOriginalLength
340 (
341 );
346 public: void ColorBodies
347 (
348 );
353 (
354 bool isNewPart
355 );
359 public: bool NegateOffsetsFlag
360 (
361 );
366 (
367 bool offsetFlag
368 );
372 public: void AlignStock
373 (
374 const NXOpen::Vector3d & vector
375 );
380 (
381 const NXString & partName
382 );
387 (
388 const char * partName
389 );
395 public: std::vector<NXOpen::Body *> GetBodies
396 (
397 );
404 (
405 );
410 (
411 );
419 public: void GetBodySegmentMap
420 (
421 NXOpen::Features::Feature * feature ,
422 NXOpen::Body ** body ,
423 std::vector<NXOpen::Curve *> & stockSegments ,
424 std::vector<NXOpen::Curve *> & pathSegments
425 );
430 (
431 );
436 (
437 );
441 public: bool IsStockEqual
442 (
443 NXOpen::Routing::Stock * otherStock
444 );
448 public: std::vector<NXOpen::Routing::Electrical::Connection *> GetConnections
449 (
450 );
454 public: std::vector<NXOpen::Routing::Wire *> GetWires
455 (
456 );
460 public: double Diameter
461 (
462 );
466 public: void Highlight
467 (
468 );
472 public: void Unhighlight
473 (
474 );
479 (
480 );
485 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristics2 instead.") virtual void SetCharacteristics
486 (
488 );
492 public: virtual int GetIntegerCharacteristic
493 (
494 const NXString & name
495 );
500 (
501 const char * name
502 );
509 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic
510 (
511 const NXString & name ,
512 int value
513 );
520 virtual void SetCharacteristic
521 (
522 const char * name ,
523 int value
524 );
528 public: virtual double GetRealCharacteristic
529 (
530 const NXString & name
531 );
536 (
537 const char * name
538 );
545 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic
546 (
547 const NXString & name ,
548 double value
549 );
556 virtual void SetCharacteristic
557 (
558 const char * name ,
559 double value
560 );
565 (
566 const NXString & name
567 );
572 (
573 const char * name
574 );
581 public: NX_DEPRECATED("Deprecated in NX11.0.0. Use NXOpen::Routing::ICharacteristic::SetCharacteristic2 instead.") virtual void SetCharacteristic
582 (
583 const NXString & name ,
585 );
592 virtual void SetCharacteristic
593 (
594 const char * name ,
595 const char * value
596 );
600 public: virtual void DeleteCharacterstics
601 (
603 );
617 (
618 );
631 public: virtual void SetCharacteristic2
632 (
633 const NXString & title ,
634 int value
635 );
649 (
650 const char * title ,
651 int value
652 );
665 public: virtual void SetCharacteristic2
666 (
667 const NXString & title ,
668 double value
669 );
683 (
684 const char * title ,
685 double value
686 );
699 public: virtual void SetCharacteristic2
700 (
701 const NXString & title ,
702 const NXString & value
703 );
717 (
718 const char * title ,
719 const char * value
720 );
733 public: virtual void SetCharacteristics2
734 (
736 );
737 };
738 }
739}
740#ifdef _MSC_VER
741#pragma warning(pop)
742#endif
743#ifdef __GNUC__
744#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
745#pragma GCC diagnostic warning "-Wdeprecated-declarations"
746#endif
747#endif
748#undef EXPORTLIBRARY