NX Open C++ 参考指南
2406 v1.1
载入中...
搜索中...
未找到
D:
Tan_NX2406C++
UGopenLib
NX2406
UGOPEN
NXOpen
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
37
namespace
NXOpen
38
{
39
namespace
Features
40
{
41
class
HumanBuilder
;
42
}
43
class
CoordinateSystem
;
44
namespace
Features
45
{
46
class
FeatureBuilder
;
47
}
48
class
HumanH10DialogBuilder
;
49
class
HumanHCPDialogBuilder
;
50
class
HumanHandsDialogBuilder
;
51
class
HumanPosturePrediction
;
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
);
76
void
SetName
77
(
78
const
char
* name
79
);
83
public
:
NXString
Name
84
(
85
);
89
public
:
void
SetCustomHumanFileName
90
(
91
const
NXString
& customFileName
92
);
96
void
SetCustomHumanFileName
97
(
98
const
char
* customFileName
99
);
103
public
:
NXString
CustomHumanFileName
104
(
105
);
109
public
:
void
SetStatureData
110
(
111
NXOpen::HumanData::StatureType
statureType ,
112
double
stature ,
113
NXOpen::HumanData::StatureUnitType
statureUnit
114
);
118
public
:
void
GetStatureData
119
(
120
NXOpen::HumanData::StatureType
* statureType ,
121
double
* stature ,
122
NXOpen::HumanData::StatureUnitType
* statureUnit
123
);
127
public
:
void
SetWeightData
128
(
129
NXOpen::HumanData::WeightType
weightType ,
130
double
weight ,
131
NXOpen::HumanData::WeightUnitType
weightUnit
132
);
136
public
:
void
GetWeightData
137
(
138
NXOpen::HumanData::WeightType
* weightType ,
139
double
* weight ,
140
NXOpen::HumanData::WeightUnitType
* weightUnit
141
);
145
public
:
void
SetGender
146
(
147
NXOpen::HumanData::GenderType
gender
148
);
152
public
:
NXOpen::HumanData::GenderType
Gender
153
(
154
);
158
public
:
void
SetAppearance
159
(
160
NXOpen::HumanData::AppearanceType
appearance
161
);
165
public
:
NXOpen::HumanData::AppearanceType
Appearance
166
(
167
);
171
public
:
void
SetDatabase
172
(
173
NXOpen::HumanData::DatabaseType
database
174
);
178
public
:
NXOpen::HumanData::DatabaseType
Database
179
(
180
);
184
public
:
void
SetPosition
185
(
186
const
NXOpen::Point3d
& location
187
);
191
public
:
NXOpen::Point3d
Position
192
(
193
);
197
public
:
void
SetOrientation
198
(
199
const
NXOpen::Matrix3x3
& orientation
200
);
204
public
:
NXOpen::Matrix3x3
Orientation
205
(
206
);
210
public
:
void
SetExpressionStatureData
211
(
212
const
NXString
& statureExpression
213
);
217
void
SetExpressionStatureData
218
(
219
const
char
* statureExpression
220
);
224
public
:
NXString
ExpressionStatureData
225
(
226
);
230
public
:
void
SetExpressionWeightData
231
(
232
const
NXString
& weightExpression
233
);
237
void
SetExpressionWeightData
238
(
239
const
char
* weightExpression
240
);
244
public
:
NXString
ExpressionWeightData
245
(
246
);
250
public
:
void
SetReferencePoint
251
(
252
bool
associative ,
253
NXOpen::HumanData::ReferencePointType
referencePointType ,
254
NXOpen::Point
* referencePoint
255
);
260
public
:
void
SetReferencePointCoordinates
261
(
262
const
NXOpen::Point3d
& referencePointCoordinates
263
);
267
public
:
NXOpen::Point3d
ReferencePointCoordinates
268
(
269
);
273
public
:
void
SetReferencePointType
274
(
275
NXOpen::HumanData::ReferencePointType
referencePointType
276
);
280
public
:
NXOpen::HumanData::ReferencePointType
ReferencePointType
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
);
297
void
SetHandShapeData
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
(
310
NXOpen::HumanData::JointType
jointName ,
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
(
324
NXOpen::HumanData::JointType
jointName ,
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
);
348
public
:
void
SetSegmentScalingData
349
(
350
NXOpen::HumanData::SegmentScalingType
segmentName ,
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
);
371
public
:
void
SetAdvancedScalingData
372
(
373
NXOpen::HumanData::AdvancedScalingType
dataName ,
374
double
dataValue
375
);
379
public
:
void
ExportCustomHumanFile
380
(
381
const
NXString
& humanFileName
382
);
386
void
ExportCustomHumanFile
387
(
388
const
char
* humanFileName
389
);
393
public
:
void
ExportCustomPostureFile
394
(
395
const
NXString
& postureFileName
396
);
400
void
ExportCustomPostureFile
401
(
402
const
char
* postureFileName
403
);
407
public
:
void
LoadCustomPostureFile
408
(
409
const
NXString
& postureFileName
410
);
414
void
LoadCustomPostureFile
415
(
416
const
char
* postureFileName
417
);
421
public
:
void
SetPostureData
422
(
423
const
NXString
& postureName ,
424
const
NXString
& postureLib
425
);
429
void
SetPostureData
430
(
431
const
char
* postureName ,
432
const
char
* postureLib
433
);
437
public
:
void
AddHandShapeLib
438
(
439
const
NXString
& handshapeLib
440
);
444
void
AddHandShapeLib
445
(
446
const
char
* handshapeLib
447
);
451
public
:
void
RemoveHandShapeLib
452
(
453
const
NXString
& handshapeLib
454
);
458
void
RemoveHandShapeLib
459
(
460
const
char
* handshapeLib
461
);
465
public
:
void
AddPostureLib
466
(
467
const
NXString
& postureLib
468
);
472
void
AddPostureLib
473
(
474
const
char
* postureLib
475
);
479
public
:
void
RemovePostureLib
480
(
481
const
NXString
& postureLib
482
);
486
void
RemovePostureLib
487
(
488
const
char
* postureLib
489
);
493
public
:
NXOpen::HumanData::InverseKinematicsType
InverseKinematicsType
494
(
495
);
499
public
:
void
SetInverseKinematicsType
500
(
501
NXOpen::HumanData::InverseKinematicsType
type
502
);
506
public
:
NXOpen::HumanData::InverseKinematicsBodyParts
BodyParts
507
(
508
);
512
public
:
void
SetBodyParts
513
(
514
NXOpen::HumanData::InverseKinematicsBodyParts
bodyParts
515
);
519
public
:
bool
LockWrist
520
(
521
);
525
public
:
void
SetLockWrist
526
(
527
bool
lockWrist
528
);
532
public
:
NXOpen::HumanData::InverseKinematicsInitJoint
InitJoint
533
(
534
);
538
public
:
void
SetInitJoint
539
(
540
NXOpen::HumanData::InverseKinematicsInitJoint
initJoint
541
);
545
public
:
bool
FollowFoot
546
(
547
);
551
public
:
void
SetFollowFoot
552
(
553
bool
followFoot
554
);
558
public
:
NXOpen::Point3d
InverseKinematicsPosition
559
(
560
);
564
public
:
void
SetInverseKinematicsPosition
565
(
566
const
NXOpen::Point3d
& position
567
);
571
public
:
NXOpen::Matrix3x3
InverseKinematicsOrientation
572
(
573
);
577
public
:
void
SetInverseKinematicsOrientation
578
(
579
const
NXOpen::Matrix3x3
& orientation
580
);
584
public
:
NXOpen::HumanData::InverseKinematicsBalanceType
BalanceType
585
(
586
);
590
public
:
void
SetBalanceType
591
(
592
NXOpen::HumanData::InverseKinematicsBalanceType
balanceType
593
);
597
public
:
NXOpen::HumanData::InverseKinematicsHeadEyeType
HeadEyeType
598
(
599
);
603
public
:
void
SetHeadEyeType
604
(
605
NXOpen::HumanData::InverseKinematicsHeadEyeType
headEyeType
606
);
610
public
:
NXOpen::HumanData::HandGoalType
GetHandGoalType
611
(
612
NXOpen::HumanData::SideType
side
613
);
617
public
:
void
SetHandGoalType
618
(
619
NXOpen::HumanData::SideType
side ,
620
NXOpen::HumanData::HandGoalType
goalType
621
);
625
public
:
bool
GetHandGoalAllowNormal
626
(
627
NXOpen::HumanData::SideType
side
628
);
632
public
:
void
SetHandGoalAllowNormal
633
(
634
NXOpen::HumanData::SideType
side ,
635
bool
allowNormal
636
);
640
public
:
bool
GetHandGoalAllowRotate
641
(
642
NXOpen::HumanData::SideType
side
643
);
647
public
:
void
SetHandGoalAllowRotate
648
(
649
NXOpen::HumanData::SideType
side ,
650
bool
allowRotate
651
);
655
public
:
NXOpen::Point3d
GetHandGoalPosition
656
(
657
NXOpen::HumanData::SideType
side
658
);
662
public
:
void
SetHandGoalPosition
663
(
664
NXOpen::HumanData::SideType
side ,
665
const
NXOpen::Point3d
& goalPosition
666
);
670
public
:
NXOpen::Matrix3x3
GetHandGoalOrientation
671
(
672
NXOpen::HumanData::SideType
side
673
);
677
public
:
void
SetHandGoalOrientation
678
(
679
NXOpen::HumanData::SideType
side ,
680
const
NXOpen::Matrix3x3
& goalOrientation
681
);
685
public
:
NXOpen::Point
*
GetHandGoalPoint
686
(
687
NXOpen::HumanData::SideType
side
688
);
692
public
:
void
SetHandGoalPoint
693
(
694
NXOpen::HumanData::SideType
side ,
695
NXOpen::Point
* goalPoint
696
);
700
public
:
NXOpen::CoordinateSystem
*
GetHandGoalCsys
701
(
702
NXOpen::HumanData::SideType
side
703
);
707
public
:
void
SetHandGoalCsys
708
(
709
NXOpen::HumanData::SideType
side ,
710
NXOpen::CoordinateSystem
* goalCsys
711
);
715
public
:
NXOpen::Point
*
GetBarrierPoint
716
(
717
);
721
public
:
void
SetBarrierPoint
722
(
723
NXOpen::Point
* barrierPoint
724
);
728
public
:
NXOpen::Vector3d
GetBarrierNormal
729
(
730
);
734
public
:
void
SetBarrierNormal
735
(
736
const
NXOpen::Vector3d
& barrierNormal
737
);
741
public
:
NXOpen::CoordinateSystem
*
GetBarrierCsys
742
(
743
);
747
public
:
void
SetBarrierCsys
748
(
749
NXOpen::CoordinateSystem
* barrierCsys
750
);
754
public
:
NXString
CurrentComfortStudyName
755
(
756
);
760
public
:
void
SetCurrentComfortStudyName
761
(
762
const
NXString
& studyName
763
);
767
void
SetCurrentComfortStudyName
768
(
769
const
char
* studyName
770
);
774
public
:
bool
GetBodySiteDisplayFlag
775
(
776
NXOpen::HumanData::EditDisplayBodyParts
bodyPart
777
);
781
public
:
void
SetBodySiteDisplayFlag
782
(
783
NXOpen::HumanData::EditDisplayBodyParts
bodyPart ,
784
bool
displayFlag
785
);
789
public
: std::vector<NXString>
GetSegmentSitesName
790
(
791
);
795
public
:
void
SetSegmentSitesName
796
(
797
std::vector<NXString> & segmentSitesName
798
);
802
public
:
NXOpen::HumanPosturePrediction
*
GetPosturePrediction
803
(
804
);
808
public
:
NXOpen::HumanHandsDialogBuilder
*
CreateHumanHandsDialogBuilder
809
(
810
);
814
public
:
NXOpen::HumanH10DialogBuilder
*
CreateHumanH10DialogBuilder
815
(
816
);
820
public
:
NXString
FullName
821
(
822
);
826
public
:
NXOpen::HumanHCPDialogBuilder
*
CreateHumanHcpdialogBuilder
827
(
828
);
832
public
: std::vector<double>
GetJointAngles
833
(
834
NXOpen::HumanData::JointType
jointName
835
);
839
public
:
NXOpen::Point3d
GetBodySiteDisplayPosition
840
(
841
NXOpen::HumanData::EditDisplayBodyParts
siteName
842
);
846
public
:
NXOpen::Matrix3x3
GetBodySiteDisplayOrientation
847
(
848
NXOpen::HumanData::EditDisplayBodyParts
siteName
849
);
853
public
:
void
SetClavicleJointData
854
(
855
NXOpen::HumanData::SideType
side ,
856
double
jointXValue ,
857
double
jointYValue
858
);
862
public
:
void
GetClavicleJointAngles
863
(
864
NXOpen::HumanData::SideType
side ,
865
double
* jointXValue ,
866
double
* jointYValue
867
);
871
public
:
void
SynchShoulderAngles
872
(
873
NXOpen::HumanData::SideType
side
874
);
878
public
:
void
StartHCPPosturing
879
(
880
);
884
public
:
NXOpen::HumanData::HcpPostureSolveType
HCPPostureSolveType
885
(
886
);
890
public
:
void
SetHCPPostureSolveType
891
(
892
NXOpen::HumanData::HcpPostureSolveType
postureSolveType
893
);
897
public
:
NXOpen::HumanData::HcpMirrorOptionType
HCPMirrorArms
898
(
899
);
903
public
:
void
SetHCPMirrorArms
904
(
905
NXOpen::HumanData::HcpMirrorOptionType
mirroring
906
);
910
public
:
NXOpen::HumanData::HcpMirrorOptionType
HCPMirrorLegs
911
(
912
);
917
public
:
void
SetHCPMirrorLegs
918
(
919
NXOpen::HumanData::HcpMirrorOptionType
mirroring
920
);
925
public
:
bool
GetHCPBodyPartLock
926
(
927
NXOpen::HumanData::HcpBodyPart
hcpPart
928
);
933
public
:
void
SetHCPBodyPartLock
934
(
935
NXOpen::HumanData::HcpBodyPart
hcpPart ,
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
);
962
public
:
void
HCPUnlockAllBodyParts
963
(
964
);
969
public
:
void
HCPClearAllBodyPartInputs
970
(
971
);
976
public
:
void
HCPClearBodyPartInput
977
(
978
NXOpen::HumanData::HcpBodyPart
hcpPart
979
);
984
public
:
void
GetHCPBodyPartInput
985
(
986
NXOpen::HumanData::HcpBodyPart
hcpPart ,
987
NXOpen::Point3d
* position ,
988
NXOpen::Matrix3x3
* orientation
989
);
994
public
:
void
SetHCPBodyPartInput
995
(
996
NXOpen::HumanData::HcpBodyPart
hcpPart ,
997
const
NXOpen::Point3d
& position ,
998
const
NXOpen::Matrix3x3
& orientation
999
);
1004
public
:
double
GetDefaultAdvancedAnthroScalingMeasure
1005
(
1006
const
NXString
& anthroDatabase ,
1007
double
stature ,
1008
double
weight ,
1009
NXOpen::HumanData::GenderType
gender ,
1010
NXOpen::HumanData::AdvancedAnthroMeasure
anthroMeasure
1011
);
1016
double
GetDefaultAdvancedAnthroScalingMeasure
1017
(
1018
const
char
* anthroDatabase ,
1019
double
stature ,
1020
double
weight ,
1021
NXOpen::HumanData::GenderType
gender ,
1022
NXOpen::HumanData::AdvancedAnthroMeasure
anthroMeasure
1023
);
1028
public
:
double
GetAdvancedAnthroScalingMeasure
1029
(
1030
NXOpen::HumanData::AdvancedAnthroMeasure
anthroMeasure
1031
);
1035
public
:
NXOpen::HumanData::HcpHandGoalOption
GetHCPHandGoalOption
1036
(
1037
NXOpen::HumanData::SideType
side
1038
);
1042
public
:
void
SetHCPHandGoalOption
1043
(
1044
NXOpen::HumanData::SideType
side ,
1045
NXOpen::HumanData::HcpHandGoalOption
handGoalOption
1046
);
1050
public
:
NXOpen::HumanData::HcpFootGoalOption
GetHCPFootGoalOption
1051
(
1052
NXOpen::HumanData::SideType
side
1053
);
1057
public
:
void
SetHCPFootGoalOption
1058
(
1059
NXOpen::HumanData::SideType
side ,
1060
NXOpen::HumanData::HcpFootGoalOption
footGoalOption
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