ngscopeclient 0.1-dev+51fbda87c
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ScopeDeskewWizard Class Reference
Inheritance diagram for ScopeDeskewWizard:
Inheritance graph
[legend]
Collaboration diagram for ScopeDeskewWizard:
Collaboration graph
[legend]

Public Member Functions

 ScopeDeskewWizard (std::shared_ptr< TriggerGroup > group, std::shared_ptr< Oscilloscope > secondary, MainWindow *parent, Session &session)
 
virtual bool DoRender ()
 Renders the dialog and handles UI events. More...
 
- Public Member Functions inherited from Dialog
 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 ()
 

Protected Types

enum  state_t {
  STATE_WELCOME_1 , STATE_WELCOME_2 , STATE_WELCOME_3 , STATE_WELCOME_4 ,
  STATE_WELCOME_5 , STATE_ACQUIRE , STATE_CORRELATE , STATE_DONE ,
  STATE_CLOSE
}
 

Protected Member Functions

void DoMainProcessingFlow ()
 
void StartCorrelation ()
 
void DoProcessWaveformUniformUnequalRate (UniformAnalogWaveform *ppri, UniformAnalogWaveform *psec)
 
void DoProcessWaveformUniform4xRateVulkan (UniformAnalogWaveform *ppri, UniformAnalogWaveform *psec)
 
void DoProcessWaveformUniformUnequalRateVulkan (UniformAnalogWaveform *ppri, UniformAnalogWaveform *psec)
 
void DoProcessWaveformUniformEqualRateVulkan (UniformAnalogWaveform *ppri, UniformAnalogWaveform *psec)
 
void PostprocessVulkanCorrelation ()
 
void DoProcessWaveformSparse (SparseAnalogWaveform *ppri, SparseAnalogWaveform *psec)
 
void ChannelSelector (const char *name, std::shared_ptr< Oscilloscope > scope, StreamDescriptor &stream)
 
- Protected Member Functions inherited from Dialog
bool FloatInputWithApplyButton (const std::string &label, float &currentValue, float &committedValue)
 Helper for displaying a floating-point input box with an "apply" button.
 
bool TextInputWithApplyButton (const std::string &label, std::string &currentValue, std::string &committedValue)
 
bool IntInputWithImplicitApply (const std::string &label, int &currentValue, int &committedValue)
 
bool UnitInputWithExplicitApply (const std::string &label, std::string &currentValue, 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.
 

Protected Attributes

enum ScopeDeskewWizard::state_t m_state
 
std::shared_ptr< TriggerGroupm_group
 
std::shared_ptr< Oscilloscopem_secondary
 
MainWindowm_parent
 
Sessionm_session
 
bool m_useExtRefPrimary
 
bool m_useExtRefSecondary
 
int m_measureCycle
 
time_t m_lastTriggerTimestamp
 
int64_t m_lastTriggerFs
 
StreamDescriptor m_primaryStream
 
StreamDescriptor m_secondaryStream
 
std::vector< float > m_correlations
 
std::vector< int64_t > m_skews
 
float m_bestCorrelation
 
int64_t m_bestCorrelationOffset
 
bool m_gpuCorrelationAvailable
 
int64_t m_maxSkewSamples
 
int64_t m_medianSkew
 Calculated total skew.
 
std::shared_ptr< QueueHandlem_queue
 
vk::raii::CommandPool m_pool
 
vk::raii::CommandBuffer m_cmdBuf
 
std::shared_ptr< ComputePipelinem_uniform4xRatePipeline
 
std::shared_ptr< ComputePipelinem_uniformUnequalRatePipeline
 
std::shared_ptr< ComputePipelinem_uniformEqualRatePipeline
 
AcceleratorBuffer< float > m_corrOut
 
- Protected Attributes inherited from Dialog
bool m_open
 
std::string m_id
 
std::string m_title
 
ImVec2 m_defaultSize
 
std::string m_errorPopupTitle
 
std::string m_errorPopupMessage
 

Additional Inherited Members

- Static Public Member Functions inherited from Dialog
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 &currentValue, 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 &currentValue, 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 &currentValue, 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 &currentValue, 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)
 

Member Function Documentation

◆ DoRender()

bool ScopeDeskewWizard::DoRender ( )
virtual

Renders the dialog and handles UI events.

Returns
True if we should continue showing the dialog False if it's been closed

Implements Dialog.


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