Public Member Functions | Protected Member Functions | List of all members
pqPropertyPanelVisibilitiesBehavior Class Reference

pqPropertyVisilityBehavior allows to override properties visibility for pqProxyWidgets, similarly to the panel_visibility XML attribute. More...

#include <pqPropertyPanelVisibilitiesBehavior.h>

Inherits QObject.

Public Member Functions

 pqPropertyPanelVisibilitiesBehavior (QObject *parent)
 
 ~pqPropertyPanelVisibilitiesBehavior () override
 

Protected Member Functions

virtual QString getConfigFilePath ()
 Get configuration file from ParaView usual directories. More...
 

Detailed Description

pqPropertyVisilityBehavior allows to override properties visibility for pqProxyWidgets, similarly to the panel_visibility XML attribute.

See also
vtkSMProperty panel_visibility attribute

The configuration is read from a PropertyPanelVisibilities.json file, that should be placed under a standard ParaView configuration directory.

See also
pqCoreUtilities::findParaViewPaths for more about possible locations.

This behavior update already registered proxies and observes proxy registration. through pqServerManagerObserver.

Note
: pqProxyWidgets created before the pqPropertVisibilityBehavior instanciation will not be updated, so it may be useful to instanciate this behavior early.
: Expected configuration is a JSON formatted as follow: { group: { proxy: { property: "default", property2: "advanced" }, proxy2: { property3: "never" } ... } }

Definition at line 41 of file pqPropertyPanelVisibilitiesBehavior.h.

Constructor & Destructor Documentation

◆ pqPropertyPanelVisibilitiesBehavior()

pqPropertyPanelVisibilitiesBehavior::pqPropertyPanelVisibilitiesBehavior ( QObject *  parent)

◆ ~pqPropertyPanelVisibilitiesBehavior()

pqPropertyPanelVisibilitiesBehavior::~pqPropertyPanelVisibilitiesBehavior ( )
override

Member Function Documentation

◆ getConfigFilePath()

virtual QString pqPropertyPanelVisibilitiesBehavior::getConfigFilePath ( )
protectedvirtual

Get configuration file from ParaView usual directories.

See also
pqCoreUtilites::findParaViewPaths

The documentation for this class was generated from the following file: