[vtkusers] Storing actors into memory C++

Student Life lifestudent37 at gmail.com
Sun Jan 11 10:39:36 EST 2015


Dear Chasank,

Thank you so much :), I really mean it.

I just have a few questions,

1) In terms of memory management is it better to opt for a vector or a
linked list? Because I see you are making use of vectors, and having done
some research myself, I found that vectors have faster access time than
linked lists.

2) I'm not sure if I have asked this question before, but basically I want
to group some objects/vtk actors together so that they can move in unison
whilst other actors stay where they are. Having done some research myself,
I found that I may need to incorporate a vtkAssembly. There is currently an
example on YouTube, of a similar software that I am trying to implement.
Basically, I want to group and ungroup objects on screen/memory, but I am
not sure on how to implement the data structure. This is the link to the
video - https://www.youtube.com/watch?v=iy0gTaN3BKI, I am trying to
implement a feature similar to the one shown between 3:00 - 6:05 minutes of
the video.

3) What other properties, do you feel are essential to store in regards to
a vtkActor.

I would greatly appreciate it if you could answer my queries. Once again,
thank you so much for answering my previous queries.

On Sun, Jan 11, 2015 at 1:46 AM, chasank <chasank at gmail.com> wrote:

> A small fix on code;
>
> for( it; it != this->actors.end(); ++it)
> {
>    collection->AddItem((*it)->GetViewProp()); // Implement on Actor class
> }
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Storing-actors-into-memory-C-tp5729971p5730063.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/9b0ccf2c/attachment.html>


More information about the vtkusers mailing list