Navigation
API > API/Runtime > API/Runtime/InteractiveToolsFramework > API/Runtime/InteractiveToolsFramework/BaseGizmos
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UGizmoElementBase
- UGizmoElementLineBase
- UGizmoElementCircleBase
- UGizmoElementArc
- UGizmoElementCircle
- UGizmoElementTorus
References
| Module | InteractiveToolsFramework |
| Header | /Engine/Source/Runtime/InteractiveToolsFramework/Public/BaseGizmos/GizmoElementCircleBase.h |
| Include | #include "BaseGizmos/GizmoElementCircleBase.h" |
Syntax
class UGizmoElementCircleBase : public UGizmoElementLineBase
Remarks
Abstract base object for circle, torus and arc.
Variables
| Type | Name | Description | |
|---|---|---|---|
| FVector | Axis0 | Axis0 of plane in which circle lies, must perpendicular to normal. | |
| FVector | Axis1 | Axis1 of plane in which circle lies, must perpendicular to Axis0. | |
| FVector | Center | CircleBase center. | |
| int32 | NumSegments | Number of segments for rendering arc. | |
| double | PartialEndAngle | End angle to render for partial torus. | |
| double | PartialStartAngle | Start angle to render for partial torus. | |
| EGizmoElementPartialType | PartialType | True when the arc is not full. | |
| double | PartialViewDependentMaxCosTol | For PartialViewDependent, max cosine of angle between the normal and view direction Within this tolerance, the arc will be rendered as full rather than partial | |
| double | Radius | Radius of main circle, some derived elements have inner radius (e.g. torus and arc) |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FVector | GetAxis0 () |
||
| FVector | GetAxis1 () |
||
| FVector | GetCenter () |
||
| int32 | |||
| double | |||
| double | |||
| EGizmoElementPartialType | |||
| double | |||
| double | GetRadius () |
||
| bool | IsPartial
(
const FSceneView* View, |
Returns whether element should be partial based on current view. | |
| bool | IsPartial
(
const FVector& InWorldCenter, |
Returns whether element should be partial based on current view. | |
| bool | IsPartial
(
const UGizmoViewContext* ViewContext, |
Returns whether element should be partial based on current view. | |
| void | SetAxis0
(
const FVector& InAxis0 |
Axis0 of plane in which circle lies, must perpendicular to normal. | |
| void | SetAxis1
(
const FVector& InAxis0 |
Axis1 of plane in which circle lies, must perpendicular to Axis0. | |
| void | SetCenter
(
const FVector& InCenter |
CircleBase center. | |
| void | SetNumSegments
(
int32 InNumSegments |
Number of segments for rendering circle. | |
| void | SetPartialEndAngle
(
double InPartialAngle |
Start of arc angle of partial torus in radians, relative to Axis1. | |
| void | SetPartialStartAngle
(
double InPartialAngle |
Start of arc angle of partial torus in radians, relative to Axis0. | |
| void | SetPartialType
(
EGizmoElementPartialType InPartial |
When Partial, renders partial arc based on angle. | |
| void | SetPartialViewDependentMaxCosTol
(
double InPartialViewDependentMaxCosTol |
If partial type is PartialViewDependent, when the cosine of angle between the normal and view direction is within this tolerance, the arc will be rendered as full rather than partial | |
| void | SetRadius
(
double InRadius |
Circle radius. |