NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
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
34namespace 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 {
55 }
56 namespace Motion
57 {
58 class IPostControl;
59 }
60 namespace Motion
61 {
62 class PostControl;
63 }
64 namespace Motion
65 {
67 }
68 class NXObject;
69 class Part;
70 namespace Motion
71 {
72 class PostProcessImpl;
76 class NXOPENCPP_MOTIONEXPORT PostProcess
77 {
86
92
93 public:
94 struct EnvelopeTolerance
95 {
98 public: double Tolerance;
99 public: bool DecimationEnabled;
100 public: double DecimationFactor;
101 public: double DecimationMaxError;
102 public: EnvelopeTolerance() :
105 Tolerance(),
109{
110 }
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
140 public:
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();
160 (
161 const NXString & arrangementName ,
162 int animationStep
163 );
170 (
171 const char * arrangementName ,
172 int animationStep
173 );
182 (
183 const NXString & arrangementName ,
184 int arrangementType ,
185 int animationStep
186 );
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 );
222 (
223 const NXString & sequenceName
224 );
229 (
230 const char * sequenceName
231 );
233
236 public: void PrintSequence
237 (
238 NXOpen::NXObject * sequenceTag
239 );
241
245 (
246 );
251 (
252 );
257 (
258 );
263 (
264 const NXString & explosionName
265 );
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 );
286 (
287 const char * movieName
288 );
292 public: void ListMeasure
293 (
294 );
298 public: void ListInterference
299 (
300 );
305 (
306 );
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 );
347 (
348 );
353 (
354 bool stopOnEventOn
355 );
360 public: int GetSpeed
361 (
362 );
366 public: void SetSpeed
367 (
368 int speed
369 );
375 (
376 );
381 (
382 double speedFactor
383 );
389 (
390 );
395 (
396 NXOpen::Motion::AnimationSpeedControlType speedControlType
397 );
403 (
404 );
409 (
410 bool rigidOnlyAnimation
411 );
418 (
419 const NXString & buttonName ,
420 const NXString & buttonTips ,
421 const NXString & buttonMenuScriptName ,
422 const NXOpen::Motion::PostProcess::UserFunctionBeforeDialogDestroy& functionBeforeUIDestroy
423 );
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 );
447 (
448 const char * movieName
449 );
454 (
455 NXOpen::Part * motionPart ,
456 const NXString & snapShotName
457 );
462 (
463 NXOpen::Part * motionPart ,
464 const char * snapShotName
465 );
470 (
471 NXOpen::Part * motionPart
472 );
477 (
478 NXOpen::Part * motionPart
479 );
484 (
485 NXOpen::Part * motionPart
486 );
491 (
492 );
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