[vtk-developers] Storing actors into memory C++

Student Life lifestudent37 at gmail.com
Thu Jan 1 19:29:27 EST 2015


Hi,

I am going to be using C++ to develop a software that allows the user to
interact with multiple objects/actors on the screen.
They should be able to move objects/actors independently from one another.

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...

Actor Class...
class ScreenObjects
{
   vtkActor (LinkedList); // I intend on using a linkedlist to store all
the actors

   public:
   ScreenObjects(); // Constructor. Initializes vtkActor to null.
   void readSTLFile(); // Reads the STL File
   bool setObject(); // Sets current object, so you can only interact with
the selected object
   void reset(); //Resets everything, including vtkActors
}

Picker Class...
class PickerActor : class ScreenObjects
{
    public:
    PickerActor();
}


Would really appreciate it if you could give me some ideas or suggestions
for my class structure.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20150102/e1b38f1c/attachment-0001.html>


More information about the vtk-developers mailing list