DataViewer
DataViewer
Namespaces
| Name |
|---|
| DataViewer::DefaultColors Default values and utilities for time series display configuration. |
Classes
| Name | |
|---|---|
| struct | DataViewer::LayoutRequestBuildContext Inputs required to build a layout request. |
| struct | DataViewer::AnalogSeriesEntry Data structure holding analog series and its computed/cached state. |
| struct | DataViewer::DigitalEventSeriesEntry Data structure holding digital event series and its computed state. |
| struct | DataViewer::DigitalIntervalSeriesEntry Data structure holding digital interval series and its computed state. |
| class | DataViewer::TimeSeriesDataStore Centralized storage for time series data in the DataViewer widget. |
| class | DataViewer::DataViewerCoordinates Coordinate transformation utilities for the DataViewer widget. |
| struct | DataViewer::InputContext Context information needed by the input handler for coordinate transforms. |
| class | DataViewer::DataViewerInputHandler Handles mouse input events for the DataViewer widget. |
| struct | DataViewer::InteractionContext Context information needed for coordinate conversions. |
| class | DataViewer::DataViewerInteractionManager Manages interaction state machine for creating and modifying glyphs. |
| class | DataViewer::DataViewerSelectionManager Manages entity selection state for the DataViewer widget. |
| struct | DataViewer::SeriesInfo Information about a series at a specific position. |
| class | DataViewer::DataViewerTooltipController Manages tooltip display for the DataViewer widget. |
| struct | DataViewer::OrderingInputItem Normalized ordering input consumed by ordering policy resolution. |
| struct | DataViewer::OrderingConstraint Relative ordering constraint between two series keys. |
| struct | DataViewer::OrderingDiagnostic Lightweight diagnostic for one ordered series. |
| struct | DataViewer::OrderingResolution Ordering resolution output. |
| struct | DataViewer::CachedAnalogVertex A cached vertex with time index for range tracking. |
| struct | DataViewer::MissingRange Describes a time range that needs vertex generation. |
| class | DataViewer::AnalogVertexCache Ring buffer-based cache for analog series vertices. |
Types
| Name | |
|---|---|
| enum class | SeriesType { None, Analog, DigitalEvent, DigitalInterval} Series type identifiers for lookup. |
| enum class | InteractionMode { Normal, CreateInterval, ModifyInterval, CreateLine} Interaction mode for the DataViewer widget. |
| enum class | OrderingDiagnosticReason { ExplicitLaneOrder, RelationalConstraint, FallbackSortableRank, ConstraintCycleBreak, DeterministicTieBreak} High-level reason category for resolved placement diagnostics. |
Functions
| Name | |
|---|---|
| CorePlotting::LayoutRequest | buildLayoutRequest(LayoutRequestBuildContext const & context) Build a complete layout request from DataViewer runtime/state inputs. |
| OrderingResolution | resolveOrdering(std::vector< OrderingInputItem > const & input_items, SortableRankMap const & fallback_ranks, std::vector< OrderingConstraint > const & constraints ={}) Resolve ordering with precedence. |
| ClockTicks | viewOriginMasterAbsolute(std::shared_ptr< TimeFrame > const & master_tf, CorePlotting::ViewStateData const & view_state) Master-clock absolute time at the left edge of the visible view window. |
| ClockTicks | viewOriginMasterAbsoluteAtIndex(std::shared_ptr< TimeFrame > const & master_tf, TimeFrameIndex const index) Master-clock absolute time at a specific master [TimeFrameIndex](/api_generated/Classes/structTimeFrameIndex.md). |
| ClockTicks | viewSpanMasterAbsolute(std::shared_ptr< TimeFrame > const & master_tf, TimeFrameIndex const start, TimeFrameIndex const end) Visible window span in master clock ticks for view-local orthographic projection. |
| CorePlotting::LayoutTransform | composeAnalogYTransform(CorePlotting::SeriesLayout const & layout, float data_mean, float std_dev, float intrinsic_scale, float user_scale_factor, float user_vertical_offset, float global_y_scale, float margin_factor =0.8f) Compose Y transform for analog series rendering. |
| CorePlotting::LayoutTransform | composeEventYTransform(CorePlotting::SeriesLayout const & layout, float margin_factor, float global_y_scale) Compose Y transform for event series (stacked mode). |
| CorePlotting::LayoutTransform | composeEventFullCanvasYTransform(float viewport_y_min, float viewport_y_max, float margin_factor) Compose Y transform for event series (full canvas mode). |
| float | computeEventGlyphSize(CorePlotting::LayoutTransform const & composed_event_y_transform, float lane_half_height, float event_height, float margin_factor, float fallback_line_thickness) Compute glyph size for event ticks from explicit world-space event height. |
| CorePlotting::LayoutTransform | composeIntervalYTransform(CorePlotting::SeriesLayout const & layout, float margin_factor, float global_y_scale) Compose Y transform for interval series. |
Types Documentation
enum SeriesType
| Enumerator | Value | Description |
|---|---|---|
| None | ||
| Analog | ||
| DigitalEvent | ||
| DigitalInterval |
Series type identifiers for lookup.
enum InteractionMode
| Enumerator | Value | Description |
|---|---|---|
| Normal | Default: pan, select, hover tooltips. | |
| CreateInterval | Click-drag to create a new interval. | |
| ModifyInterval | Edge dragging to modify existing interval. | |
| CreateLine | Click-drag to draw a selection line (future). |
Interaction mode for the DataViewer widget.
enum OrderingDiagnosticReason
| Enumerator | Value | Description |
|---|---|---|
| ExplicitLaneOrder | ||
| RelationalConstraint | ||
| FallbackSortableRank | ||
| ConstraintCycleBreak | ||
| DeterministicTieBreak |
High-level reason category for resolved placement diagnostics.
Functions Documentation
function buildLayoutRequest
CorePlotting::LayoutRequest buildLayoutRequest(
LayoutRequestBuildContext const & context
)Build a complete layout request from DataViewer runtime/state inputs.
Precondition:
- context.state must outlive this function call (enforcement: none)
- context.data_store must outlive this function call (enforcement: none)
- context.viewport_y_min <= context.viewport_y_max (enforcement: none)
Build a CorePlotting layout request from current DataViewer state.
function resolveOrdering
OrderingResolution resolveOrdering(
std::vector< OrderingInputItem > const & input_items,
SortableRankMap const & fallback_ranks,
std::vector< OrderingConstraint > const & constraints ={}
)Resolve ordering with precedence.
Resolves the ordering of stackable series based on the following precedence: 1) explicit lane order 2) relational constraints (when present) 3) fallback provider ranks 4) deterministic tie-breaks
function viewOriginMasterAbsolute
inline ClockTicks viewOriginMasterAbsolute(
std::shared_ptr< TimeFrame > const & master_tf,
CorePlotting::ViewStateData const & view_state
)Master-clock absolute time at the left edge of the visible view window.
Precondition: When master_tf is non-null, view_state.x_min is a valid [TimeFrameIndex](/api_generated/Classes/structTimeFrameIndex.md) into it.
Postcondition: Returns [ClockTicks(0)](/api_generated/Classes/classClockTicks.md) when master_tf is null.
function viewOriginMasterAbsoluteAtIndex
inline ClockTicks viewOriginMasterAbsoluteAtIndex(
std::shared_ptr< TimeFrame > const & master_tf,
TimeFrameIndex const index
)Master-clock absolute time at a specific master [TimeFrameIndex](/api_generated/Classes/structTimeFrameIndex.md).
Precondition: When master_tf is non-null, index is a valid index into it.
Postcondition: Returns [ClockTicks(0)](/api_generated/Classes/classClockTicks.md) when master_tf is null.
function viewSpanMasterAbsolute
inline ClockTicks viewSpanMasterAbsolute(
std::shared_ptr< TimeFrame > const & master_tf,
TimeFrameIndex const start,
TimeFrameIndex const end
)Visible window span in master clock ticks for view-local orthographic projection.
Precondition: master_tf must not be null.
Postcondition: Returns at least [ClockTicks(1)](/api_generated/Classes/classClockTicks.md).
View-local X coordinates are expressed as `(absolute_time - origin). The projection right bound is therefore the clock-tick delta betweenendandstart`, not the index delta.
function composeAnalogYTransform
inline CorePlotting::LayoutTransform composeAnalogYTransform(
CorePlotting::SeriesLayout const & layout,
float data_mean,
float std_dev,
float intrinsic_scale,
float user_scale_factor,
float user_vertical_offset,
float global_y_scale,
float margin_factor =0.8f
)Compose Y transform for analog series rendering.
Parameters:
- margin_factor Fraction of allocated lane height used for data (0..1]
Follows the pattern from CorePlotting/DESIGN.md:
- Data normalization (z-score style: maps ±3σ to ±1)
- User adjustments (intrinsic scale, user scale, vertical offset)
- Layout positioning (from LayoutEngine)
- Global scaling (from ViewState) - applied to amplitude only, NOT position
IMPORTANT: Global Y scale scales the data amplitude within each lane, but does NOT move the lane center. This is achieved by applying global scaling to the gain component only, after composing data normalization with layout positioning.
function composeEventYTransform
inline CorePlotting::LayoutTransform composeEventYTransform(
CorePlotting::SeriesLayout const & layout,
float margin_factor,
float global_y_scale
)Compose Y transform for event series (stacked mode).
function composeEventFullCanvasYTransform
inline CorePlotting::LayoutTransform composeEventFullCanvasYTransform(
float viewport_y_min,
float viewport_y_max,
float margin_factor
)Compose Y transform for event series (full canvas mode).
function computeEventGlyphSize
inline float computeEventGlyphSize(
CorePlotting::LayoutTransform const & composed_event_y_transform,
float lane_half_height,
float event_height,
float margin_factor,
float fallback_line_thickness
)Compute glyph size for event ticks from explicit world-space event height.
The rendered tick world height is: glyph_size * composed_event_y_transform.gain
We derive glyph_size from an explicit event_height target (clamped to lane height), so event sizing remains predictable and controllable by state.
function composeIntervalYTransform
inline CorePlotting::LayoutTransform composeIntervalYTransform(
CorePlotting::SeriesLayout const & layout,
float margin_factor,
float global_y_scale
)Compose Y transform for interval series.
Note: Intervals intentionally ignore global_y_scale because:
- They are already in normalized space [-1, 1] representing full height
- global_y_scale is designed for scaling analog data based on std_dev
- Intervals should always fill their allocated canvas space
Updated on 2026-11-13 at 20:25:42 +0000