[vtkusers] How to make vtkLogoWidget undraggable

vincentrivola vincentrivola at hotmail.com
Mon Dec 21 10:44:53 EST 2015


To give you more information, here is part of the code:


vincentrivola wrote
> 			File logoFile = new File(getClass().getResource(fileName).toURI());
> 			vtkPNGReader pngReader = new vtkPNGReader();
> 			pngReader.SetFileName(logoFile.getPath());
> 			pngReader.Update();
> 			
> 			vtkLogoRepresentation logoRepresentation = new vtkLogoRepresentation();
> 			logoRepresentation.SetImage(pngReader.GetOutput());
> 			logoRepresentation.SetPosition(posX,0.85);
> 			logoRepresentation.SetPosition2(0.15, 0.15);
> 			logoRepresentation.GetImageProperty().SetOpacity(1.0);
> 			logoRepresentation.SetDragable(0);
> 			logoRepresentation.SetPickable(0);
> 			logoRepresentation.SetProportionalResize(1);
> 			logoRepresentation.SetPickingManaged(false);
> 			
> 			vtkLogoWidget logoWidget = new vtkLogoWidget();
> 			logoWidget.SetRepresentation(logoRepresentation);
> 			logoWidget.SetInteractor(panel3d.getRenderWindowInteractor());
> 			logoWidget.On();

As you can see I also tried to disable selection, picking and draggability
on the vtkLogoRepresentation element, but it does not change anything.




--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735611.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list