paraq's object & element inspectors ● element inspector – how it works – improvements...
TRANSCRIPT
ParaQ's Object & Element Inspectors
● Element Inspector– How it works– Improvements
● Object Inspector– How it works– Improvements
Element Inspector
● Objects– pqDataSetModel – Implements
QabstractItemModel. It is basically a wrapper for vtkUnstructuredGrid.
– pqElementInspectorWidget – A view of the dataset.
pqDataSetModel
vtkUnstructuredGrid
pqElementInspectorWidget
Element InspectorpqDataSetModel & View
vtkUnstructuredGrid
Pipeline Transfer to Client Side
Element Inspector
● Improvements– Should use same mechanism charting uses to
pull data to client side for display.– Make several smaller requests instead of one
request for data based on what data is currently visible in the view.
Object Inspector
● pqObjectInspector – Implements QAbstractItemModel. It is a wrapping of the properties of a proxy.
pqObjectInspector
vtkSMProxy- Properties
Object Inspector
● pqObjectInspectorDelegate – Implements QitemDelegate for editing properties. Editors (line edits, combo boxes, etc... depending on property type).
pqObjectInspectorDelegate
pqObjectInspector
vtkSMProxy- Properties
Object Inspector● Custom Property Pages
– A method of adding custom panels was added in pqObjectInspectorWidget.
– ui file created in Qt designer, and widgets are named after the property they represent.
– widget properties are linked with vtkSMProxy's properties
Object Inspector
● pqSMAdaptor – Qt based interface for setting and getting proxy properties.
pqObjectInspector vtkSMProxy
- Properties
pqSMAdaptor
– Get and Set properties using QVariant– Supports all Property types (enum, int,
double, etc...) except Proxy Property
Object Inspector
● Improvements– Support Proxy Properties with pqSMAdaptor
● Frees the application from having pointers to proxies, which may go stale.
– Support auto generated panels?– Perhaps implement another custom panel
method.● We don't have much control over ui file
compatibility.