[vtkusers] Storing actors into memory C++
Student Life
lifestudent37 at gmail.com
Thu Jan 1 19:29:53 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/vtkusers/attachments/20150102/78c9039b/attachment.html>
More information about the vtkusers
mailing list