View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001055VTK(No Category)public2004-08-12 18:312016-08-12 09:54
ReporterGoodwin Lawlor 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001055: vtkInteractorStyle*Actor produces warning from vtkTransform
DescriptionWhen 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 .
TagsNo tags attached.
Project
Type
Attached Filespatch file icon vtkInteractorStyleTrackballActor.cxx.patch [^] (4,414 bytes) 1969-12-31 19:00 [Show Content]

 Relationships

  Notes
(0036744)
Kitware Robot (administrator)
2016-08-12 09:54

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 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


Copyright © 2000 - 2018 MantisBT Team