Navigation
API > API/Runtime > API/Runtime/Engine
| Name | UReporterGraph |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Classes/Debug/ReporterGraph.h |
| Include Path | #include "Debug/ReporterGraph.h" |
Syntax
UCLASS (MinimalAPI)
class UReporterGraph : public UReporterBase
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UReporterBase → UReporterGraph
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UReporterGraph
(
const FObjectInitializer& ObjectInitializer |
Debug/ReporterGraph.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AxesColor | FLinearColor | The color of the axes. | Debug/ReporterGraph.h | |
| AxisStyle | EGraphAxisStyle::Type | The axis style. | Debug/ReporterGraph.h | |
| BackgroundColor | FColor | Background color to draw under graph. | Debug/ReporterGraph.h | |
| bDrawCursorOnGraph | int32 | If set, enables cursor for line graphs. | Debug/ReporterGraph.h | |
| bDrawExtremes | int32 | If set, draws extremes on vertical axes. | Debug/ReporterGraph.h | |
| bOffsetDataSets | int32 | If set, enables small offset for graphs to better visualize overlapping data sets. | Debug/ReporterGraph.h | |
| bUseTinyFont | int32 | If set, forces tiny font for texts. | Debug/ReporterGraph.h | |
| CurrentData | TArray< FGraphLine > | The data displayed on the graph. | Debug/ReporterGraph.h | |
| CursorLocation | float | Current location for cursor on line graphs. | Debug/ReporterGraph.h | |
| DataStyle | EGraphDataStyle::Type | The data style. | Debug/ReporterGraph.h | |
| GraphMinMaxData | FRect | The minimum and maximum for the graph data. | Debug/ReporterGraph.h | |
| GraphScreenSize | FRect | The screen size of the graph. | Debug/ReporterGraph.h | |
| LegendPosition | ELegendPosition::Type | Current legend position. | Debug/ReporterGraph.h | |
| LegendWidth | float | The maximum length of the legend names. | Debug/ReporterGraph.h | |
| NumXNotches | int | The number of notches on the X axis. | Debug/ReporterGraph.h | |
| NumYNotches | int | The number of notches on the Y axis. | Debug/ReporterGraph.h | |
| Thresholds | TArray< FGraphThreshold > | Debug/ReporterGraph.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVector2D DataToNormalized
(
const FVector2D& InVector |
Helper to convert data from raw data into screen space. | Debug/ReporterGraph.h | |
void DrawAxes
(
UCanvas* Canvas |
Draw the Axes. | Debug/ReporterGraph.h | |
void DrawAxis
(
UCanvas* Canvas, |
Draw an individual axis. | Debug/ReporterGraph.h | |
void DrawBackground
(
UCanvas* Canvas |
Draw background under graph. | Debug/ReporterGraph.h | |
void DrawCursorOnGraph
(
bool InDrawCursorOnGraph |
Setter to enable or disable cursor for line graphs. | Debug/ReporterGraph.h | |
void DrawData
(
UCanvas* Canvas |
Draw the data. | Debug/ReporterGraph.h | |
void DrawExtremesOnGraph
(
bool InDrawExtremes |
Debug/ReporterGraph.h | ||
void DrawLegend
(
UCanvas* Canvas |
Draw the Legend. | Debug/ReporterGraph.h | |
void DrawThresholds
(
UCanvas* Canvas |
Draw the thresholds. | Debug/ReporterGraph.h | |
UFont * GetDefaultFont() |
Returns default font used to print texts. | Debug/ReporterGraph.h | |
FGraphLine * GetGraphLine
(
int32 LineIndex |
Get a pointer to a graph line. | Debug/ReporterGraph.h | |
FGraphThreshold * GetThreshold
(
int32 ThresholdIndex |
Get a pointer to a threshold. | Debug/ReporterGraph.h | |
bool IsOffsetForDataSetsEnabled() |
Checks if we have enabled offset for data sets on graph. | Debug/ReporterGraph.h | |
void OffsetDataSets
(
bool Enable |
Enables small offset for data sets to make it easier to read. | Debug/ReporterGraph.h | |
void SetAxesColor
(
FLinearColor NewAxesColor |
Set the color of the axes. | Debug/ReporterGraph.h | |
void SetAxesMinMax
(
const FVector2D& Min, |
Set the axis min and max data for both axes. | Debug/ReporterGraph.h | |
void SetAxesMinMax
(
float MinX, |
Set the axis min and max data for both axes. | Debug/ReporterGraph.h | |
void SetBackgroundColor
(
FColor Color |
Sets background color. | Debug/ReporterGraph.h | |
void SetCursorLocation
(
float InValue |
Sets cursor location on line graph to show value at specific place. | Debug/ReporterGraph.h | |
void SetGraphScreenSize
(
const FVector2D& Min, |
Set The size of the graph. | Debug/ReporterGraph.h | |
void SetGraphScreenSize
(
float MinX, |
Set The size of the graph. | Debug/ReporterGraph.h | |
void SetLegendPosition
(
ELegendPosition::Type Position |
Sets position where to draw legend. | Debug/ReporterGraph.h | |
void SetNotchesPerAxis
(
int NewNumXNotches, |
Set notches per axis. | Debug/ReporterGraph.h | |
void SetNumGraphLines
(
int32 NumDataLines |
Set the number of graph lines. | Debug/ReporterGraph.h | |
void SetNumThresholds
(
int32 NumThresholds |
Set the number of Thresholds to display on this graph. | Debug/ReporterGraph.h | |
void SetStyles
(
EGraphAxisStyle::Type NewAxisStyle, |
Set the styles of the axes. | Debug/ReporterGraph.h | |
void UseTinyFont
(
bool InUseTinyFont |
Setter to force tiny font instead of small font. | Debug/ReporterGraph.h |
Overridden from UReporterBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Draw
(
UCanvas* Canvas |
Main draw call for the Graph. | Debug/ReporterGraph.h | |
virtual FVector2D ToScreenSpace
(
const FVector2D& InVector, |
Helper to convert vectors from normalized into screen space. | Debug/ReporterGraph.h |