SclGraphicsClose
Overview
You can use SclGraphicsClose to close the currently open node of the graphics database.
Synopsis
SclGraphicsClose
Description
This command closes the currently open node. For each SclGraphicsOpen there must be a corresponding SclGraphicsClose command within the script.
Arguments
None.
Returns
Nothing.
Examples
#
# Open a node called 'mygraphicsnode' and insert a marker
# For the marker to be visible the coordinates of the marker must
# be contained within the current screen extents
#
# This example shows how to animate a marker using quick moves and
# inserting and then deleting markers at different positions
#
set segKey [SclGraphicsOpen mygraphicsnode]
SclGraphicsSetHeuristics "quick moves=on"
set key [SclGraphicsInsertMarker 2450 6750 150]
SclGraphicsSetMarkerSymbol {[*]}
SclGraphicsSetMarkerSize 2
SclGraphicsSetColour yellow
set y 6750
for {set i 0} {$i < 100} {incr i} {
SclGraphicsDeleteByKey $key
set y [expr $y + 1]
if {$i == 50} {
SclGraphicsSetColour red
}
set key [SclGraphicsInsertMarker 2450 $y 150]
SclGraphicsUpdateDisplay
}
#
# Note: There must be an SclGraphicsClose to match each SclGraphicsOpen
#
SclGraphicsClose