NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Routing_PortConnection.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// JA API的C++接口头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Routing_PortConnection.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/NXObject.hxx>
22
#include <NXOpen/libnxopencpp_routing_exports.hxx>
23
#ifdef _MSC_VER
24
#pragma warning(push)
25
#pragma warning(disable:4996)
26
#endif
27
#ifdef __GNUC__
28
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
29
#endif
30
namespace
NXOpen
31
{
32
namespace
Routing
33
{
34
class
PortConnection
;
35
}
36
class
NXObject
;
37
namespace
Routing
38
{
39
class
Port
;
40
}
41
namespace
Routing
42
{
43
class
_PortConnectionBuilder;
44
class
PortConnectionImpl;
49
class
NXOPENCPP_ROUTINGEXPORT PortConnection :
public
NXOpen::NXObject
50
{
52
public
:
enum
OverriddenValidity
53
{
54
OverriddenValidityNone
,
55
OverriddenValidityValid
,
56
OverriddenValidityInvalid
57
};
58
private
:
PortConnectionImpl
* m_portconnection_impl;
59
private
:
friend
class
_PortConnectionBuilder;
60
protected
:
PortConnection
();
61
public
:
~PortConnection
();
65
public
:
void
GetPorts
66
(
67
NXOpen::Routing::Port
** port1 ,
68
NXOpen::Routing::Port
** port2
69
);
73
public
:
void
SetPorts
74
(
75
NXOpen::Routing::Port
* port1 ,
76
NXOpen::Routing::Port
* port2
77
);
82
public
:
double
GetEngagement
83
(
84
);
88
public
:
void
SetEngagement
89
(
90
double
engagement
91
);
96
public
:
bool
IsValid
97
(
98
);
103
public
:
bool
ArePortsAligned
104
(
105
);
109
public
:
void
OverrideValidity
110
(
111
NXOpen::Routing::PortConnection::OverriddenValidity
overriddenValidity
112
);
117
public
:
NXString
GetOverrideReason
118
(
119
);
123
public
:
void
SetOverrideReason
124
(
125
const
NXString
& reason
126
);
130
void
SetOverrideReason
131
(
132
const
char
* reason
133
);
138
public
:
NXOpen::Routing::PortConnection::OverriddenValidity
GetOverriddenValidity
139
(
140
);
145
public
:
void
ForceValid
146
(
147
const
NXString
& reason
148
);
153
void
ForceValid
154
(
155
const
char
* reason
156
);
160
public
:
void
RemoveForcedValidity
161
(
162
);
167
public
:
bool
IsForcedValid
168
(
169
);
170
};
171
}
172
}
173
#ifdef _MSC_VER
174
#pragma warning(pop)
175
#endif
176
#ifdef __GNUC__
177
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
178
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
179
#endif
180
#endif
181
#undef EXPORTLIBRARY