NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
Motion_PostProcess.hxx
1
//--------------------------------------------------------------------------
2
// Copyright 2024 Siemens
3
//--------------------------------------------------------------------------
4
// JA API的C++接口头文件
5
//--------------------------------------------------------------------------
6
//
7
// 源文件:
8
// Motion_PostProcess.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/Motion.hxx>
22
#include <NXOpen/Motion_AnimationMovieSettings.hxx>
23
#include <NXOpen/Motion_PostControl.hxx>
24
#include <NXOpen/Motion_SolverPerformanceReport.hxx>
25
#include <NXOpen/TaggedObject.hxx>
26
#include <NXOpen/libnxopencpp_motion_exports.hxx>
27
#ifdef _MSC_VER
28
#pragma warning(push)
29
#pragma warning(disable:4996)
30
#endif
31
#ifdef __GNUC__
32
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
33
#endif
34
namespace
NXOpen
35
{
36
namespace
Motion
37
{
38
class
PostProcess
;
39
}
40
namespace
Motion
41
{
42
class
MotionSession
;
43
}
44
namespace
Assemblies
45
{
46
class
Arrangement
;
47
}
48
namespace
Assemblies
49
{
50
class
Explosion
;
51
}
52
namespace
Motion
53
{
54
class
AnimationMovieSettings
;
55
}
56
namespace
Motion
57
{
58
class
IPostControl
;
59
}
60
namespace
Motion
61
{
62
class
PostControl
;
63
}
64
namespace
Motion
65
{
66
class
SolverPerformanceReport
;
67
}
68
class
NXObject
;
69
class
Part
;
70
namespace
Motion
71
{
72
class
PostProcessImpl;
76
class
NXOPENCPP_MOTIONEXPORT
PostProcess
77
{
79
public
:
enum
EnvelopeAccuracyModes
80
{
81
EnvelopeAccuracyModesLow
,
82
EnvelopeAccuracyModesMedium
,
83
EnvelopeAccuracyModesHigh
,
84
EnvelopeAccuracyModesCustom
85
};
86
87
public
:
enum
EnvelopeToleranceTypes
88
{
89
EnvelopeToleranceTypesPercentage
,
90
EnvelopeToleranceTypesAbsolute
91
};
92
93
public
:
94
struct
EnvelopeTolerance
95
{
96
public
:
NXOpen::Motion::PostProcess::EnvelopeAccuracyModes
AccuracyMode
;
97
public
:
NXOpen::Motion::PostProcess::EnvelopeToleranceTypes
ToleranceType
;
98
public
:
double
Tolerance
;
99
public
:
bool
DecimationEnabled
;
100
public
:
double
DecimationFactor
;
101
public
:
double
DecimationMaxError
;
102
public
: EnvelopeTolerance() :
103
AccuracyMode
((
NXOpen
::
Motion
::
PostProcess
::
EnvelopeAccuracyModes
)0),
104
ToleranceType
((
NXOpen
::
Motion
::
PostProcess
::
EnvelopeToleranceTypes
)0),
105
Tolerance
(),
106
DecimationEnabled
(),
107
DecimationFactor
(),
108
DecimationMaxError
()
109
{
110
}
112
public
:
EnvelopeTolerance
(
NXOpen::Motion::PostProcess::EnvelopeAccuracyModes
accuracyModeInitial ,
113
NXOpen::Motion::PostProcess::EnvelopeToleranceTypes
toleranceTypeInitial ,
114
double
toleranceInitial ,
115
bool
decimationEnabledInitial ,
116
double
decimationFactorInitial ,
117
double
decimationMaxErrorInitial ) :
118
AccuracyMode
(accuracyModeInitial),
119
ToleranceType
(toleranceTypeInitial),
120
Tolerance
(toleranceInitial),
121
DecimationEnabled
(decimationEnabledInitial),
122
DecimationFactor
(decimationFactorInitial),
123
DecimationMaxError
(decimationMaxErrorInitial)
124
{
125
}
126
};
127
128
public
:
enum
PostMode
129
{
130
PostModeNoPost
,
131
PostModeAnimation
,
132
PostModeArticulation
,
133
PostModeSpreadsheetRun
,
134
PostModeLoadTransfer
,
135
PostModePostTools
,
136
PostModeEigenvectorAnimation
,
137
PostModeStaticModeAnimation
,
138
PostModeUnsupported
139
};
140
public
:
144
typedef
NXOpen::Callback1<void, int>
UserFunctionBeforeDialogDestroy
;
145
private
:
PostProcessImpl
* m_postprocess_impl;
146
private
:
NXOpen::Motion::MotionSession
* m_owner;
148
public
:
explicit
PostProcess
(
NXOpen::Motion::MotionSession
*owner);
150
public
:
152
tag_t
Tag
()
const
;
153
public
:
~PostProcess
();
159
public
:
NXOpen::Assemblies::Arrangement
*
CaptureArrangement
160
(
161
const
NXString
& arrangementName ,
162
int
animationStep
163
);
169
NXOpen::Assemblies::Arrangement
*
CaptureArrangement
170
(
171
const
char
* arrangementName ,
172
int
animationStep
173
);
181
public
:
NXOpen::Assemblies::Arrangement
*
CaptureArrangement
182
(
183
const
NXString
& arrangementName ,
184
int
arrangementType ,
185
int
animationStep
186
);
194
NXOpen::Assemblies::Arrangement
*
CaptureArrangement
195
(
196
const
char
* arrangementName ,
197
int
arrangementType ,
198
int
animationStep
199
);
203
public
:
void
CreateEnvelope
204
(
205
NXOpen::Motion::IPostControl
* tPostControl ,
206
NXOpen::NXObject
* destinationPart ,
207
bool
addToRefSets ,
208
NXOpen::NXObject
* referenceFrameObj ,
209
const
std::vector<NXOpen::NXObject *> & sourceObjs ,
210
int
stepFrom ,
211
int
stepTo ,
212
const
NXOpen::Motion::PostProcess::EnvelopeTolerance
& toleranceSetting ,
213
std::vector<NXOpen::NXObject *> & sweptBodies ,
214
std::vector<NXOpen::NXObject *> & skipedObj ,
215
std::vector<NXOpen::NXObject *> & failedObjs ,
216
bool
* aborted
217
);
221
public
:
NXOpen::NXObject
*
CreateSequence
222
(
223
const
NXString
& sequenceName
224
);
228
NXOpen::NXObject
*
CreateSequence
229
(
230
const
char
* sequenceName
231
);
233
236
public
:
void
PrintSequence
237
(
238
NXOpen::NXObject
* sequenceTag
239
);
241
244
public
:
void
TraceCurrentPosition
245
(
246
);
250
public
:
void
TraceEntireMechanism
251
(
252
);
256
public
:
void
TraceIntersectionCurve
257
(
258
);
262
public
:
NXOpen::Assemblies::Explosion
*
ExplodeMechanism
263
(
264
const
NXString
& explosionName
265
);
269
NXOpen::Assemblies::Explosion
*
ExplodeMechanism
270
(
271
const
char
* explosionName
272
);
277
public
:
NX_DEPRECATED
(
"Deprecated in NX2406.0.0. Use NXOpen::Motion::PostProcess::ExportToMovieWithSettings instead."
) void
ExportToMovie
278
(
279
const
NXString
& movieName
280
);
285
void
ExportToMovie
286
(
287
const
char
* movieName
288
);
292
public:
void
ListMeasure
293
(
294
);
298
public:
void
ListInterference
299
(
300
);
304
public:
bool
GetInterferenceOption
305
(
306
);
310
public:
void
SetInterferenceOption
311
(
312
bool
interferenceOn
313
);
318
public:
bool
GetMeasureOption
319
(
320
);
324
public:
void
SetMeasureOption
325
(
326
bool
measureOn
327
);
332
public:
bool
GetTraceOption
333
(
334
);
338
public:
void
SetTraceOption
339
(
340
bool
traceOn
341
);
346
public:
bool
GetStopOnEventOption
347
(
348
);
352
public:
void
SetStopOnEventOption
353
(
354
bool
stopOnEventOn
355
);
360
public:
int
GetSpeed
361
(
362
);
366
public:
void
SetSpeed
367
(
368
int
speed
369
);
374
public:
double
GetRealTimeAnimationSpeedFactor
375
(
376
);
380
public:
void
SetRealTimeAnimationSpeedFactor
381
(
382
double
speedFactor
383
);
388
public:
NXOpen
::
Motion
::
AnimationSpeedControlType
GetAnimationSpeedControlType
389
(
390
);
394
public:
void
SetAnimationSpeedControlType
395
(
396
NXOpen
::
Motion
::
AnimationSpeedControlType
speedControlType
397
);
402
public:
bool
GetRigidOnlyAnimation
403
(
404
);
408
public:
void
SetRigidOnlyAnimation
409
(
410
bool
rigidOnlyAnimation
411
);
417
public:
void
RegisterUserButton
418
(
419
const
NXString
& buttonName ,
420
const
NXString
& buttonTips ,
421
const
NXString
& buttonMenuScriptName ,
422
const
NXOpen
::
Motion
::
PostProcess
::
UserFunctionBeforeDialogDestroy
& functionBeforeUIDestroy
423
);
427
void
RegisterUserButton
428
(
429
const
char
* buttonName ,
430
const
char
* buttonTips ,
431
const
char
* buttonMenuScriptName ,
432
const
NXOpen
::
Motion
::
PostProcess
::
UserFunctionBeforeDialogDestroy
& functionBeforeUIDestroy
433
);
438
public:
NX_DEPRECATED
(
"Deprecated in NX2406.0.0. Use NXOpen::Motion::PostProcess::ExportToMovieWithSettings instead."
)
void
ExportRealTimeMovie
439
(
440
const
NXString
& movieName
441
);
446
void
ExportRealTimeMovie
447
(
448
const
char
* movieName
449
);
453
public:
void
ExportAnimationToTeamcenter
454
(
455
NXOpen
::
Part
* motionPart ,
456
const
NXString
& snapShotName
457
);
461
void
ExportAnimationToTeamcenter
462
(
463
NXOpen
::
Part
* motionPart ,
464
const
char
* snapShotName
465
);
469
public:
NXOpen
::
Motion
::
SolverPerformanceReport
*
GetSolverPerformanceReport
470
(
471
NXOpen
::
Part
* motionPart
472
);
476
public:
void
RefreshFunctionPlots
477
(
478
NXOpen
::
Part
* motionPart
479
);
483
public:
NXOpen
::
Motion
::
PostProcess
::
PostMode
GetPostMode
484
(
485
NXOpen
::
Part
* motionPart
486
);
490
public:
NXOpen
::
Motion
::
AnimationMovieSettings
*
NewAnimationMovieSettings
491
(
492
);
496
public:
void
ExportToMovieWithSettings
497
(
498
NXOpen
::
Motion
::
PostControl
* postControl ,
499
NXOpen
::
Motion
::
AnimationMovieSettings
* animationMovieSettings
500
);
501
};
//lint!e1712 类未定义默认构造函数
502
}
503
}
504
#ifdef _MSC_VER
505
#pragma warning(pop)
506
#endif
507
#ifdef __GNUC__
508
#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
509
#pragma GCC diagnostic warning "-Wdeprecated-declarations"
510
#endif
511
#endif
512
#undef EXPORTLIBRARY