pycatia.dnb_human_modeling_interfaces.swk_vision¶
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_vision.SWKVision(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDNBHumanModelingInterfaces.SWKManikinPartSWKVisionThis interface manages the vision of the manikin.It providesaccess to the vision data (lines of sight, focal point…)- property active_line_of_sight: SWKLineOfSight¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ActiveLineOfSight() As SWKLineOfSight (Read Only)Returns the active line of sight, according to the vision type.
- Return type:
- property active_side: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property ActiveSide() As long (Read Only)Returns the vision active side.The active line of sight is the one able tocontrol the two others. That is, when the active line ofsight moves, the two others update accordingly.When setting the type, the value given must be 0, 1 or 2.The value 0 activates the left line of sight, the value 1activates the central line of sight, the value 2 activatesthe right line of sight.If other values are given, an error will occur.
- Return type:
int
- property ambinocular_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property AmbinocularAngle() As doubleReturns or sets the vision Ambinocular angle.This angle is always in degrees.
- Return type:
float
- property binocular_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property BinocularAngle() As doubleReturns or sets the vision Binocular angle.This angle is always in degrees.
- Return type:
float
- property central_cone_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property CentralConeAngle() As doubleReturns or sets the vision Central cone angle.This angle is always in degrees.
- Return type:
float
- close_vision_windows() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CloseVisionWindows()Closes all open vision windows relating to the manikin on which thefunction is called.
- Return type:
None
- property focal_distance: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property FocalDistance() As doubleReturns or sets the focal distance, in centimeters.N.B.: if the value is -1.0,then the focal distance is set to infinite.
- Return type:
float
- property focal_point_x: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property FocalPointX() As double (Read Only)Returns the x coordinate (in millimeters) of the focal point.
- Return type:
float
- property focal_point_y: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property FocalPointY() As double (Read Only)Returns the y coordinate (in millimeters) of the focal point.
- Return type:
float
- property focal_point_z: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property FocalPointZ() As double (Read Only)Returns the z coordinate (in millimeters) of the focal point.
- Return type:
float
- look_at(pi_focal_distance: float, pi_v_angle: float, pi_h_angle: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub LookAt(double piFocalDistance,double piVAngle,double piHAngle)Make the manikin look at the specified position in space.This position is given by the focal distance, and twodeviation angles.Parameters:piFocalDistanceThe focal distance (measured from the active eye), which is ahorizontal straight distance, measured in centimeters.piVAngleThe vertical angle (in radians) between the focal pointandthe active eye (positive angle deviates up, negative angle deviatesdown).piHAngleThe horizontal angle (in radians) between thefocalpoint and the active eye (positive angle deviates left, negativeangle deviates right). N.B.: the manikin’s eyes will move only if it isableto reach the specified point.
- Parameters:
pi_focal_distance (float) –
pi_v_angle (float) –
pi_h_angle (float) –
- Return type:
None
- look_at_point(pi_x: float, pi_y: float, pi_z: float) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub LookAtPoint(double piX,double piY,double piZ)Make the manikin look at the specified position in space.This position is given by three coordinates (expressed inmillimeters)passed to the method.N.B.: the manikin’s eyes will move only if it is ableto reach the specified point.
- Parameters:
pi_x (float) –
pi_y (float) –
pi_z (float) –
- Return type:
None
- property monocular_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property MonocularAngle() As doubleReturns or sets the vision Monocular angle.This angle is always in degrees.
- Return type:
float
- property ponctum_proximum: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property PonctumProximum() As doubleReturns or sets the ponctum proximum, in centimeters. The ponctum proximumis the minimum value the focal distance can take.
- Return type:
float
- property ponctum_remotum: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property PonctumRemotum() As doubleReturns or sets the ponctum remotum, in centimeters. The ponctum remotum isthe largest value that the focal distance can take. N.B.: if the value is -1.0,then the ponctum remotum is set to infinite.
- Return type:
float
- reset() None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Reset()Resets all attributes of the vision to their default values. This methodresets the focal distance, the active line of sight, the ponctum proximum, theponctum remotum, the field of view angles, the convergence mode, and restoresthe default DOF values on the three lines of sight.
- Return type:
None
- property type: int¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property Type() As longReturns or sets the vision type. (binocular, ambinocular, monocular left,monocular right or stereo.When setting the type, the value given must be 0, 1, 2, 3, or 4The value 0 activates the Binocular type, 1 is Ambinocular, 2 isMonocularRight, 3 is MonocularLeft, and 4 is Stereo. If other values are given,an error will occur.
- Return type:
int
- property vertical_bottom_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property VerticalBottomAngle() As doubleReturns or sets the vision Vertical Bottom angle.This angle is always in degrees.
- Return type:
float
- property vertical_top_angle: float¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
- o Property VerticalTopAngle() As doubleReturns or sets the vision Vertical Top angle.This angle is always in degrees.
- Return type:
float