Query Dialog

From ParaQ Wiki
Jump to navigationJump to search

This is the design for a query dialog which will make it easier for users to create/extract selection or find cells/points.

  • There will be toolbutton with a "magnifying glass" or something indicating "search" in the selection toolbar.
  • This button will be enabled when the user has selected some source/filter in the pipeline browser. We are searching the data from the active source.
  • When this button pressed a dialog pops up.

SelectionQueryDialog.png


  • The dialog allows the user to specify the selection criteria. The following table lists the values in the 2 combo-boxes and the 3'rd value widget.
First Combo Second Combo Value Widget
  • Cell ID
  • Point ID
  • Global Cell ID
  • Global Point ID
  • ArrayName#1 e.g. PRESS
  • ArrayName#2
  • ...
  • is
  • is between
  • is one of
widget to enter the value, pair of values or list of values (as applicable)
Point
  • is at
  • is near
(x,y,z) point location coordinates
Cell contains (x,y,z) point location coordinates
Block ID
  • is
  • is between
  • is one of
value entry widget(s) for ("is between" and "is one of") while the composite tree widget for "is"
Block Name
  • is
  • is one of
widget to enter name(s)
  • AMR Level
  • AMR Block Number
  • is
  • is between
  • is one of
value(s) entry widget


  • For 3.8, the user can only choose one criteria. In future, we can allow the user to add multiple selection criteria by clicking a '+' button.
  • If the user checked 'Create an extracted dataset from the selection', then we automatically create the "Extract Selection filter". Otherwise, on hitting ok, we popup another dialog where the user can set the selection color and if he wants to show point/cell labels.