src/WhiskerToolbox/Plots/Common/PlotAlignmentWidget/Core/PlotAlignmentData.hpp
src/WhiskerToolbox/Plots/Common/PlotAlignmentWidget/Core/PlotAlignmentData.hpp
Data structures for plot alignment functionality. More…
Classes
| Name | |
|---|---|
| struct | PlotAlignmentData Serializable data for plot alignment settings. |
Types
| Name | |
|---|---|
| enum class | IntervalAlignmentType { Beginning, End} Enumeration for interval alignment type. |
Detailed Description
Data structures for plot alignment functionality.
This header defines the data structures used for event/interval alignment in plot widgets. These structures can be included in plot state data structs for serialization.
Types Documentation
enum IntervalAlignmentType
| Enumerator | Value | Description |
|---|---|---|
| Beginning | ||
| End |
Enumeration for interval alignment type.
Source code
#ifndef PLOT_ALIGNMENT_DATA_HPP
#define PLOT_ALIGNMENT_DATA_HPP
#include <rfl.hpp>
#include <rfl/json.hpp>
#include <string>
enum class IntervalAlignmentType {
Beginning,
End
};
struct PlotAlignmentData {
std::string alignment_event_key;
IntervalAlignmentType interval_alignment_type = IntervalAlignmentType::Beginning;
double offset = 0.0;
double window_size = 1000.0;
bool prevent_overlap = false;
};
#endif// PLOT_ALIGNMENT_DATA_HPPUpdated on 2026-11-13 at 20:25:45 +0000