<div><div class="gmail_quote">On Thu, Jan 21, 2010 at 9:48 AM, KS Jothybasu <span dir="ltr"><<a href="mailto:jothybasu@gmail.com">jothybasu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for the demo David,<br><br>I actually mean selecting multiple actors with shift/ctrl and moving them together.<br><br>A simple example is how you select a list of files using shift/ctrl and moving them!<br><br>Thanks again,<br>
<br>Jothy<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Jan 21, 2010 at 2:29 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<div><br><div class="gmail_quote"><div><div></div><div>On Thu, Jan 21, 2010 at 8:56 AM, Anka Kochanowska <span dir="ltr"><<a href="mailto:pluszcz@gmail.com" target="_blank">pluszcz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;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" target="_blank">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>><br>
> On Thu, Jan 21, 2010 at 12:59 PM, Anka Kochanowska <<a href="mailto:pluszcz@gmail.com" target="_blank">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" target="_blank">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" target="_blank">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><br></div></div></blockquote><div><br></div></div></div><div>I made a demo of assembly's here:</div><a href="http://www.vtk.org/Wiki/VTK/Examples/Interaction/Assembly" target="_blank">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>
<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 <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br><br></blockquote></div></div></div></blockquote><div><br></div>Jothy,<div><br></div><div>I found how to check if the user is holding control or shift while they click on an actor:</div><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Interaction/ShiftAndControl">http://www.vtk.org/Wiki/VTK/Examples/Interaction/ShiftAndControl</a></div>
<div><br></div><div>You should be able to use this to add actors to a vtkAssembly. Let me know if it works out.</div><div><br clear="all">Thanks,<br><br></div><div>David </div></div></div>