[vtkusers] Question on vtkDistanceWidget

Alex Malyushytskyy alexmalvtk at gmail.com
Mon Jan 14 17:35:01 EST 2013


I believe you can get distance from presentation :
GetDistanceRepresentation () -> GetDistance();

vtkDistanceRepresentation::SetLabelFormat 	( 	const char *  		)
might help you to specify the way text is displayed.

Something like
GetDistanceRepresentation () ->SetLabelFormat 	( 	" D1 = %s") ;
should work.

Alex

On Sun, Jan 13, 2013 at 7:44 AM, Rodrigo Lovera
<lobo.theslayer at gmail.com> wrote:
> Hello everyone,
>
> I'd like to know if anyone know a way (if it exists) to get the distance
> value as a variable which can be used somewhere else in the code? and if
> there's any way to add an indicator like D1, D2, D3 instead of showing the
> magnitude of the distance.
>
>
> Thanx in advance,
> Regards.
>
> --
> Rodrigo
>
> _______________________________________________
> 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
>



More information about the vtkusers mailing list