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

#include <PVariableSelector.h>

Inheritance diagram for PVariableSelector:
PStringDropdown PLineItem PWidget UWidget VContainer Updateable PColorMapVariableSelector PScalarVariableSelector PVariableSelector2D PVariableSelector3D PXFieldVariableSelector PYFieldVariableSelector PZFieldVariableSelector PHeightVariableSelector

Public Member Functions

 PVariableSelector (const std::string &tag, const std::string &label="")
 
PVariableSelectorAddNullOption ()
 
PVariableSelectorOnlyShowForDim (int dim)
 
PVariableSelectorShowParticleVars ()
 
- Public Member Functions inherited from PStringDropdown
 PStringDropdown (const std::string &tag, const std::vector< std::string > &items, const std::string &label="")
 
void SetItems (const std::vector< std::string > &items) const
 Sets the items presented in the dropdown.
 
- Public Member Functions inherited from PLineItem
 PLineItem (const std::string &tag, const std::string &label, QWidget *centerWidget, QWidget *rightWidget)
 
 PLineItem (const std::string &tag, const std::string &label, QWidget *rightWidget)
 
 PLineItem (const std::string &label, PWidget *rightWidget)
 
- 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
 
bool isShown () const override
 
bool requireDataMgr () const override
 
int getVarType () const
 
int getRendererDimension () const
 
virtual int getDimensionality () const
 
virtual void dropdownTextChanged (std::string text) override
 
- Protected Member Functions inherited from PStringDropdown
virtual void updateGUI () const override
 
void setCustomBlankText (std::string text)
 
void updateGUI () 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
 

Additional Inherited Members

- Protected Slots inherited from PStringDropdown
virtual void dropdownTextChanged (std::string text)
 

Detailed Description

Author
Stas Jaroszynski Allows the user to select variables. Automatically switches between 2D and 3D based on the currently selected variable.

Designed to be used with a RenderParams object.

Definition at line 12 of file PVariableSelector.h.

Constructor & Destructor Documentation

◆ PVariableSelector()

PVariableSelector::PVariableSelector ( const std::string &  tag,
const std::string &  label = "" 
)

Member Function Documentation

◆ AddNullOption()

PVariableSelector * PVariableSelector::AddNullOption ( )
inline

Definition at line 19 of file PVariableSelector.h.

◆ dropdownTextChanged()

virtual void PVariableSelector::dropdownTextChanged ( std::string  text)
overrideprotectedvirtual

Reimplemented from PStringDropdown.

◆ getDimensionality()

virtual int PVariableSelector::getDimensionality ( ) const
protectedvirtual

Reimplemented in PVariableSelector2D, and PVariableSelector3D.

◆ getRendererDimension()

int PVariableSelector::getRendererDimension ( ) const
protected

◆ getVarType()

int PVariableSelector::getVarType ( ) const
protected

◆ isShown()

bool PVariableSelector::isShown ( ) const
overrideprotectedvirtual

Reimplemented from PWidget.

◆ OnlyShowForDim()

PVariableSelector * PVariableSelector::OnlyShowForDim ( int  dim)
inline

Definition at line 24 of file PVariableSelector.h.

◆ requireDataMgr()

bool PVariableSelector::requireDataMgr ( ) const
inlineoverrideprotectedvirtual

Reimplemented from PWidget.

Definition at line 38 of file PVariableSelector.h.

◆ ShowParticleVars()

PVariableSelector * PVariableSelector::ShowParticleVars ( )
inline

Definition at line 29 of file PVariableSelector.h.

◆ updateGUI()

void PVariableSelector::updateGUI ( ) const
overrideprotectedvirtual

Reimplemented from PStringDropdown.


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