NX Open C++ 参考指南 2406 v1.1
载入中...
搜索中...
未找到
Features_HumanBuilder.hxx
1//--------------------------------------------------------------------------
2// Copyright 2024 Siemens
3//--------------------------------------------------------------------------
4// C++接口JA API的头文件
5//--------------------------------------------------------------------------
6//
7// 源文件:
8// Features_HumanBuilder.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/BasePart.hxx>
22#include <NXOpen/HumanData.hxx>
23#include <NXOpen/HumanH10DialogBuilder.hxx>
24#include <NXOpen/HumanHCPDialogBuilder.hxx>
25#include <NXOpen/HumanHandsDialogBuilder.hxx>
26#include <NXOpen/HumanPosturePrediction.hxx>
27#include <NXOpen/Features_FeatureBuilder.hxx>
28#include <NXOpen/ugmath.hxx>
29#include <NXOpen/libnxopencpp_features_exports.hxx>
30#ifdef _MSC_VER
31#pragma warning(push)
32#pragma warning(disable:4996)
33#endif
34#ifdef __GNUC__
35#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
36#endif
37namespace NXOpen
38{
39 namespace Features
40 {
41 class HumanBuilder;
42 }
43 class CoordinateSystem;
44 namespace Features
45 {
46 class FeatureBuilder;
47 }
52 class Point;
53 namespace Features
54 {
55 class _HumanBuilderBuilder;
56 class HumanBuilderImpl;
60 class NXOPENCPP_FEATURESEXPORT HumanBuilder : public NXOpen::Features::FeatureBuilder
61 {
62 private: HumanBuilderImpl * m_humanbuilder_impl;
63 private: friend class _HumanBuilderBuilder;
64 protected: HumanBuilder();
65 public: ~HumanBuilder();
69 public: void SetName
70 (
71 const NXString & name
72 );
77 (
78 const char * name
79 );
83 public: NXString Name
84 (
85 );
90 (
91 const NXString & customFileName
92 );
97 (
98 const char * customFileName
99 );
104 (
105 );
109 public: void SetStatureData
110 (
112 double stature ,
114 );
118 public: void GetStatureData
119 (
120 NXOpen::HumanData::StatureType* statureType ,
121 double* stature ,
123 );
127 public: void SetWeightData
128 (
130 double weight ,
132 );
136 public: void GetWeightData
137 (
139 double* weight ,
141 );
145 public: void SetGender
146 (
148 );
153 (
154 );
158 public: void SetAppearance
159 (
161 );
166 (
167 );
171 public: void SetDatabase
172 (
174 );
179 (
180 );
184 public: void SetPosition
185 (
186 const NXOpen::Point3d & location
187 );
192 (
193 );
197 public: void SetOrientation
198 (
199 const NXOpen::Matrix3x3 & orientation
200 );
205 (
206 );
211 (
212 const NXString & statureExpression
213 );
218 (
219 const char * statureExpression
220 );
225 (
226 );
231 (
232 const NXString & weightExpression
233 );
238 (
239 const char * weightExpression
240 );
245 (
246 );
250 public: void SetReferencePoint
251 (
252 bool associative ,
253 NXOpen::HumanData::ReferencePointType referencePointType ,
254 NXOpen::Point * referencePoint
255 );
261 (
262 const NXOpen::Point3d & referencePointCoordinates
263 );
268 (
269 );
274 (
275 NXOpen::HumanData::ReferencePointType referencePointType
276 );
281 (
282 );
286 public: void SetHandShapeData
287 (
288 int handType ,
289 const NXString & handshapeName ,
290 const NXString & neutralHandshapeName ,
291 const NXString & handshapeLib ,
292 double handshapeValue
293 );
298 (
299 int handType ,
300 const char * handshapeName ,
301 const char * neutralHandshapeName ,
302 const char * handshapeLib ,
303 double handshapeValue
304 );
308 public: void SetJointLimits
309 (
311 double jointXLowerLimit ,
312 double jointXUpperLimit ,
313 double jointYLowerLimit ,
314 double jointYUpperLimit ,
315 double jointZLowerLimit ,
316 double jointZUpperLimit ,
317 bool isSymmetric
318 );
322 public: void SetJointData
323 (
325 double jointXValue ,
326 double jointYValue ,
327 double jointZValue ,
328 bool isSymmetric
329 );
333 public: void DoUpdate
334 (
335 bool updatePosturePrediction ,
336 bool updateReferencePoint ,
337 bool updateReachZone
338 );
342 public: void SetResetPosture
343 (
344 );
349 (
351 double depthFactor ,
352 double breadthFactor ,
353 double lengthFactor
354 );
358 public: void SetResetSegment
359 (
360 );
364 public: void SetShowSkeleton
365 (
366 bool showSkeleton
367 );
372 (
374 double dataValue
375 );
380 (
381 const NXString & humanFileName
382 );
387 (
388 const char * humanFileName
389 );
394 (
395 const NXString & postureFileName
396 );
401 (
402 const char * postureFileName
403 );
408 (
409 const NXString & postureFileName
410 );
415 (
416 const char * postureFileName
417 );
421 public: void SetPostureData
422 (
423 const NXString & postureName ,
424 const NXString & postureLib
425 );
430 (
431 const char * postureName ,
432 const char * postureLib
433 );
437 public: void AddHandShapeLib
438 (
439 const NXString & handshapeLib
440 );
445 (
446 const char * handshapeLib
447 );
452 (
453 const NXString & handshapeLib
454 );
459 (
460 const char * handshapeLib
461 );
465 public: void AddPostureLib
466 (
467 const NXString & postureLib
468 );
473 (
474 const char * postureLib
475 );
479 public: void RemovePostureLib
480 (
481 const NXString & postureLib
482 );
487 (
488 const char * postureLib
489 );
494 (
495 );
500 (
502 );
507 (
508 );
512 public: void SetBodyParts
513 (
515 );
519 public: bool LockWrist
520 (
521 );
525 public: void SetLockWrist
526 (
527 bool lockWrist
528 );
533 (
534 );
538 public: void SetInitJoint
539 (
541 );
545 public: bool FollowFoot
546 (
547 );
551 public: void SetFollowFoot
552 (
553 bool followFoot
554 );
559 (
560 );
565 (
566 const NXOpen::Point3d & position
567 );
572 (
573 );
578 (
579 const NXOpen::Matrix3x3 & orientation
580 );
585 (
586 );
590 public: void SetBalanceType
591 (
593 );
598 (
599 );
603 public: void SetHeadEyeType
604 (
606 );
611 (
613 );
617 public: void SetHandGoalType
618 (
621 );
626 (
628 );
633 (
635 bool allowNormal
636 );
641 (
643 );
648 (
650 bool allowRotate
651 );
656 (
658 );
663 (
665 const NXOpen::Point3d & goalPosition
666 );
671 (
673 );
678 (
680 const NXOpen::Matrix3x3 & goalOrientation
681 );
686 (
688 );
692 public: void SetHandGoalPoint
693 (
695 NXOpen::Point * goalPoint
696 );
701 (
703 );
707 public: void SetHandGoalCsys
708 (
710 NXOpen::CoordinateSystem * goalCsys
711 );
716 (
717 );
721 public: void SetBarrierPoint
722 (
723 NXOpen::Point * barrierPoint
724 );
729 (
730 );
734 public: void SetBarrierNormal
735 (
736 const NXOpen::Vector3d & barrierNormal
737 );
742 (
743 );
747 public: void SetBarrierCsys
748 (
749 NXOpen::CoordinateSystem * barrierCsys
750 );
755 (
756 );
761 (
762 const NXString & studyName
763 );
768 (
769 const char * studyName
770 );
775 (
777 );
782 (
784 bool displayFlag
785 );
789 public: std::vector<NXString> GetSegmentSitesName
790 (
791 );
796 (
797 std::vector<NXString> & segmentSitesName
798 );
803 (
804 );
809 (
810 );
815 (
816 );
821 (
822 );
827 (
828 );
832 public: std::vector<double> GetJointAngles
833 (
835 );
840 (
842 );
847 (
849 );
854 (
856 double jointXValue ,
857 double jointYValue
858 );
863 (
865 double* jointXValue ,
866 double* jointYValue
867 );
872 (
874 );
878 public: void StartHCPPosturing
879 (
880 );
885 (
886 );
891 (
893 );
898 (
899 );
903 public: void SetHCPMirrorArms
904 (
906 );
911 (
912 );
917 public: void SetHCPMirrorLegs
918 (
920 );
926 (
928 );
934 (
936 bool lock
937 );
942 public: void GetHCPTorsoAngles
943 (
944 double* flexExt ,
945 double* axial ,
946 double* lateral
947 );
952 public: void SetHCPTorsoAngles
953 (
954 double flexExt ,
955 double axial ,
956 double lateral
957 );
963 (
964 );
970 (
971 );
977 (
979 );
985 (
987 NXOpen::Point3d* position ,
988 NXOpen::Matrix3x3* orientation
989 );
995 (
997 const NXOpen::Point3d & position ,
998 const NXOpen::Matrix3x3 & orientation
999 );
1005 (
1006 const NXString & anthroDatabase ,
1007 double stature ,
1008 double weight ,
1011 );
1017 (
1018 const char * anthroDatabase ,
1019 double stature ,
1020 double weight ,
1023 );
1029 (
1031 );
1036 (
1038 );
1043 (
1046 );
1051 (
1053 );
1058 (
1061 );
1062 };
1063 }
1064}
1065#ifdef _MSC_VER
1066#pragma warning(pop)
1067#endif
1068#ifdef __GNUC__
1069#ifndef NX_NO_GCC_DEPRECATION_WARNINGS
1070#pragma GCC diagnostic warning "-Wdeprecated-declarations"
1071#endif
1072#endif
1073#undef EXPORTLIBRARY