src/WhiskerToolbox/DataViewer/DigitalEvent/DigitalEventSeriesDisplayOptions.hpp
src/WhiskerToolbox/DataViewer/DigitalEvent/DigitalEventSeriesDisplayOptions.hpp
Classes
| Name | |
|---|---|
| struct | NewDigitalEventSeriesDisplayOptions Display options for new digital event series visualization system. |
Types
| Name | |
|---|---|
| enum class | EventPlottingMode { FullCanvas, Stacked} Plotting mode for digital event series. |
| enum class | EventDisplayMode { Stacked, FullCanvas} Event display modes for digital event series. |
Types Documentation
enum EventPlottingMode
| Enumerator | Value | Description |
|---|---|---|
| FullCanvas | Events extend from top to bottom of entire plot (like digital intervals). | |
| Stacked | Events are allocated a portion of canvas and extend within that space (like analog series). |
Plotting mode for digital event series.
enum EventDisplayMode
| Enumerator | Value | Description |
|---|---|---|
| Stacked | Stack events with configurable spacing (default). | |
| FullCanvas | Events stretch from top to bottom of canvas. |
Event display modes for digital event series.
Controls how digital events are visually presented on the canvas:
- Stacked: Events are positioned in separate horizontal lanes with configurable spacing
- FullCanvas: Events stretch from top to bottom of the entire canvas
Source code
#ifndef DATAVIEWER_DIGITALEVENTSERIESDISPLAYOPTIONS_HPP
#define DATAVIEWER_DIGITALEVENTSERIESDISPLAYOPTIONS_HPP
#include "CorePlotting/DataTypes/SeriesStyle.hpp"
#include "CorePlotting/Layout/LayoutTransform.hpp"
#include <string>
enum class EventPlottingMode {
FullCanvas,
Stacked
};
enum class EventDisplayMode {
Stacked,
FullCanvas
};
struct NewDigitalEventSeriesDisplayOptions {
// ========== Separated Concerns (Phase 0 Refactoring) ==========
CorePlotting::SeriesStyle style{CorePlotting::SeriesStyle{"#ff9500", 0.8f}};
CorePlotting::LayoutTransform layout_transform{0.0f, 1.0f};
// ========== Event-Specific Configuration ==========
// Plotting mode configuration
EventPlottingMode plotting_mode{EventPlottingMode::FullCanvas};
// Legacy compatibility members for widget configuration
EventDisplayMode display_mode{EventDisplayMode::Stacked};
float vertical_spacing{0.1f};
float event_height{0.05f};
// Global scaling applied by PlottingManager
float global_zoom{1.0f};
float global_vertical_scale{1.0f};
// Rendering options
float margin_factor{0.95f};
};
#endif// DATAVIEWER_DIGITALEVENTSERIESDISPLAYOPTIONS_HPPUpdated on 2026-11-13 at 20:25:45 +0000