did somebody explains the use of an AIS_ListOfInteractive.
I put AIS_xxx with the "Append" method, but how can I do a loop from first to last element ?
Thanks for answers.
Best regards

Hugues Delorme's picture

You perform traversal of Open Cascade List objects with list iterators.
To traverse an AIS_ListOfInteractive object, use a AIS_ListIteratorOfListOfInteractive object :

AIS_ListOfInteractive list;
//fill the list ...
AIS_ListIteratorOfListOfInteractive it (list);
//iterate on list:
while (it.More ())
//do something with the current item : it.Value ()
it.Next ();