VAPOR3 3.9.4
Public Types | Public Member Functions | Protected Member Functions | List of all members
PMultiVarSelector Class Reference

Allows the selection of multiple variables. To add a title, use a PLabel. More...

#include <PMultiVarSelector.h>

Inheritance diagram for PMultiVarSelector:
PWidget UWidget VContainer Updateable

Public Types

enum  Mode { Auto , D2 , D3 , Both }
 

Public Member Functions

 PMultiVarSelector (std::string tag)
 
PMultiVarSelectorDisplayVars (Mode mode)
 
- Public Member Functions inherited from PWidget
 PWidget (const std::string &tag, QWidget *widget)
 
void Update (VAPoR::ParamsBase *params, VAPoR::ParamsMgr *paramsMgr=nullptr, VAPoR::DataMgr *dataMgr=nullptr) override
 Follows the Vapor GUI update function convention. Update the element.
 
PWidgetShowBasedOnParam (const std::string &tag, int whenEqualTo=true)
 
PWidgetEnableBasedOnParam (const std::string &tag, int whenEqualTo=true)
 
PWidgetSetTooltip (const std::string &text)
 
void setToolTip (const QString &)=delete
 
- Public Member Functions inherited from UWidget
 VContainer (QWidget *w)
 
- Public Member Functions inherited from VContainer
 VContainer (QWidget *w)
 
void AddBottomStretch ()
 
void SetPadding (int left, int top, int right, int bottom)
 
QLayout * layout () const =delete
 
void setLayout (QLayout *)=delete
 
virtual void Update (VAPoR::ParamsBase *params, VAPoR::ParamsMgr *paramsMgr=nullptr, VAPoR::DataMgr *dataMgr=nullptr)=0
 

Protected Member Functions

void updateGUI () const override
 
QSize minimumSizeHint () const override
 
bool requireDataMgr () const override
 
- Protected Member Functions inherited from PWidget
virtual void updateGUI () const =0
 
virtual bool requireParamsMgr () const
 
virtual bool requireDataMgr () const
 
virtual bool isShown () const
 
virtual bool isEnabled () const
 
const std::string & getTag () const
 
VAPoR::ParamsBasegetParams () const
 
VAPoR::ParamsMgrgetParamsMgr () const
 
VAPoR::DataMgrgetDataMgr () const
 
SettingsParamsgetSettingsParams () const
 
void setParamsDouble (double v)
 
void setParamsLong (long v)
 
void setParamsString (const std::string &v)
 
double getParamsDouble () const
 
long getParamsLong () const
 
std::string getParamsString () const
 
template<class T >
T * getParams () const
 

Detailed Description

Allows the selection of multiple variables. To add a title, use a PLabel.

Author
Stas Jaroszynski By default this shows the vars with the same dimension as the renderer. This can be changed with DisplayVars(Mode)

Definition at line 14 of file PMultiVarSelector.h.

Member Enumeration Documentation

◆ Mode

Enumerator
Auto 
D2 
D3 
Both 

Definition at line 16 of file PMultiVarSelector.h.

Constructor & Destructor Documentation

◆ PMultiVarSelector()

PMultiVarSelector::PMultiVarSelector ( std::string  tag)

Member Function Documentation

◆ DisplayVars()

PMultiVarSelector * PMultiVarSelector::DisplayVars ( Mode  mode)

◆ minimumSizeHint()

QSize PMultiVarSelector::minimumSizeHint ( ) const
overrideprotected

◆ requireDataMgr()

bool PMultiVarSelector::requireDataMgr ( ) const
inlineoverrideprotectedvirtual

Reimplemented from PWidget.

Definition at line 24 of file PMultiVarSelector.h.

◆ updateGUI()

void PMultiVarSelector::updateGUI ( ) const
overrideprotectedvirtual

Implements PWidget.


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