VAPOR3 3.9.4
PVariableSelector.h
Go to the documentation of this file.
1#pragma once
2
3#include "PStringDropdown.h"
4
11
13 bool _addNull = false;
14 int _onlyShowForDim = -1;
15 bool _showParticleVars = false;
16
17public:
18 PVariableSelector(const std::string &tag, const std::string &label = "");
20 {
21 _addNull = true;
22 return this;
23 }
25 {
26 _onlyShowForDim = dim;
27 return this;
28 }
30 {
31 _showParticleVars = true;
32 return this;
33 }
34
35protected:
36 void updateGUI() const override;
37 bool isShown() const override;
38 bool requireDataMgr() const override { return true; }
39 int getVarType() const;
41 virtual int getDimensionality() const;
42 virtual void dropdownTextChanged(std::string text) override;
43};
44
49
51public:
53
54protected:
55 int getDimensionality() const override { return 2; }
56};
57
62
64public:
66
67protected:
68 int getDimensionality() const override { return 3; }
69};
70
72public:
74};
76public:
78};
80public:
82};
84public:
86};
88public:
90};
92public:
94};
int getDimensionality() const override
int getDimensionality() const override
bool isShown() const override
bool requireDataMgr() const override
void updateGUI() const override
PVariableSelector * ShowParticleVars()
int getRendererDimension() const
PVariableSelector * AddNullOption()
int getVarType() const
virtual int getDimensionality() const
PVariableSelector * OnlyShowForDim(int dim)
PVariableSelector(const std::string &tag, const std::string &label="")
virtual void dropdownTextChanged(std::string text) override