View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010981VTK(No Category)public2010-07-12 11:172016-08-12 09:55
ReporterEric Monson 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS XOS Version10.6.4
Product Version 
Target VersionFixed in Version 
Summary0010981: vtkPropAssembly can't turn off visilibity of sub-assembly
DescriptionIf 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.)
Steps To Reproduceimport 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()
Additional InformationThis may be related to bug 10979: http://www.vtk.org/Bug/view.php?id=10979 [^]
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0037185)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2010-07-12 11:17 Eric Monson New Issue
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:55 Kitware Robot Note Added: 0037185
2016-08-12 09:55 Kitware Robot Status expired => closed
2016-08-12 09:55 Kitware Robot Resolution open => moved
2016-08-12 09:55 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team