Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 878
    • Issues 878
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 235
    • Merge requests 235
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTKVTK
  • VTKVTK
  • Issues
  • #97
Closed
Open
Issue created Jul 24, 2003 by Kitware Robot@kwrobotOwner

Window Size in vtkCanvas Does Not Affect Interactor

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


There is a bug in vtkCanvas (line 31), where the interactor is initially set to 200 by 200. Consequenty, when the window is initially set to be larger than 200 x 200, the screen coordinates of the mouse position returned by the interactor are off by 200.

Calling resize on a vtkPanel does not result in the correct size in the interactor. However, manually (expanding/shrinking the window with the mouse) resizing the window fixes this problem.

The work around that I've found is to set the interactor of the render window to the size of my window when I first create my window.

Assignee
Assign to
Time tracking