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

Widget for selecting a corner or side of a square. More...

#include <PCornerSelector.h>

Inheritance diagram for PCornerSelector:
PLineItem PWidget UWidget VContainer Updateable PColorbarCornerSelector

Public Member Functions

 PCornerSelector (std::string tag, std::string title)
 
- 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
 
void checked (bool on)
 
virtual std::vector< double > getValue () const
 
virtual void setValue (const std::vector< double > &v)
 
- Protected Member Functions inherited from PLineItem
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
 

Static Protected Member Functions

static bool equalsf (float a, float b)
 

Detailed Description

Widget for selecting a corner or side of a square.

Author
Stas Jaroszynski

Widget that presents a collection of checkboxes orientated in a square, allowing the user to to select either a corner or side.

Definition at line 13 of file PCornerSelector.h.

Constructor & Destructor Documentation

◆ PCornerSelector()

PCornerSelector::PCornerSelector ( std::string  tag,
std::string  title 
)

Member Function Documentation

◆ checked()

void PCornerSelector::checked ( bool  on)
protected

◆ equalsf()

static bool PCornerSelector::equalsf ( float  a,
float  b 
)
inlinestaticprotected

Definition at line 23 of file PCornerSelector.h.

◆ getValue()

virtual std::vector< double > PCornerSelector::getValue ( ) const
protectedvirtual

Reimplemented in PColorbarCornerSelector.

◆ setValue()

virtual void PCornerSelector::setValue ( const std::vector< double > &  v)
protectedvirtual

Reimplemented in PColorbarCornerSelector.

◆ updateGUI()

void PCornerSelector::updateGUI ( ) const
overrideprotectedvirtual

Implements PWidget.


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