[vtkusers] Is it possible using VTK..??

Rakesh Patil rakeshthp at in.com
Sun Mar 7 23:28:51 EST 2010


 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..??Secondly, usingActor>GetMapper()>Getinput()  and you have your PolyDatacan 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..??ThanksRegardsRakesh Patil 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 collec
 tion using 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 yo
 ur Databack.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 sel
 ected and 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/20100308/fe393e25/attachment.htm>


More information about the vtkusers mailing list