[vtkusers] Is it possible using VTK..??
Rakesh Patil
rakeshthp at in.com
Tue Mar 9 03:33:14 EST 2010
hiWell, that creates two more doubts in my mind... Ihave several types of data to be displayed, like, scattered xyz data,triangular mesh data, poly lines, polyvertex, polygons, circles etc.. Soif i create a collection of actors, later on after picking them, howwill I classify which actor contains what data..??Secondly,usingActor>GetMapper()>Getinput() and you have yourPolyDatacan i make any changes to the data in the polydata..??For example, in the polyline data, i want to change the value of aparticular vertex, and after changing this value, the change shouldimmediately be reflected on the vtk window.. Can this be done..??ThanksRegardsRakeshPatil Original message From:Darshan Pai< darshanpai at gmail.com >Date: 07 Mar 10 05:36:08Subject:Re: [vtkusers] Is it possible using VTK..??To: Rakesh Patil The polylines each has its own polyData which means it is mapped to a seperate actor I am assuming.So you can use a vtkActorCollection class and add these actors to the collection usi
ng AddProp() functionNow when the CellPicker picks any PolyLine, it basically can identify the Prop selected using the Getprop() function Theis you can reference in the collection using the IsItemPresent() function in the vtkActorCollection classActor>GetMapper()>Getinput() and you have your PolyDataHope that helpsRegards DarshanOn Fri, Mar 5, 2010 at 11:10 PM, Rakesh Patilwrote:Hi,I am not sure what you mean by solid boundary and soft boundary .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.?? But when you pick the paticular polyline , you know which prop is thatby say making an ActorCollection and finding the Prop in there.I didnt find any example of this class. How do i use this..?? Anyways, will give it a try..CellPicker has a GetProp Function. From the Prop you can get your Datab
ack.Will try this also..Thanks RegardsRakesh Patil Original message From:Darshan Pai< darshanpai at gmail.com > Date: 06 Mar 10 01:59:42Subject:Re: [vtkusers] Is it possible using VTK..??To: Rakesh Patil I am not sure what you mean by solid boundary and soft boundary .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.RegardsDarshanOn Fri, Mar 5, 2010 at 10:35 AM, Rakesh Patilwrote:Dear users,I'm back again with is it possible question.. I have a set of polylines.. Each polyline is having its own polydata.. Now i select this data using vtkCellPicker. After selecting, I need to draw a circle around this polyline. Is this possible..??Let me remind you, there are several polylines, and only one polyline is to be selected... Now the problem is after picking this polyline,how will i come to know which polyline is selected an
d how to get the data of that polyline..?? Secondly, this polyline defines a boundary. 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.?I have attached a sample image file how i want the output to be..Any ideas ..?? ThanksRegardsRakesh PatilDear vtkusers ! Get Yourself a cool, short @in.com Email ID now! Powered by www.kitware.comVisit other Kitware opensource projects at http://www.kitware.com/opensource/opensource.htmlPlease keep messages ontopic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTKFAQFollow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100309/f6678c1c/attachment.htm>
More information about the vtkusers
mailing list