[vtkusers] vtkDistanceWidget and Dicom Images
Jothy
jothybasu at gmail.com
Tue Oct 19 13:58:23 EDT 2010
This python script works fine for me!
self.DistanceWidgetA=vtk.vtkDistanceWidget()
self.DistanceWidgetA.SetInteractor(self.frameA.GetRenderWindow().GetInteractor())
self.DistanceWidgetA.CreateDefaultRepresentation()
self.DistanceWidgetA.GetRepresentation().SetLabelFormat("%-#6.3gmm")
self.frameA.show()
self.DistanceWidgetA.On()
Here self.frameA is the QVTKWidget.
Jothy
On Tue, Oct 19, 2010 at 6:48 PM, Leonardo M. Ramé <l.rame at griensu.com>wrote:
> On 2010-10-19 13:39:49 -0400, John Drescher wrote:
> > > I would use vtkChangeInformation filter right after the reader to
> > > change the spacing.
> > >
> >
> > I meant vtkImageChangeInformation
> >
> > John
>
> I'm going crazy trying to find an example on the web, could you give me
> one?
>
> --
> Leonardo M. Ramé
> http://leonardorame.blogspot.com
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow 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/20101019/b6fe8d44/attachment.htm>
More information about the vtkusers
mailing list