<div dir="ltr"><div style="font-size:13px"><div><div><div><div><div><div><div><div>Hi,</div><div><br></div><div>I am going to be using C++ to develop a software that allows the user to interact with multiple objects/actors on the screen.<br></div>They should be able to move objects/actors independently from one another.<br><br></div>The thing is, I need to store all of this in memory and so I have come up with this class structure to store objects in memory. I also have another class to handle the vtkPicker, i.e. if points are selected on the actor, then they stay there even if that object/actor is moved independently the points should move with it. I am thinking of using inheritance, this is my sort of class structure...<br><br></div>Actor Class...<br>class ScreenObjects<br>{<br>   vtkActor (LinkedList); // I intend on using a linkedlist to store all the actors<br><br>   public:<br>   ScreenObjects(); // Constructor. Initializes vtkActor to null.<br>   void readSTLFile(); // Reads the STL File<br>   bool setObject(); // Sets current object, so you can only interact with the selected object<br>   void reset(); //Resets everything, including vtkActors<br>}<br><br></div>Picker Class...<br></div>class PickerActor : class ScreenObjects<br>{<br></div>    public:<br></div>    PickerActor();<br>}<br><br><br></div>Would really appreciate it if you could give me some ideas or suggestions for my class structure.<br><br></div><span style="font-size:13px">Thanks</span><br></div>