NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Positioning_Network.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// JA API的C++接口头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Positioning_Network.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/ugmath.hxx>
23
#include <NXOpen/libnxopencpp_positioning_exports.hxx>
24
#ifdef _MSC_VER
25
#pragma warning(push)
26
#pragma warning(disable:4996)
27
#endif
28
#ifdef __GNUC__
29
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
30
#endif
31
namespace
NXOpen
32
{
33
namespace
Positioning
34
{
35
class
Network
;
36
}
37
namespace
Assemblies
38
{
39
class
Component
;
40
}
41
class
NXObject
;
42
namespace
Positioning
43
{
44
class
Constraint
;
45
}
46
namespace
Positioning
47
{
48
class
_NetworkBuilder;
49
class
NetworkImpl;
56
class
NXOPENCPP_POSITIONINGEXPORT Network :
public
NXOpen::NXObject
57
{
59
public
:
enum
ObjectStatus
60
{
61
ObjectStatusUnknown
,
62
ObjectStatusFixed
,
63
ObjectStatusOverDefined
,
64
ObjectStatusNotConsistentDims
,
65
ObjectStatusNotConsistentOther
,
66
ObjectStatusNotConsistentUnknown
,
67
ObjectStatusNotChanged
,
68
ObjectStatusWellDefined
,
69
ObjectStatusUnderDefined
70
};
71
private
:
NetworkImpl
* m_network_impl;
72
private
:
friend
class
_NetworkBuilder;
73
protected
:
Network
();
74
public
:
~Network
();
79
public
:
void
AddConstraint
80
(
81
NXOpen::Positioning::Constraint
* constraint
82
);
88
public
:
void
RemoveConstraint
89
(
90
NXOpen::Positioning::Constraint
* constraint
91
);
97
public
:
void
RemoveAllConstraints
98
(
99
);
107
public
:
void
AddMovableObject
108
(
109
NXOpen::NXObject
* movableObject
110
);
119
public
:
void
RemoveMovableObject
120
(
121
NXOpen::NXObject
* movableObject
122
);
128
public
:
void
ApplyToModel
129
(
130
);
135
public
:
void
Solve
136
(
137
);
143
public
:
void
SetMoveObjectsState
144
(
145
bool
moveObjectsState
146
);
152
public
:
bool
MoveObjectsState
153
(
154
);
159
public
:
void
ResetDisplay
160
(
161
);
167
public
:
NXOpen::Positioning::Network::ObjectStatus
GetMovableObjectStatus
168
(
169
NXOpen::NXObject
* movableObject
170
);
177
public
:
NXOpen::Assemblies::Component
*
DisplayComponent
178
(
179
);
185
public
:
void
SetDisplayComponent
186
(
187
NXOpen::Assemblies::Component
* displayComponent
188
);
199
public
:
void
BeginDrag
200
(
201
);
203
206
public
:
void
BeginLinearDrag
207
(
208
const
NXOpen::Point3d
& point ,
209
const
NXOpen::Vector3d
& direction
210
);
213
216
public
:
void
BeginRotateDrag
217
(
218
const
NXOpen::Point3d
& point ,
219
const
NXOpen::Vector3d
& direction
220
);
222
233
public
:
void
DragByRay
234
(
235
const
NXOpen::Point3d
& point ,
236
const
NXOpen::Vector3d
& direction
237
);
248
public
:
void
DragByTransform
249
(
250
const
NXOpen::Vector3d
& translation ,
251
const
NXOpen::Matrix3x3
& rotation
252
);
254
257
public
:
void
StepLinearDrag
258
(
259
double
distance
260
);
263
266
public
:
void
StepRotateDrag
267
(
268
double
angle
269
);
271
280
public
:
void
DragByTranslation
281
(
282
const
NXOpen::Vector3d
& translation
283
);
291
public
:
void
EndDrag
292
(
293
);
299
public
:
void
SetMovingGroup
300
(
301
const
std::vector<NXOpen::NXObject *> & movableObjects
302
);
304
307
public
:
void
SetMovingGroupWithGeometries
308
(
309
const
std::vector<NXOpen::NXObject *> & movableObjects ,
310
const
std::vector<NXOpen::NXObject *> & draggableGeometries
311
);
313
318
public
:
void
EmptyMovingGroup
319
(
320
);
326
public
:
void
SetNonMovingGroupGrounded
327
(
328
bool
ground
329
);
335
public
:
bool
NonMovingGroupGrounded
336
(
337
);
342
public
:
bool
IsReferencedGeometryLoaded
343
(
344
);
350
public
:
void
LoadReferencedGeometry
351
(
352
);
353
};
354
}
355
}
356
#ifdef _MSC_VER
357
#pragma warning(pop)
358
#endif
359
#ifdef __GNUC__
360
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
361
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
362
#endif
363
#endif
364
#undef EXPORTLIBRARY