FGraphSeries::GetEvent

Windows
MacOS
Linux

References

Module

TraceInsights

Header

/Engine/Source/Developer/TraceInsights/Public/Insights/ViewModels/GraphSeries.h

Include

#include "Insights/ViewModels/GraphSeries.h"

Source

/Engine/Source/Developer/TraceInsights/Private/Insights/ViewModels/GraphSeries.cpp

Syntax

const FGraphSeriesEvent * GetEvent
(
    const float PosX,
    const float PosY,
    const FTimingTrackViewport & Viewport,
    bool bCheckLine,
    bool bCheckBox
) const

Returns

A pointer to an Event located at (X, Y) coordinates, if any; nullptr if no event is located at respective coordinates The returned pointer is valid only temporary until next Reset() or next usage of FGraphTrackBuilder for this series/track.

Parameters

Parameter

Description

X

The horizontal coordinate of the point tested; in Slate pixels (local graph coordinates)

Y

The vertical coordinate of the point tested; in Slate pixels (local graph coordinates)

Viewport

The timing viewport used to transform time in local graph coordinates

bCheckLine

If needs to check the bounding box of the horizontal line (determined by duration of event and value) or only the bounding box of the visual point

bCheckBox

If needs to check the bounding box of the entire visual box (determined by duration of event, value and baseline)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss