<div><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 8:56 AM, Anka Kochanowska <span dir="ltr"><<a href="mailto:pluszcz@gmail.com">pluszcz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi!<br>
Please, send messages to vtkusers, this way, you might get better answers :-)<br>
Something like:<br>
<br>
vtkAssembly *assembly;<br>
vtkImagePlaneActor * plane = vtkImagePlaneActor::New();<br>
plane->SetInput(...);<br>
plane->SetUserTransform( ... );<br>
...<br>
assembly->AddPart( plane );<br>
<br>
Anka<br>
<br>
On Thu, Jan 21, 2010 at 8:36 AM, KS Jothybasu <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>> wrote:<br>
> Thanks,<br>
><br>
> Do you mean that its possible to add actors to an assembly?<br>
><br>
> I am new to vtk and in the learning phase. If thats's possible then I will<br>
> try that!<br>
><br>
> Thanks,<br>
><br>
> Jothy<br>
<div><div></div><div class="h5">><br>
> On Thu, Jan 21, 2010 at 12:59 PM, Anka Kochanowska <<a href="mailto:pluszcz@gmail.com">pluszcz@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi!<br>
>> It would need some work in UI. You might keep a list of selected<br>
>> actors and then apply the same transform to all the actors from the<br>
>> list.<br>
>> Would be easier to have actors in one assembly but, that probably is<br>
>> not your intention.<br>
>> Anka<br>
>><br>
>><br>
>> On Thu, Jan 21, 2010 at 7:52 AM, David Doria <<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>><br>
>> wrote:<br>
>> > On Fri, Jan 15, 2010 at 7:32 AM, KS Jothybasu <<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> Hi,<br>
>> >><br>
>> >> I would like to select multiple actors with ctrl/shift key amd move<br>
>> >> them<br>
>> >> at once.<br>
>> >><br>
>> >> How to do this?<br>
>> >><br>
>> >> Thanks<br>
>> >><br>
>> >> Jothy<br>
>> >><br>
>> ><br>
>> > This is another case where a couple of "nope, I've never seen something<br>
>> > like<br>
>> > this" from a couple of experienced users could at least bring some<br>
>> > closure<br>
>> > to the issue.<br>
>> > Anyone?<br>
>> > Thanks,<br>
>> ><br>
>> > David<br>
>> > _______________________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Please keep messages on-topic and check the VTK FAQ at:<br>
>> > <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
>> ><br>
>> ><br>
>> _______________________________________________<br>
</div><div class="h5"><br></div></div></blockquote><div><br></div><div>I made a demo of assembly's here:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Interaction/Assembly">http://www.vtk.org/Wiki/VTK/Examples/Interaction/Assembly</a><div>
<br></div><div>However, I don't think this is exactly what you were asking. What I understood is that you want to have the user select actors, and add them to an assembly at runtime. I guess you could subclass the TrackballActor interactor, check for which object was selected, and maintain the assembly variable as an ivar.</div>
<div><br></div><div>Let us know if you get it working.</div><div><br clear="all">Thanks,<br><br></div><div>David</div></div></div>