ngscopeclient 0.1-dev+51fbda87c
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>

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< TextureGetTexture ()
 
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. More...
 
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< ComputePipelineGetToneMapPipeline ()
 
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 Attributes

std::vector< PeakLabelm_peakLabels
 Active labels for peaks associated with the current waveform.
 
std::string m_colorRamp
 

Protected Attributes

StreamDescriptor m_stream
 
Sessionm_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< Texturem_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< ComputePipelinem_toneMapPipe
 Compute pipeline for tone mapping fp32 images to RGBA.
 
std::shared_ptr< ComputePipelinem_uniformAnalogComputePipeline
 Compute pipeline for rendering uniform analog waveforms.
 
std::shared_ptr< ComputePipelinem_histogramComputePipeline
 Compute pipeline for rendering histogram waveforms.
 
std::shared_ptr< ComputePipelinem_sparseAnalogComputePipeline
 Compute pipeline for rendering sparse analog waveforms.
 
std::shared_ptr< ComputePipelinem_uniformDigitalComputePipeline
 Compute pipeline for rendering uniform digital waveforms.
 
std::shared_ptr< ComputePipelinem_sparseDigitalComputePipeline
 Compute pipeline for rendering sparse digital waveforms.
 
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
 

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: