selection in paraview utkarsh ayachit kitware inc
TRANSCRIPT
![Page 1: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/1.jpg)
Selection in ParaView
Utkarsh Ayachit
Kitware Inc.
![Page 2: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/2.jpg)
Selection
• Mechanism to identify subset of a dataset• Focus on selected subset
• Inspect properties of the subset• Further process subset alone
• Track subset over time
![Page 3: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/3.jpg)
Focus on subset
![Page 4: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/4.jpg)
Track subset over time
![Page 5: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/5.jpg)
Selection in ParaView
• What are we selecting?• Data produced by a source
• Active Selection• One application wide selection• All views show the same selection if possible• Creating a new selection results in removing the old one• Transient: cannot be saved in state files, does not respect
undo/redo.
![Page 6: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/6.jpg)
Selection Components
• Selection Inspector• Inspect the active selection
• Spreadsheet View• Inspect the selected data
![Page 7: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/7.jpg)
Active Selection Inspector
• Accessible through View | Selection Inspector
• Used to create/modify active selection
• Shows the properties of the active selection
• Control how the active selection is shown
![Page 8: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/8.jpg)
Create new selection
Active selectionproperties
Selected cells ids
Selection type
Selection displayProperties/Labeling
![Page 9: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/9.jpg)
Spreadsheet View
• Used to view the raw cell/point data
• To create: split an existing view and select “Spreadsheet view”
• Display tab provides option to view only selected items
![Page 10: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/10.jpg)
What is shown in the view
Show only selected items
Select block to inspect
Attribute shown
![Page 11: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/11.jpg)
Selecting using 3D View
• Surface cells/points• Cells/Points within a frustum• Blocks in a composite dataset
![Page 12: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/12.jpg)
Select Cells on surface
• Used to select any set of visible cells on the surface of a dataset
• Representation should be points / wireframe / surface / surface with edges
• With 3D view active, use the ‘Select Cells On’ tool button (shortcut ‘S’) to enter selection mode
• Click and drag to select cells
![Page 13: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/13.jpg)
Select Points on surface
• Same as selecting cells on surface except use ‘Select Points On’ tool button.
![Page 14: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/14.jpg)
Selection Linking
• Selection is linked among all views (whenever possible)
• Active selection is shown in all view (whenever possible)
![Page 15: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/15.jpg)
Select Cells Through
• Select all cells intersecting a frustum
• Use ‘Select Cells Through’ • Selection Inspector has a
check button to show the selection frustum
• Use ‘Select Points Through’ for selecting points
![Page 16: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/16.jpg)
Select Blocks
• Select blocks in a composite dataset
![Page 17: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/17.jpg)
Composite Datasets
• Composite datasets are datasets comprising of other datasets.
• Group together assemblies: vtkMultiBlockDataSet
• Adaptive mesh refinement: vtkHierarchicalBoxDataSet
![Page 18: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/18.jpg)
Select Blocks
• Use ‘Select Block’ (shortcut ‘B’) to select blocks in a composite dataset
• Keep Ctrl pressed when clicking to add to existing selected blocks
![Page 19: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/19.jpg)
Selecting using Spreadsheet View
• Can create Point/Cell index based selections (depending on what attribute is being shown)
• Click to select rows as one would in any spreadsheet application
• Can use modifiers such as Ctrl, Shift while selecting
• Selection is shown in all views
![Page 20: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/20.jpg)
Selecting using Selection Inspector
• Create new selections• Convert selections
• id based to global id based• frustum to id based
• Modify existing selection
![Page 21: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/21.jpg)
Location based selection
• Select cell enclosing the location or select point closet to the location within a threshold
• Created using the Selection Inspector and changing the selection type to Locations
• Provides widgets to specify locations
![Page 22: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/22.jpg)
Threshold based selection
• Select cells or points that have an attribute value within the specified range
• Created using Selection Inspector
![Page 23: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/23.jpg)
Labeling Selected Items
• Label selected cells/points using Selection Inspector
• Choose the array/id to label with
![Page 24: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/24.jpg)
Extract Selection
• Extract selected subset for further processing
• Create ‘Extract Selection’ filter• Make selection and ‘Copy
Active Selection’• Hit ‘Apply’
![Page 25: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/25.jpg)
Extract Selection
• Once a selection is extracted it’s treated as a first class data source.
• One can apply filters to it as usual.
• Extracted selection get saved in state files.
![Page 26: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/26.jpg)
Plot Selection over Time
• Plot data variable changes over time for a set of cells or points
• Use ‘Plot Selection Over Time’ filter
• Make selection and ‘Copy Active Selection’
• Output can be shown on a XY plot
![Page 27: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/27.jpg)
Plot Selection over Time
• Changes for each cell/point selected can be plotted, one at a time, by choosing the block on the Display Tab
![Page 28: Selection in ParaView Utkarsh Ayachit Kitware Inc](https://reader036.vdocument.in/reader036/viewer/2022062417/5514c123550346b0478b47be/html5/thumbnails/28.jpg)
Conclusion
• Selection provides mechanism to focus on a subset of the dataset• Selection identifies the cells/points in the output of a filter/source• Active selection is shown in all views (when applicable)• Selection inspector can be used to create/modify the active selection• Spreadsheet view can be used to explore the attribute values for the
selected items• Extracting a selection makes it possible to further processes the
selected subset