ngscopeclient v0.3
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Attributes | List of all members
DisplayedChannel Class Reference

Context data for a single channel being displayed within a WaveformArea. More...

#include <WaveformArea.h>

Inheritance diagram for DisplayedChannel:
Inheritance graph
[legend]
Collaboration diagram for DisplayedChannel:
Collaboration graph
[legend]

Public Member Functions

 DisplayedChannel (StreamDescriptor stream, Session &session)
 
YAML::Node Serialize (IDTable &table) const
 Serializes the configuration for this channel.
 
std::string GetName ()
 
StreamDescriptor GetStream ()
 
std::shared_ptr< Texture > GetTexture ()
 
void SetTexture (std::shared_ptr< Texture > tex)
 
void PrepareToRasterize (size_t x, size_t y)
 Prepares to rasterize the waveform at the specified resolution.
 
bool UpdateSize (ImVec2 newSize, MainWindow *top)
 Handles a change in size of the displayed waveform.
 
AcceleratorBuffer< float > & GetRasterizedWaveform ()
 
size_t GetRasterizedX ()
 Return the X axis size of the rasterized waveform.
 
size_t GetRasterizedY ()
 Return the Y axis size of the rasterized waveform.
 
 __attribute__ ((noinline)) std
 Gets the pipeline for drawing uniform analog waveforms, creating it if necessary.
 
 __attribute__ ((noinline)) std
 Gets the pipeline for drawing histogram waveforms, creating it if necessary.
 
 __attribute__ ((noinline)) std
 Gets the pipeline for drawing sparse analog waveforms, creating it if necessary.
 
 __attribute__ ((noinline)) std
 Gets the pipeline for drawing uniform digital waveforms, creating it if necessary.
 
 __attribute__ ((noinline)) std
 Gets the pipeline for drawing sparse digital waveforms, creating it if necessary.
 
std::shared_ptr< ComputePipeline > GetToneMapPipeline ()
 
std::shared_ptr< ComputePipeline > GetIndexSearchPipeline ()
 
bool ZeroHoldFlagSet ()
 
bool IsDensePacked ()
 
bool ShouldFillUnder ()
 
bool ZeroHoldCursorBehaviour ()
 
bool ShouldMapDurations ()
 
bool IsPersistenceEnabled ()
 
void SetPersistenceEnabled (bool b)
 
AcceleratorBuffer< uint32_t > & GetIndexBuffer ()
 
void SetYButtonPos (float y)
 
float GetYButtonPos ()
 
- Public Member Functions inherited from MeasurementDescriptor
 MeasurementDescriptor (const std::string &name)
 
 MeasurementDescriptor (const std::string &name, StreamDescriptor stream)
 
 MeasurementDescriptor (StreamDescriptor stream)
 
- Public Member Functions inherited from InputDescriptor
 InputDescriptor (const std::string &name="", const StreamDescriptor source=nullptr)
 
 InputDescriptor (const InputDescriptor &rhs)=delete
 
InputDescriptor & operator= (const InputDescriptor &rhs)=delete
 
Unit GetYAxisUnits ()
 
Unit GetXAxisUnits ()
 
WaveformBase * GetData () const
 
float GetVoltageRange ()
 

Public Attributes

std::vector< PeakLabel > m_peakLabels
 Active labels for peaks associated with the current waveform.
 
std::string m_colorRamp
 
- Public Attributes inherited from MeasurementDescriptor
format_t m_format
 
- Public Attributes inherited from InputDescriptor
std::string m_name
 Name of the input port displayed in the graph editor.
 
StreamDescriptor m_sourceStream
 The stream, if any, connected to this input port.
 
std::shared_ptr< InputConstraint > m_constraints
 Constraints that apply to this input.
 

Protected Attributes

Session & m_session
 Parent session object.
 
AcceleratorBuffer< float > m_rasterizedWaveform
 Buffer storing our rasterized waveform, prior to tone mapping.
 
AcceleratorBuffer< uint32_t > m_indexBuffer
 Buffer for X axis indexes (only used for sparse waveforms)
 
size_t m_rasterizedX
 X axis size of rasterized waveform.
 
size_t m_rasterizedY
 Y axis size of rasterized waveform.
 
std::shared_ptr< Texture > m_texture
 The texture storing our final rendered waveform.
 
size_t m_cachedX
 X axis size of the texture as of last UpdateSize() call.
 
size_t m_cachedY
 Y axis size of the texture as of last UpdateSize() call.
 
bool m_persistenceEnabled
 Persistence enable flag.
 
std::shared_ptr< ComputePipeline > m_toneMapPipe
 Compute pipeline for tone mapping fp32 images to RGBA.
 
std::shared_ptr< ComputePipeline > m_uniformAnalogComputePipeline
 Compute pipeline for rendering uniform analog waveforms.
 
std::shared_ptr< ComputePipeline > m_histogramComputePipeline
 Compute pipeline for rendering histogram waveforms.
 
std::shared_ptr< ComputePipeline > m_sparseAnalogComputePipeline
 Compute pipeline for rendering sparse analog waveforms.
 
std::shared_ptr< ComputePipeline > m_uniformDigitalComputePipeline
 Compute pipeline for rendering uniform digital waveforms.
 
std::shared_ptr< ComputePipeline > m_sparseDigitalComputePipeline
 Compute pipeline for rendering sparse digital waveforms.
 
std::shared_ptr< ComputePipeline > m_indexSearchComputePipeline
 Compute pipeline for index searching.
 
float m_yButtonPos
 Y axis position of our button within the view.
 
std::unique_ptr< vk::raii::CommandPool > m_utilCmdPool
 
std::unique_ptr< vk::raii::CommandBuffer > m_utilCmdBuffer
 

Additional Inherited Members

- Public Types inherited from MeasurementDescriptor
enum  format_t { FORMAT_HEX , FORMAT_BINARY , FORMAT_DEC }
 

Detailed Description

Context data for a single channel being displayed within a WaveformArea.

Member Function Documentation

◆ UpdateSize()

bool DisplayedChannel::UpdateSize ( ImVec2  newSize,
MainWindow *  top 
)

Handles a change in size of the displayed waveform.

Parameters
newSizeNew size of WaveformArea
Returns
true if size has changed, false otherwise

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