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

#include <PSection.h>

Inheritance diagram for PSection:
PWidget UWidget VContainer Updateable PCameraControlsSection PFidelitySection PRegionSelector PSliceOffsetSelector PSliceOrientationSelector PSliceOriginSelector

Public Member Functions

 PSection (const std::string &label="", const PGroup::List &widgets={})
 
PSectionAdd (PWidget *pw)
 Adds a widget.
 
PSectionAdd (const PGroup::List &widgets)
 
- 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
 
- 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

Same as a PGroup however collated inside of a VSection

Groups together PWidgets. See ParamsWidgetDemo for example use cases.

Represents a section/group to be used in the sidebar. Provides a consistent layout which is not supposed to be changed Provides a settings menu that is intended to provide extra options for the parameters that are shown within this section, for example resetting to default values.

Prefer the use of VSectionGroup when possible.

Definition at line 13 of file PSection.h.

Constructor & Destructor Documentation

◆ PSection()

PSection::PSection ( const std::string &  label = "",
const PGroup::List widgets = {} 
)

Member Function Documentation

◆ Add() [1/2]

PSection * PSection::Add ( const PGroup::List widgets)

◆ Add() [2/2]

PSection * PSection::Add ( PWidget pw)

Adds a widget.

◆ updateGUI()

void PSection::updateGUI ( ) const
overrideprotectedvirtual

Implements PWidget.

Reimplemented in PSliceOriginSelector, and PSliceOffsetSelector.


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