APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Clear a ShapeSet post and replies

Return to the Clear a ShapeSet thread
Login to post to this thread

command to clear a ShapeSet
Apostolos Michaloudis
28 Posts

How do i clear a shapeSet of 30 items in once?
I tried _view.myShapeSet.clear();
but it doesn't work...

Replies to command to clear a ShapeSet

Re: command to clear a ShapeSet -
Francisco Esquembre
228 Posts

Shapes are not traces (to  which you add points and can clear them). Shapes are objects that are there. You can customize them, but not clearing them.

However, you can either set the number or element to 0 or better set their viwibility to false.

This can be done using properties.


OSP Projects:
Open Source Physics - EJS Modeling
Physlet Physics
Physlet Quantum Physics
STP Book