1 / 24

VTK Widgets

VTK Widgets. William J. Schroeder Kitware, Inc. June 2006. Thanks. National Library of Medicine / NIH Dr. Terry Yoo: A2D2 awards (Algorithms, Adaptors, and Data Distribution) National Science Foundation Visual Journal project NIH National Center for Biomedical Computing NAMIC

armine
Télécharger la présentation

VTK Widgets

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. VTK Widgets William J. Schroeder Kitware, Inc. June 2006

  2. Thanks • National Library of Medicine / NIH • Dr. Terry Yoo: A2D2 awards (Algorithms, Adaptors, and Data Distribution) • National Science Foundation • Visual Journal project • NIH National Center for Biomedical Computing • NAMIC • Contributors • Will Schroeder • Lisa Avila • Karthik Krishnan • Brad King • Sebastien Barre • Dave Cole

  3. Overview • Goals • Architecture • Widgets • Implementation

  4. Goals • Improve human-data interaction • Provide palette of widgets supporting • Segmentation • Registration • Data interaction • Text and annotation • Light, camera, etc. manipulation • Support client-server (distributed) computing • Rework initial design

  5. Design Goals • Separate representation from event processing • Support distributed processing (client-server) • Introduce translation mechanism between events and widget behavior • Support hierarchical use of widgets • Create general “handle” framework for positioning points

  6. RenderWindow Renderer Events Render() vtkAbstractWidget vtkWidgetRepresentation(type of vtkProp) Architecture • Decoupling representation from event processing

  7. Event Translation

  8. Widget Hierarchies • Example: vtkDistanceWidget • Uses two instances of vtkHandleWidget • Responds to events from its handles • Notion of “parent” • Reduce number of events • Reduce number of Render() invocations • Can change behavior of widget by using different types of handles HandleWidget HandleWidget

  9. Handle Framework • Types of handles • 2D (display space) • 3D (world space) • Constrained • To plane • To surface • Etc?

  10. Widgets • Handles

  11. Widgets (cont.) • vtkSliderWidget • 2D • 3D • vtkBorderWidget • Widgets with rectangular borders • vtkTextWidget • Position & size text

  12. Widgets (cont.) • BalloonWidget • Text and/or image in rectangular popup

  13. Widgets (cont.) • vtkCameraWidget • Keyframe &playback camera • vtkCaptionWidget • Text with leader

  14. Widgets (cont.) • vtkCheckerboardWidget • Interleave two images • vtkRectilinearWipeWidget • Window pane(2x2 checkerboard)with movable focus

  15. Widgets (cont.) • vtkContourWidget • 2D (on plane) • 3D (move contours through slices in a volume)

  16. vtkDistanceWidget Measure distance between points vtkAngleWidget Measure angles Widgets (cont.)

  17. Widgets (cont.) • vtkSeedWidget • Add one or more seeds / markers • vtkAffineWidget • Translate • Scale • Rotate • Shear images

  18. Widgets (cont.) • vtkBiDimensionalWidget • Tumor response (RECIST vs WHO)

  19. Box Implicit Plane Widgets (cont.)

  20. Finite Plane Line Widgets (cont.)

  21. vtkScalarBarWidget vtkSphereWidget Widgets (cont.)

  22. Widgets (cont.) • vtkImagePlaneWidget

  23. Widgets (cont.) • vtkSplineWidget

  24. Status • Currently available in VTK CVS • New subdirectory VTK/Widgets • Work in progress; lots of polishing required • Tests in Widgets/Testing/Cxx • Uncomment in CMakeLists.txt • Valid images not yet created, nor event playback scripts • Looking for feedback • Will add Tcl tests as well

More Related