MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001055 | VTK | (No Category) | public | 2004-08-12 18:31 | 2016-08-12 09:54 |
Reporter | Goodwin Lawlor | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0001055: vtkInteractorStyle*Actor produces warning from vtkTransform | ||||
Description | When using vtkInteractorStyle*Actor and a vtkActor with a UserTransform set the following warning appears: Warning: In .\vtkTransform.cxx, line 200 vtkTransform (035E3260): InternalUpdate: doing hack to support legacy code. This is deprecated in VTK 4.2. May be removed in a future version. Attached against is a patch vtkInteractorStyleTrackballActor which gets rid of the warning. Similar changes need to be made to vtkInteractorStyleJoystickActor The problem arises because vtkTransform doesn't like anyone meddling with its vtkMatrix4x4... which vtkInteractorStyle*Actor does. The proposed changes, alters the actor's orientation through the UserTransform rather than a new instance of vtkTransform. Some tcl code to illustrate the bug: package require vtk package require vtkinteraction # create a sphere source, mapper, and actor # vtkSphereSource sphere vtkPolyDataMapper sphereMapper sphereMapper SetInput [sphere GetOutput] sphereMapper GlobalImmediateModeRenderingOn vtkTransform t vtkLODActor sphereActor sphereActor SetMapper sphereMapper sphereActor SetUserTransform t # Create the Renderer, RenderWindow, and RenderWindowInteractor # vtkInteractorStyleTrackballActor style vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin iren SetInteractorStyle style # Add the actors to the renderer, set the background and size # ren1 AddActor sphereActor ren1 SetBackground 1 1 1 renWin SetSize 300 300 # Set the user method (bound to key 'u') iren AddObserver UserEvent {wm deiconify .vtkInteract} iren Initialize # Withdraw the default tk window wm withdraw . | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://www.vtk.org/Bug/file/5142/vtkInteractorStyleTrackballActor.cxx.patch | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-11-30 09:25 | Mathieu Malaterre | Assigned To | Mathieu Malaterre => François Bertel | ||
2008-11-30 20:23 | François Bertel | Assigned To | François Bertel => | ||
2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
2016-08-12 09:54 | Kitware Robot | Note Added: 0036744 | |||
2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
2016-08-12 09:54 | Kitware Robot | Assigned To | => Kitware Robot |
Notes | |||||
|
|||||
|
|