select_tool#

view_transf.select_tool(p0: float, p1: float, p2: float, p3: float) int#

Sets the location of the selection tool by setting normalized screen min and max values.

The screen is considered normalized as 0 to 1 in both x and y directions, with the origin in the bottom left.
Args:
p0:

‘xmin’

  • minimum x screen coordinate (0 to 1)

p1:

‘xmax’

  • maximum x screen coordinate (0 to 1)

p2:

‘ymin’

  • minimum y screen coordinate (0 to 1)

p3:

‘ymax’

  • maximum y screen coordinate (0 to 1)

Examples:
# 
# Set select tool location
# 
ensight.tools.select_tool("ON")
ensight.view_transf.select_tool(0.25,0.25,0.75,0.75)
Returns:

zero on success, non-zero on error