viewport#
- class ansys.api.pyensight.ensight_api.viewport(session: Session)#
Class wrapper for EnSight viewport module
This class acts as a proxy for the EnSight Python module ensight.viewport
Methods
Viewport: auto_centering
Specify the image file to be used as the background for the selected viewport(s).
Specify the type of background to be displayed for the selected viewport(s).
Specify the level to edit of the corresponding blended background type for the selected viewport(s), i.e. used to edit either the position or color of the level.
Specify the number of (vertical) levels of the corresponding blended background type for the selected viewport(s).
Specify the position of the specified blend level of the corresponding blended background type for the selected viewport(s).
viewport.blend_rgb
(p0, p1, p2)Specify the red, green and blue components of the blended background color for the specified level of the selected viewport(s).
viewport.border_rgb
(p0, p1, p2)Set the color for the viewport border.
Set visibility of viewport border.
viewport.constant_rgb
(p0, p1, p2)Specify the red, green and blue components of the constant background color for the selected viewport(s)
Delete all selected viewports.
Viewport: exchange_with_largest
viewport.global_axis_location
(p0, p1)Viewport: global_axis_location
Viewport: global_axis_visible
Viewport: global_axis_xlabel
Viewport: global_axis_ylabel
Viewport: global_axis_zlabel
viewport.height
(p0)Specify the normalized height for the selected viewport(s).
Toggle whether hidden line meshes are to be overlaid onto parts in active viewport(s).
Toggle whether hidden surfaces are to be removed from parts in active viewport(s).
Defines the azimuth angle of light source 1.
Defines the elevation angle of light source 1.
Defines whether light source 1 is defined in the model coordinate system (absolute) or in reference to the viewer.
Defines the intensity of light source 2, which is always at the location of the viewer (camera).
Converts light coordinates which are relative to the viewport to be absolute (relative to the model coordinate system) and thus have a static lighting effect.
Lower the selected viewport(s) to be located beneath all the other viewports - except the main viewport.
Specify a new viewport to be created.
This command has not yet been documented.
Viewport: not_used
Specify the normalized x/y-coordinate value of the origin for the selected viewport(s).
Specify the normalized x/y-coordinate value of the origin for the selected viewport(s).
Toggle whether viewing frustrum is to be perspective or orthographic in selected viewport(s).
viewport.query_count
(args)Viewport: query_count
Viewport: query_display_attributes
viewport.query_location
(args)Viewport: query_location
Viewport: query_mouse_info
Viewport: query_object_atwindowxy
viewport.query_size
(args)Viewport: query_size
Viewport: query_window_depth
Viewport: query_window_mousepress
Viewport: query_window_rgba
Viewport: query_window_size
Select all created viewports for editing.
viewport.select_begin
(*args, **kwargs)Set active viewport(s) selection construct for subsequent viewport modification.
Allows the setting of default viewport attributes prior to creating the next viewport.
viewport.track
(p0)Specify the location of the position to track (if any tracking is to be used).
Specify the node id to track.
Specify the part id to use for the other location options for tracking.
Specify the part name to use for the other location options for tracking.
Set the dimension of the viewport.
Specify the type of layout to be used in dividing the graphics window into viewports.
viewport.visible
(p0)Toggle whether selected viewports are visible.
viewport.width
(p0)Specify the normalized width for the selected viewport(s).