Skip to main content

FrameFilter

FrameFilter

Abstract frame-skip predicate for TimeScrollBar. More…

#include <FrameFilter.hpp>

Inherited by DataKeyFrameFilter

Public Functions

Name
virtual ~FrameFilter() =default
virtual bool shouldSkip(TimeFrameIndex index) const =0
Return true if this frame should be skipped.

Detailed Description

class FrameFilter;

Abstract frame-skip predicate for TimeScrollBar.

Implement [shouldSkip()](/api_generated/Classes/classFrameFilter.md#function-shouldskip) to tell the scrollbar whether a given frame index should be skipped during playback and arrow-key navigation.

Implementations must be fast (called once per frame tick) and must NOT mutate any shared state.

Public Functions Documentation

function ~FrameFilter

virtual ~FrameFilter() =default

function shouldSkip

virtual bool shouldSkip(
    TimeFrameIndex index
) const =0

Return true if this frame should be skipped.

Parameters:

  • index Frame index expressed in the scrollbar’s current TimeFrame.

Return:

  • true → skip this frame (advance to the next one).
  • false → stop on this frame.

Reimplemented by: DataKeyFrameFilter::shouldSkip


Updated on 2026-11-13 at 20:25:40 +0000