|
| PowerSupplyDialog (std::shared_ptr< SCPIPowerSupply > psu, std::shared_ptr< PowerSupplyState > state, Session *session) |
|
virtual bool | DoRender () |
|
void | RefreshFromHardware () |
|
std::shared_ptr< SCPIPowerSupply > | GetPSU () |
|
| Dialog (const std::string &title, const std::string &id, ImVec2 defaultSize=ImVec2(300, 100)) |
|
virtual bool | Render () |
| Renders the dialog and handles UI events. More...
|
|
void | RenderAsChild () |
| Runs the dialog's contents directly into a parent window.
|
|
virtual bool | DoRender ()=0 |
|
const std::string & | GetID () |
|
std::string | GetTitleAndID () |
|
|
void | ChannelSettings (int i, float v, float a, float etime) |
| A single channel's settings. More...
|
|
void | AsyncLoadState () |
|
bool | FloatInputWithApplyButton (const std::string &label, float ¤tValue, float &committedValue) |
| Helper for displaying a floating-point input box with an "apply" button.
|
|
bool | TextInputWithApplyButton (const std::string &label, std::string ¤tValue, std::string &committedValue) |
|
bool | IntInputWithImplicitApply (const std::string &label, int ¤tValue, int &committedValue) |
|
bool | UnitInputWithExplicitApply (const std::string &label, std::string ¤tValue, float &committedValue, Unit unit) |
| Input box for a floating point value with an associated unit and an "apply" button. More...
|
|
void | RenderErrorPopup () |
| Popup message when we fail to connect.
|
|
void | ShowErrorPopup (const std::string &title, const std::string &msg) |
| Opens the error popup.
|
|
|
Session * | m_session |
| Session handle so we can remove the PSU when closed.
|
|
bool | m_masterEnable |
|
double | m_tstart |
| Timestamp of when we opened the dialog.
|
|
std::shared_ptr< SCPIPowerSupply > | m_psu |
| The PSU we're controlling.
|
|
std::shared_ptr< PowerSupplyState > | m_state |
| Current channel stats, live updated.
|
|
std::vector< std::future< PowerSupplyChannelUIState > > | m_futureUIState |
|
std::vector< PowerSupplyChannelUIState > | m_channelUIState |
| Channel state for the UI.
|
|
bool | m_open |
|
std::string | m_id |
|
std::string | m_title |
|
ImVec2 | m_defaultSize |
|
std::string | m_errorPopupTitle |
|
std::string | m_errorPopupMessage |
|
|
static bool | Combo (const std::string &label, const std::vector< std::string > &items, int &selection) |
| Displays a combo box from a vector<string>
|
|
static bool | UnitInputWithImplicitApply (const std::string &label, std::string ¤tValue, float &committedValue, Unit unit) |
| Input box for a floating point value with an associated unit. More...
|
|
static bool | UnitInputWithImplicitApply (const std::string &label, std::string ¤tValue, double &committedValue, Unit unit) |
| Input box for a double precision floating point value with an associated unit. More...
|
|
static bool | UnitInputWithImplicitApply (const std::string &label, std::string ¤tValue, int64_t &committedValue, Unit unit) |
| Input box for an integer value with an associated unit. More...
|
|
static bool | TextInputWithImplicitApply (const std::string &label, std::string ¤tValue, std::string &committedValue) |
|
static void | Tooltip (const std::string &str, bool allowDisabled=false) |
| Helper based on imgui demo for displaying tooltip text over the previously rendered widget.
|
|
static void | HelpMarker (const std::string &str) |
|
static void | HelpMarker (const std::string &header, const std::vector< std::string > &bullets) |
|
◆ ChannelSettings()
void PowerSupplyDialog::ChannelSettings |
( |
int |
i, |
|
|
float |
v, |
|
|
float |
a, |
|
|
float |
etime |
|
) |
| |
|
protected |
A single channel's settings.
- Parameters
-
i | Channel index |
v | Most recently observed voltage |
a | Most recently observed current |
etime | Elapsed time for animation |
◆ DoRender()
bool PowerSupplyDialog::DoRender |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following files: