MantisBT - VTK
View Issue Details
0010981VTK(No Category)public2010-07-12 11:172016-08-12 09:55
Eric Monson 
Kitware Robot 
normalminoralways
closedmoved 
OS X10.6.4
 
 
0010981: vtkPropAssembly can't turn off visilibity of sub-assembly
If you try to turn off the visibility of a sub-assembly of a vtkPropAssembly, ResetCamera ignores the supposedly invisible element, but it is in fact still visible. In Steps To Reproduce I'll put a Python script that demonstrates the problem. (The vtkAssembly that contains a sphere should be invisible, but it's not, although the camera reset centers on the cube alone.)
import vtk

sphere = vtk.vtkSphereSource()
sphMapper = vtk.vtkPolyDataMapper()
sphMapper.SetInputConnection(sphere.GetOutputPort())
sphActor = vtk.vtkActor()
sphActor.SetMapper(sphMapper)

cube = vtk.vtkCubeSource()
cubeMapper = vtk.vtkPolyDataMapper()
cubeMapper.SetInputConnection(cube.GetOutputPort())
cubeActor = vtk.vtkActor()
cubeActor.SetMapper(cubeMapper)
cubeActor.SetPosition(1,1,1)

sphAssemb = vtk.vtkAssembly()
sphAssemb.AddPart(sphActor)

mothAssemb = vtk.vtkPropAssembly()
mothAssemb.AddPart(cubeActor)
mothAssemb.AddPart(sphAssemb)

sphAssemb.SetVisibility(0)
mothAssemb.SetVisibility(1)

ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)

ren.AddViewProp(mothAssemb)
ren.ResetCamera()
renWin.Render()
iren.Start()
This may be related to bug 10979: http://www.vtk.org/Bug/view.php?id=10979 [^]
No tags attached.
Issue History
2010-07-12 11:17Eric MonsonNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:55Kitware RobotNote Added: 0037185
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionopen => moved
2016-08-12 09:55Kitware RobotAssigned To => Kitware Robot

Notes
(0037185)
Kitware Robot   
2016-08-12 09:55   
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.