Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/InteractiveToolsFramework/Public/ToolDataVisualizer.h |
Include |
#include "ToolDataVisualizer.h" |
class FToolDataVisualizer
FToolDataVisualizer is a utility class for Tool and Gizmo implementations to use to draw 3D lines, points, etc.
Currently uses PDI drawing but may use different back-ends in the future
Name | Description | ||
---|---|---|---|
|
bDepthTested |
Should lines be clipped by 3D geometry, or should they be drawn with quasi-transparency |
|
|
bHaveCameraState |
||
|
CameraState |
||
|
CurrentPDI |
We use this for drawing, extracted in InitializeFrame |
|
|
float |
DepthBias |
Depth bias applied to lines |
|
LineColor |
Default color used for drawing lines |
|
|
float |
LineThickness |
Default thickness used for drawing lines |
|
float |
PDISizeScale |
Screen-space line thicknesses and point sizes are multiplied by this value to try to normalize for variable thickness that occurs at different FOVs. |
|
PointColor |
Default color used for drawing points |
|
|
float |
PointSize |
Default size used for drawing points |
|
TotalTransform |
||
|
TransformStack |
Name | Description | |
---|---|---|
|
FToolDataVisualizer() |
Name | Description | |
---|---|---|
|
~FToolDataVisualizer() |
Name | Description | ||
---|---|---|---|
|
BeginFrame ( |
Frame initialization/cleanupThis must be called every frame to allow Visualizer to extract necessary rendering data/objects |
|
|
BeginFrame ( |
This must be called every frame to allow Visualizer to extract necessary rendering data/objects |
|
|
DrawCircle ( |
Draw a 3D circle at given position/normal with the given parameters. |
|
|
DrawLine ( |
Drawing functionsDraw a line with default parameters |
|
|
DrawLine ( |
Draw a line with the given Color, otherwise use default parameters |
|
|
DrawLine ( |
Draw a line with the given Color and Thickness, otherwise use default parameters |
|
|
DrawLine ( |
Draw a line with the given parameters |
|
|
DrawPoint ( |
Draw a point with default parameters |
|
|
DrawPoint ( |
Draw a point with the given Color, otherwise use default parameters |
|
|
DrawPoint ( |
Draw a point with the given parameters |
|
|
DrawSquare ( |
||
|
DrawSquare ( |
||
|
DrawViewFacingCircle ( |
Draw a 3D circle at given position/normal with the given parameters. |
|
|
DrawViewFacingX ( |
Draw a world-space X facing the viewer at the given position. |
|
|
DrawViewFacingX ( |
Draw a world-space X facing the viewer at the given position. |
|
|
DrawWireBox ( |
Draw a 3D box, parameterized the same as the 3D circle but extruded by Height |
|
|
DrawWireBox ( |
||
|
DrawWireCylinder ( |
Draw a 3D cylinder, parameterized the same as the 3D circle but extruded by Height |
|
|
DrawWireCylinder ( |
Draw a 3D cylinder, parameterized the same as the 3D circle but extruded by Height |
|
|
EndFrame() |
This should be called at the end of every frame to allow for necessary cleanup |
|
|
InternalDrawCircle ( |
Actually does the circle drawing |
|
|
InternalDrawSquare ( |
Actually does the square drawing |
|
|
InternalDrawTransformedLine ( |
Actually does the line drawing; assumes A and B are already transformed |
|
|
InternalDrawTransformedPoint ( |
Actually does the point drawing; assumes Position is already transformed |
|
|
InternalDrawViewFacingCircle ( |
Actually does the circle drawing |
|
|
InternalDrawViewFacingX ( |
Actually does the X drawing |
|
|
InternalDrawWireBox ( |
Actually does the box drawing |
|
|
InternalDrawWireCylinder ( |
Actually does the cylinder drawing |
|
|
PopAllTransforms() |
Clear the transform stack to identity |
|
|
PopTransform() |
Pop a transform from the transform stack |
|
|
PushTransform ( |
Push a Transform onto the transform stack |
|
|
SetLineParameters ( |
ParametersUpdate the default line color and thickness |
|
|
SetPointParameters ( |
Update the default point color and size |
|
|
SetTransform ( |
Transform supportClear transform stack and push the given Transform |
|
|
TransformN ( |
||
|
TransformP ( |
||
|
TransformV ( |