[vtkusers] Storing actors into memory C++
Student Life
lifestudent37 at gmail.com
Sat Jan 10 19:29:00 EST 2015
Dear chasank,
Many thanks for your response.
In terms of using a vector data structure, should I implement a separate
class to handle and store multiple objects/vtk actors to memory?
I have changed my class structures and they look a bit like this...
*Actor Class...*
*class Actor{ public: Actor(); // Constructor. *
* ~Actor(); // Destructor. *
* void reset(); // Resets all actor properties*
* void setColour(); **// Sets colour to actor*
* void opacity(); **// **Sets opacity to actor*
*}*
*Picker Class...*
*class PickerActor : public Actor{*
* public:*
* PickerActor(); // Constructor. *
* ~PickerActor(); // Destructor. }*
*Multiple Actors Class...*
*class ScreenObjects{ public: ScreenObjects(); // Constructor. *
* ~ScreenObjects(); // Destructor.*
* void addObject(); // Adds actor to memory*
* void removeObject(); **// Removes actor from memory*
*}*
How can I improve my class/data structure?
Thanks
On Fri, Jan 9, 2015 at 1:00 PM, chasank <chasank at gmail.com> wrote:
> Hi,
>
> Don't complicate your code for nothing. All you need is a simple data
> structure such as std::vector<T>
> You may push and pop your actors easily with built-in iterators.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Storing-actors-into-memory-C-tp5729971p5730046.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150111/5f054707/attachment.html>
More information about the vtkusers
mailing list