| AHELP for CIAO 4.5 ChIPS v1 | delete_contour |
Context: contours |
Synopsis
Delete the specified contour.
Syntax
delete_contour() delete_contour( [ChipsId] ) delete_contour( "contour_id" ) delete_contour( "all" )
Description
Depending on the argument, the delete_contour command deletes the current contour, the contour indicated in a ChipsId structure or by the contour_id, or all contours.
- (no argument) - the current contour is deleted.
- ChipsId - an optional ChipsId structure containing values to modify the currency state for the command.
- contour_id - identification tag given to each object that is created; use this to delete a specific contour.
- all - deletes all contours.
Example 1
chips> add_contour([[1,1,1], [1,3,1], [1,1,1]], 3,3) chips> delete_contour()
Create a contour, then delete it.
Example 2
chips> id = ChipsId() chips> add_contour([[1,1,1], [1,3,1], [1,1,1]], 3,3, [1.1,1.5,2,2.5],'id=levels') chips> add_contour([1,2,5,3,3,6,0,0,1],3,3) chips> id.contour = "levels" chips> delete_contour(id)
Two contours are created; the second contour is current after it is created. The id.contour command sets the contour value of the ChipsId structure to the first contour. That contour is then deleted.
Example 3
chips> add_contour([[1,1,1], [1,3,1], [1,1,1]], 3,3,
[1.1,1.5,2,2.5],'color=lime style=solid')
chips> add_contour([1,2,5,3,3,6,0,0,1],3,3)
chips> delete_contour("all")Two contours are created, then the delete_contour command deletes them both.
Bugs
See the bugs pages on the ChIPS website for an up-to-date listing of known bugs.

![[ChIPS Logo]](../imgs/chips_logo_navbar.gif)