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