<div dir="ltr">On Tue, Jan 6, 2015 at 5:51 PM, Student Life <span dir="ltr"><<a href="mailto:lifestudent37@gmail.com" target="_blank">lifestudent37@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Dear David Doria,<div><br></div><div>Thank you for your response. </div><div><br></div><div>I did some research into the<b> vtkAssembly</b> class and found that the method, <b>'void AddPart (vtkProp3D *)'</b> adds the part. However, it takes a <b>vtkProp3D</b> object as its parameter, but then <b>vtkActor </b>inherits from <b>vtkProp3D.</b> Would I be right in saying that this function would still work, as my objects are all declared as <b>vtkActor </b>and not <b>vtkProp3D?</b></div></div></blockquote><div><br></div><div>Yes, that's exactly how it is done in the example I sent.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>The only sort of difficulty/concern I am having is storing more than one <b>vtkActor </b>in a <b>vtkRenderer.</b></div><div><br></div><div>So far, I intend on implementing an actor class in C++, and then another class called 'MultipleActors' which takes instances of the actor class and stores it as a linked list. However, I am not sure if this is a wise thing to do. Is there another way/data structure that I could use for storing multiple actors into memory in C++?</div></div></blockquote><div><br></div><div>Sure, you can do whatever you want with your pointers (such as store them in a std::vector, as John pointed out).<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Also, in regards to moving the actor independently, I want to make use of matrices? How do I incorporate this into my actor class/VTK?</div></div></blockquote><div><br>You can set the "transform" (vtkActor::SetTransform) of an actor like this:<br><br><a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TransformActor">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/TransformActor</a><br><br></div><div>and you can use vtkTransform::SetMatrix to specify a transform matrix directly:<br><br><a href="http://www.vtk.org/doc/nightly/html/classvtkTransform.html">http://www.vtk.org/doc/nightly/html/classvtkTransform.html</a><br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Finally, I am slightly confused about how the<b> vtkPolyDataMapper</b> works/is incorporated with <b>vtkActors</b>? Does every <b>vtkActor </b>have its own <b>vtkPolyDataMapper?</b> Are rotations and the mathematics behind the <b>vtkPolyDataMapper?</b></div></div></blockquote><div><br></div><div>Yes, every actor needs a mapper. I don't believe any transforms are applied in the mapper, but rather directly to the actor as I mentioned above.<br></div><div> <br></div><div>David<br></div></div><br></div></div>