[vtkusers] What is intermediate nodes in vtkContourWidgets?

Rakesh Patil rakeshthp at in.com
Thu Jul 22 12:00:36 EDT 2010


Dear Prathamesh,I was trying to insert the intermediate nodes.. But i failed to do so.. Well, i went through the documentation of vtkHandleRepresentation..It is an abstract class.. So do i need to derive my own class and implement some functions..?? How do i use this class with vtkContourRepresentation..? Well, i create a contour using the mouse clicks.. In this case, how can i initialize a contour with two nodes,,?? As the positions of the nodeswill be available only when user clicks on the graphics window..Thanks Original message From:"Prathamesh Kulkarni"< prathameshmkulkarni at gmail.com >Date: 22 Jul 10 20:21:38Subject: Re: Re: What is intermediate nodes in vtkContourWidgets?To: Rakesh Patil I have not had the representations changed for my application. But this may be achieved by using the vtkHandleRepresentation with your vtkContourRepresentation. To handle the intermediate nodes, you can initialize a contour with two nodes (with some representation) and allow the user to
  add more nodes (with some other representation). PrathameshOn Wed, Jul 21, 2010 at 11:42 PM, Rakesh Patilwrote: Hi Prathamesh,What i want is a contour having two end nodes displayed as a big circles or any other shapeand all the other points in the contour wherever i have clicked must be displayed in a small size Is it possible to do that..?? I mean except for the first and the last click all other nodes must be intermediate nodes.Any idea, how to do this??Thanks Original message  From:"Prathamesh Kulkarni"< prathameshmkulkarni at gmail.com >Date: 21 Jul 10 21:45:46Subject: Re: What is intermediate nodes in vtkContourWidgets? To: rakeshthp at in.comHello Rakesh, Going by the default behavior of vtkContourWidget, the representation should not have any nodes (intermediate or not) until you right click (or close the contour). You can verify this by contourrepresentation>GetNumberOfNodes();The intermediate nodes should be (though I have not) used to get the nodes within a certain ran
 ge. There are many ways to adding a node to a contour, for example: contourrepresentation>AddNodeOnContour(x, y);PrathameshMessage: 30 Date: Wed, 21 Jul 2010 20:18:51 +0530 From: "Rakesh Patil"Subject: [vtkusers] What is intermediate nodes in vtkContourWidgets? To: "vtkusers"MessageID:ContentType: text/plain; charset="utf8"Hello,From the documentation of vtkOrientedGlyphContourRepresentation,i came across intermediate nodes..?? What are these and how to addthem?? When i get the total number of intermediate nodes, i get theoutput as zero..what is this intermediate nodes and how to add them anddisplay?thanks.Dear vtkusers ! Get Yourself a cool, short @in.com Email ID now! Get Yourself a cool, short @in.com Email ID now! Get Yourself a cool, short @in.com Email ID now!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100722/2842ec21/attachment.htm>


More information about the vtkusers mailing list