Navigation
API > API/Developer > API/Developer/TraceInsights > API/Developer/TraceInsights/FGraphTrack
Description
Gets the event at a specified position. Leaves the InOutEvent unchanged if no event is found at specified position.
Virtual Inheritance
- FBaseTimingTrack::GetEvent → FGraphTrack::GetEvent
| Name | GetEvent |
| Type | function |
| Header File | /Engine/Source/Developer/TraceInsights/Public/Insights/ViewModels/GraphTrack.h |
| Include Path | #include "Insights/ViewModels/GraphTrack.h" |
| Source | /Engine/Source/Developer/TraceInsights/Private/Insights/ViewModels/GraphTrack.cpp |
virtual const TSharedPtr < const ITimingEvent > GetEvent
(
float InPosX,
float InPosY,
const FTimingTrackViewport & Viewport
) const
The event located at (PosX, PosY) coordinates, if any; nullptr otherwise.
Parameters
| Name | Remarks |
|---|---|
| X | The horizontal coordinate of the point tested; in Slate pixels (viewport coordinates). |
| Y | The vertical coordinate of the point tested; in Slate pixels (viewport coordinates). |
| Viewport | The timing viewport used to transform time in viewport coordinates. |