how can I create a list of Handles? For example I need a list of Poly_Triangulation.
Thanks for any hints.
Gernot Knieling
Francois Lauzon Wed, 01/10/2007 - 16:08
Hello Gernot,
you could use a value based list to store your handles. We use lists from Trolltech Qt library, QValueList for example to have a linked list, of QValueVector to have a vector. I guess most value based list should work.
thank you for your tip, I will try it.
In the meantime I have found an opencascade way: add the Poly_Triangulation to a TColStd_IndexedMapOfTransient and for getting downcast from Handle(Standard_Transient).
Wed, 01/10/2007 - 16:08
Hello Gernot,
you could use a value based list to store your handles. We use lists from Trolltech Qt library, QValueList for example to have a linked list, of QValueVector to have a vector. I guess most value based list should work.
Good Luck,
Francois.
Wed, 01/10/2007 - 16:21
Hello Francois,
thank you for your tip, I will try it.
In the meantime I have found an opencascade way: add the Poly_Triangulation to a TColStd_IndexedMapOfTransient and for getting downcast from Handle(Standard_Transient).
Wed, 01/10/2007 - 18:19
Have a look to the NCollection_List template class and other classes in NCollection package.