Sat, 02/09/2002 - 16:50
Forums:
I already developpe a class named cyl. This class will draw a cylindre with his axe.I can so create so many instance of this class with differents arguments.
How can i get this arguments of each instance from selection by mouse in an interactive context
Sat, 02/09/2002 - 21:07
You can use AIS_InteractiveObject::SetOwner(yourobject) if your class inherits from MMgt_TShared.
When your AIS_InteractiveObject is selected, you can use HasOwner() and GetOwner() to get your instance.
You can also use a DoubleMap AIS_InterativeObject <-> YourClass to get the AIS_InteractiveObject from your instance.
Stephane
http://www.exotk.org