Navigation
API > API/Plugins > API/Plugins/AvalancheComponentVisualizers
Inheritance Hierarchy
- TSharedFromThis
- FComponentVisualizer
- FAvaVisualizerBase
References
| Module | AvalancheComponentVisualizers |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheComponentVisualizers/Public/AvaVisBase.h |
| Include | #include "AvaVisBase.h" |
Syntax
class FAvaVisualizerBase : public FComponentVisualizer
Remarks
Select shape:
- DrawVisualization
Select HitProxy:
- VisProxyHandleClick |- EndEditing | |- EndTransaction | - Update ST that no Vis is active. - StartEditing |- Store component & HP settings - Update ST that we are active.
Mouse down on widget:
- Viewport: TrackingStarted (not used)
Drag mouse
- HandleInputDelta |- (Not tracking) | - StartTracking | |- TrackingStarted | - StoreInitialValues - HandleInputDeltaInternal
Release mouse
- Viewport: TrackingStopped - TrackingStopped - EndTransaction (see above)
Variables
| Type | Name | Description | |
|---|---|---|---|
| FRotator | AccumulatedRotation | ||
| FVector | AccumulatedScale | ||
| FVector | AccumulatedTranslation | ||
| bool | bHasBeenModified | ||
| bool | bHasInitialWidgetLocation | Delta sums. | |
| bool | bTracking | ||
| FVector | IconStartPosition | Top icons. | |
| FVector | InitialWidgetLocation | ||
| FEditorViewportClient * | LastUsedViewportClient | Last used viewport client. | |
| TSharedPtr< FAvaSnapOperation > | SnapOperation | Snapping stuff. | |
| int32 | TransactionIdx | Tracking info. |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| bool | CalcIconLocation
(
const USceneComponent* InComponent, |
Calculates the location of the first top-of-shape icon in world space Uses the shape's bounding box to do this. | |
| void | DrawVisualizationEditing
(
const UActorComponent* InComponent, |
||
| void | DrawVisualizationNotEditing
(
const UActorComponent* InComponent, |
||
| void | |||
| TMap< UObject *, TArray< FProperty * > > | GatherEditableProperties
(
UObject* InObject |
Returns a list of objects and the properties being edited on that object. | |
| void | |||
| FBox | GetComponentBounds
(
const UActorComponent* InComponent |
||
| FTransform | GetComponentTransform
(
const UActorComponent* InComponent |
||
| const USceneComponent * | |||
| const USceneComponent * | GetEditedSceneComponent
(
const UActorComponent* InComponent |
||
| const FLinearColor & | GetIconColor
(
bool bInActive, |
||
| void | GetIconMetrics
(
const FSceneView* InView, |
Gets the position and size of icons based on the above ^. | |
| float | GetIconSizeScale
(
const FSceneView* InView, |
||
| FEditorViewportClient * | |||
| FVector | GetLocalVector
(
FEditorViewportClient* InViewport, |
Converts vectors from world space to local space. | |
| TSharedPtr< FAvaSnapOperation > | |||
| EAxisList::Type | GetViewportWidgetAxisList
(
FEditorViewportClient* InViewportClient |
||
| UE::Widget::EWidgetMode | GetViewportWidgetMode
(
FEditorViewportClient* InViewportClient |
||
| bool | GetWidgetAxisList
(
const FEditorViewportClient* InViewportClient, |
||
| bool | GetWidgetAxisListDragOverride
(
const FEditorViewportClient* InViewportClient, |
Used to override the axis used to actually calculate drag. | |
| bool | GetWidgetMode
(
const FEditorViewportClient* InViewportClient, |
||
| bool | HandleInputDeltaInternal
(
FEditorViewportClient* InViewportClient, |
||
| bool | IsEditing () |
||
| bool | IsMouseOverComponent
(
const UActorComponent* InComponent, |
||
| bool | IsTracking () |
||
| void | NotifyPropertiesModified
(
UObject* InObject, |
Notify that many component properties have been modified | |
| void | NotifyPropertyChainModified
(
UObject* InObject, |
Notify that a component property has been modified inside a container | |
| void | NotifyPropertyModified
(
UObject* InObject, |
Notify that a component property has been modified | |
| bool | ResetValue
(
FEditorViewportClient* InViewportClient, |
||
| bool | ShouldDrawExtraHandles
(
const UActorComponent* InComponent, |
||
| void | StartEditing
(
FEditorViewportClient* InViewportClient, |
||
| void | |||
| void | |||
| void | TrackingStartedInternal
(
FEditorViewportClient* InViewportClient |
||
| void | TrackingStoppedInternal
(
FEditorViewportClient* InViewportClient |
Overridden from FComponentVisualizer
| Type | Name | Description | |
|---|---|---|---|
| void | DrawVisualization
(
const UActorComponent* InComponent, |
Draw visualization for the supplied component | |
| void | DrawVisualizationHUD
(
const UActorComponent* InComponent, |
Draw HUD on viewport for the supplied component | |
| void | EndEditing () |
Editing -> We have a hitproxy selected. | |
| bool | GetCustomInputCoordinateSystem
(
const FEditorViewportClient* InViewportClient, |
||
| bool | HandleInputDelta
(
FEditorViewportClient* InViewportClient, |
||
| bool | HandleModifiedClick
(
FEditorViewportClient* InViewportClient, |
Handle click modified by Alt, Ctrl and/or Shift. The input HitProxy may not be on this component. | |
| void | TrackingStarted
(
FEditorViewportClient* InViewportClient |
Tracking -> We are actively dragging a widget. | |
| void | TrackingStopped
(
FEditorViewportClient* InViewportClient, |
Gets called when the mouse tracking has stopped (dragging behavior) |
Typedefs
| Name | Description |
|---|---|
| Super |
Constants
| Name | Description |
|---|---|
| Active | |
| ActiveAltMode | |
| Disabled | |
| Enabled | |
| Inactive |