src/WhiskerToolbox/DataViewer/AnalogTimeSeries/AnalogTimeSeriesDisplayOptions.hpp
src/WhiskerToolbox/DataViewer/AnalogTimeSeries/AnalogTimeSeriesDisplayOptions.hpp
Classes
| Name | |
|---|---|
| struct | AnalogScalingConfig Scaling configuration for analog time series data. |
| struct | NewAnalogTimeSeriesDisplayOptions Display options for new analog time series visualization system. |
Types
| Name | |
|---|---|
| enum class | AnalogGapHandling { AlwaysConnect, DetectGaps, ShowMarkers} |
Types Documentation
enum AnalogGapHandling
| Enumerator | Value | Description |
|---|---|---|
| AlwaysConnect | ||
| DetectGaps | ||
| ShowMarkers |
Source code
#ifndef DATAVIEWER_ANALOGTIMESERIESDISPLAYOPTIONS_HPP
#define DATAVIEWER_ANALOGTIMESERIESDISPLAYOPTIONS_HPP
#include "CorePlotting/DataTypes/SeriesStyle.hpp"
#include "CorePlotting/Layout/LayoutTransform.hpp"
#include "CorePlotting/DataTypes/SeriesDataCache.hpp"
#include <string>
enum class AnalogGapHandling {
AlwaysConnect,// Always connect points (current behavior)
DetectGaps, // Break lines when gaps exceed threshold
ShowMarkers // Show individual markers instead of lines
};
struct AnalogScalingConfig {
// Intrinsic scaling based on data characteristics
float intrinsic_scale{1.0f};
float intrinsic_offset{0.0f};
// User-specified scaling controls
float user_scale_factor{1.0f};
float user_vertical_offset{0.0f};
// Global scaling applied to all series
float global_zoom{1.0f};
float global_vertical_scale{1.0f};
};
struct NewAnalogTimeSeriesDisplayOptions {
// ========== Separated Concerns (Phase 0 Refactoring) ==========
CorePlotting::SeriesStyle style;
CorePlotting::LayoutTransform layout_transform;
CorePlotting::SeriesDataCache data_cache;
// ========== Analog-Specific Configuration ==========
// Scaling configuration
AnalogScalingConfig scaling;
// Legacy compatibility members for backward compatibility with OpenGLWidget
AnalogGapHandling gap_handling{AnalogGapHandling::AlwaysConnect};
float gap_threshold{5.0f};
};
#endif// DATAVIEWER_ANALOGTIMESERIESDISPLAYOPTIONS_HPPUpdated on 2026-11-13 at 20:25:45 +0000