pycatia.dnb_human_modeling_interfaces.swk_line_of_sight¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.dnb_human_modeling_interfaces.swk_line_of_sight.SWKLineOfSight(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDNBHumanModelingInterfaces.SWKBodyElementSWKLineOfSightThis interface deals with a line of sight of a manikin.- apply_position(pi_position_increment: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ApplyPosition(CATSafeArrayVariant piPositionIncrement)Applies a new relative position for the line of sight.Parameters:piPositionIncrementThe new position to combine with the line of sight’s currentposition.This array must contain 12 numbers, and msut be initialized usingthe four columns of a transformation matrix. The first nine componentsrepresent the rotation matrix.The last three components represent the translationvector.Example:This example sets the segment to a 45-degree rotationaroundthe x axis and at a (10, 20, 30) translation from theorigin.Dim myPosition(11)‘Rotation (45 degrees around the x axis)myPosition(0) = 1.000myPosition(1) = 0myPosition(2) = 0myPosition(3) = 0myPosition(4) = 0.707myPosition(5) = 0.707myPosition(6) = 0myPosition(7) = -0.707myPosition(8) = 0.707‘Translation vector (10,20,30)myPosition(9) = 10.000myPosition(10) = 20.000myPosition(11) = 30.000myManikin.Body.GetItem(“LLHeEye”).ApplyPositionmyPosition
- Parameters:
pi_position_increment (tuple) –
- Return type:
None
- get_dof(pi_dof_number: int) SWKDOF ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetDOF(long piDOFNumber) As SWKDOFReturns a specific degree of freedom of the line of sight. A line of sightalways has exactly two degrees of freedom. and these are numbered 0 and1.Parameters:piDOFNumberThe index of the DOF to retrieve. This parameter must be either 0or 1.
- Parameters:
pi_dof_number (int) –
- Return type:
- property length: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Length() As double (Read Only)Returns the length of the line of sight, in centimeters.If the the value returned is -1.0, then it means that this line of sighthas infinite length.
- Return type:
float
- property nb_do_fs: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property NbDOFs() As long (Read Only)Returns the number of degrees of freedom on the current line of sight. Thisproperty will always be equal to 2. The two degrees of freedom on a line ofsight are the up/down movement and the lateral right/lateral left movement.
- Return type:
int
- set_position(pi_new_position: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetPosition(CATSafeArrayVariant piNewPosition)Sets a new absolute position for the line of sight.Parameters:piNewPositionThe new position to place the line of sight.This array must contain 12 numbers, and msut be initialized usingthe four columns of a transformation matrix. The first nine componentsrepresent the rotation matrix.The last three components represent the translationvector.Example:This example sets the line of sight to a 45-degree rotationaroundthe x axis and at a (10, 20, 30) translation from theorigin.Dim myPosition(11)‘Rotation (45 degrees around the x axis)myPosition(0) = 1.000myPosition(1) = 0myPosition(2) = 0myPosition(3) = 0myPosition(4) = 0.707myPosition(5) = 0.707myPosition(6) = 0myPosition(7) = -0.707myPosition(8) = 0.707‘Translation vector (10,20,30)myPosition(9) = 10.000myPosition(10) = 20.000myPosition(11) = 30.000myManikin.Body.GetItem(“LLHeEye”).SetPositionmyPosition
- Parameters:
pi_new_position (tuple) –
- Return type:
None