maptek.vulcan_gui.pick_point

Pick points inside of the Vulcan GUI.

To download all the example scripts, click here.


Note

To use any of the method calls from this class, be sure to import the library at the top of your Python script, like this:

from maptek import vulcan_gui

class

maptek.vulcan_gui.pick_point(self)

Prompt user to pick point.

# Filename: pick_point.py
# Purpose: Prompt user to pick point.
# Returns: List

from maptek import vulcan_gui

pts = vulcan_gui.pick_point() # creates a point object
lst = pts.pick('Pick point', 'Pick next point')

# do something with list of points...
for i, pt in enumerate(lst):
    print(f'{i} : {pt}')
pick(self, firstPrompt, secondPrompt='')→ tuple

Gets the coordinates of a point location and returns them as a tuple of points.

Example:  (point(x, y, z, w, t, name),point(x, y, z, w, t, name))

Parameters

  • firstPrompt (std::string const &)

  • secondPrompt (std::string const &)

# Filename: pick_point.py
# Purpose: Prompt user to pick point.
# Returns: List

from maptek import vulcan_gui

pts = vulcan_gui.pick_point() # creates a point object
lst = pts.pick('Pick point', 'Pick next point')

# do something with list of points...
for i, pt in enumerate(lst):
    print(f'{i} : {pt}')
property get_rubberband()→ Bool

Get display property state for rubberband when selecting points.

# Filename: pick_point_get_rubberband.py
# Purpose: Get display property for selection rubberband.
# Returns: Bool.

from maptek import vulcan_gui

pts = vulcan_gui.pick_point() # creates a point object
state = pts.get_rubberband() # do not display rubberband between points
lst = pts.pick('Pick point', 'Pick next point')

# do something...
print(state)
property set_rubberband(True = display, False = do not display)→ Bool

Set property to display or not display rubberband when selecting points.

# Filename: pick_point_set_rubberband.py
# Purpose: Set property to display or not display selection rubberband.
# Returns: Bool.

from maptek import vulcan_gui

pts = vulcan_gui.pick_point() # creates a point object
pts.set_rubberband(False) # do not display rubberband between points
lst = pts.pick('Pick point', 'Pick next point')

# do something with list of points...
for i, pt in enumerate(lst):
    print(f'{i} : {pt}')
property get_single_point()→ bool

Get property state for single point selection.

# Filename: pick_point_get_single_point.py
# Purpose: Get property state for single point selection.
# Returns: Bool.

from maptek import vulcan_gui

pt = vulcan_gui.pick_point() # creates a point object
state = pt.get_single_point() # select only one point
lst = pt.pick('Pick point', 'Pick next point')

# do something with point...
print(state)
property set_single_point()→ bool

Set property to select only a single point.

# Filename: pick_point_set_single_point.py
# Purpose: Set property to select only a single point.
# Returns: Bool.

from maptek import vulcan_gui

pt = vulcan_gui.pick_point() # creates a point object
pt.set_single_point() # set property to select only one point
pnt = pt.pick('Pick point') # pick the point

# do something with point...
print(pnt)