<br><br><blockquote>Well, that creates two more doubts in my mind... I have several types of data to be displayed, like, scattered xyz data, triangular mesh data, poly lines, polyvertex, polygons, circles etc.. So if i create a collection of actors, later on after picking them, how will I classify which actor contains what data..??<br><br>Secondly, using<br><br>Actor->GetMapper()->Getinput() - and you have your PolyData<br><br>can i make any changes to the data in the polydata..?? For example, in the polyline data, i want to change the value of a particular vertex, and after changing this value, the change should immediately be reflected on the vtk window.. Can this be done..??<br><br>Thanks<br><br>Regards<br>Rakesh Patil<br>---------- Original message ----------<br>From:Darshan Pai< darshanpai@gmail.com ><br>Date: 07 Mar 10 05:36:08<br>Subject: Re: [vtkusers] Is it possible using VTK..??<br>To: Rakesh Patil <rakeshthp@in.com><br><br>The polylines each has its o
wn polyData which means it is mapped to a seperate actor I am assuming.<br>So you can use a vtkActorCollection class and add these actors to the collection using AddProp() function<br><br>Now when the CellPicker picks any PolyLine, it basically can identify the Prop selected using the Getprop() function<br>
Theis you can reference in the collection using the IsItemPresent() function in the vtkActorCollection class<br><br>Actor->GetMapper()->Getinput() - and you have your PolyData<br><br>Hope that helps<br><br>Regards<br>
Darshan<br><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 11:10 PM, Rakesh Patil <span dir="ltr"><<a target=\"_blank\" target="\"_blank\"" href="mailto:rakeshthp@in.com">rakeshthp@in.com</a>></span> wrote:<br><font color="#000000"></font><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#000000"> Hi,</font><div class="im"><font color="#000000"><br><br><span style="font-style: italic; font-weight: bold;">I am not sure what you mean by solid boundary and soft boundary .</span><br></font></div><font color="#000000">These are the property of the polyline.. A region has a boundary. That boundary can be rigid boundary or a soft one through which water can pass for example.. this boundary is represented using polyline.. How to keep track of this property.??</font><div class="im">
<font color="#000000"><br><br><span style="font-style: italic; font-weight: bold;">But when you pick the paticular polyline , you know which prop is that
by say making an ActorCollection and finding the Prop in there.</span><br></font></div><font color="#000000">I didnt find any example of this class. How do i use this..?? Anyways, will give it a try..</font><div class="im"><font color="#000000"><br><br><span style="font-style: italic; font-weight: bold;">CellPicker has a GetProp Function. From the Prop you can get your Data
back.</span><br></font></div><font color="#000000">Will try this also..<br><br>Thanks <br><br>Regards<br><font color="#888888">Rakesh Patil</font></font><div><div></div><div class="h5"><font color="#000000"><br><font color="#000000"></font></font><blockquote><font color="#000000"><font color="#000000"><br>---------- Original message ----------<br>From:Darshan Pai< <a target=\"_blank\" href="mailto:darshanpai@gmail.com" target="\"_blank\"">darshanpai@gmail.com</a> ><br>
Date: 06 Mar 10 01:59:42<br>Subject: Re: [vtkusers] Is it possible using VTK..??<br>To: Rakesh Patil <br><br>I am not sure what you mean by solid boundary and soft boundary .<br><br>But when you pick the paticular polyline , you know which prop is that by say making an ActorCollection and finding the Prop in there . CellPicker has a GetProp Function. From the Prop you can get your Data back.<br>
<br>Regards<br>Darshan<br><br></font></font><div class="gmail_quote"><font color="#000000"><font color="#000000">On Fri, Mar 5, 2010 at 10:35 AM, Rakesh Patil <span dir="ltr"><<a target=\"_blank\" href="mailto:rakeshthp@in.com" target="\"_blank\"">rakeshthp@in.com</a>></span> wrote:<br><font color="#000000"></font><font color="#000000"></font></font></font><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000">Dear users,<br><br>I'm back again with is it possible question.. I have a set of polylines.. Each polyline is having its own polydata.. <br><br>Now i select this data using vtkCellPicker. After selecting, I need to draw a circle around this polyline. Is this possible..??<br>
<br>Let me remind you, there are several polylines, and only one polyline is to be selected... Now the problem is after picking this polyline,<br>how will i come to know which polyline is selected and how to get the data of that polyline..?? Secondly, this polyline defines a boundary. <br>
A solid boundary, and soft boundary.. The circle is to be drawn only if the polyline is a solid boundary. So this checking how can be done.?<br><br>I have attached a sample image file how i want the output to be..<br><br>
Any ideas ..?? <br><br>Thanks<br><br>Regards<br>Rakesh Patil<br><br><br></font></font></font></font><div style="border-top: 1px dashed rgb(204, 204, 204); border-bottom: 1px dashed rgb(204, 204, 204); padding: 5px;"><font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><a target=\"_blank\" href="http://mail.in.com/mails/new_reg.php?u+tm_source=invite&utm_medium=outgoing" style="font: 13px arial; color: rgb(30, 86, 161); text-decoration: none;" target="\"_blank\"">Dear <b>vtkusers !</b> Get Yourself a cool, short <b>@in.com</b> Email ID now!</a></font></font></font></font></div>
<font color="#000000"><font color="#000000"><font color="#000000"><font color="#000000"><br>_______________________________________________<br>
Powered by <a target=\"_blank\" href="http://www.kitware.com" target="\"_blank\"">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a target=\"_blank\" 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: <a target=\"_blank\" 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 target=\"_blank\" href="http://www.vtk.org/mailman/listinfo/vtkusers" target="\"_blank\"">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></font></font></font></font></blockquote></div><font color="#000000"><font color="#000000"><br>
</font></font></blockquote><font color="#000000">
</font></div></div><font color="#000000"></font></blockquote></div><br>
</rakeshthp@in.com></blockquote>