• Dan Lipsa's avatar
    Set the correct window size if initial size bigger than screen. · c9fa0226
    Dan Lipsa authored
    The following programs prints the correct size:
    
    import time
    import vtk
    renWin = vtk.vtkRenderWindow()
    renWin.SetSize(30000, 20000)
    renWin.Render()
    print(renWin.GetSize())
    
    =============================
    
    import vtk
    contextView = vtk.vtkContextView()
    renWin = contextView.GetRenderWindow()
    renWin.SetSize(30000, 20000)
    renWin.Render()
    print(renWin.GetSize())
    
    =============================
    
    which is (on my machine):
    (1920, 1016)
    c9fa0226
Name
Last commit
Last update
.ExternalData Loading commit data...
.github Loading commit data...
Accelerators/Vtkm Loading commit data...
CMake Loading commit data...
Charts/Core Loading commit data...
Common Loading commit data...
Documentation Loading commit data...
Domains Loading commit data...
Examples Loading commit data...
Filters Loading commit data...
GUISupport Loading commit data...
Geovis Loading commit data...
IO Loading commit data...
Imaging Loading commit data...
Infovis Loading commit data...
Interaction Loading commit data...
Parallel Loading commit data...
Remote Loading commit data...
Rendering Loading commit data...
Testing Loading commit data...
ThirdParty Loading commit data...
Utilities Loading commit data...
Views Loading commit data...
Web Loading commit data...
Wrapping Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.hooks-config.bash Loading commit data...
CMakeLists.txt Loading commit data...
CONTRIBUTING.md Loading commit data...
CTestConfig.cmake Loading commit data...
Copyright.txt Loading commit data...
README.md Loading commit data...
vtkBanner.gif Loading commit data...
vtkLogo.ico Loading commit data...