I3DHDrawingEditor.h Source File
instant3Dhub
|
I3DHDrawingEditor.h
Go to the documentation of this file.
41DECLARE_DYNAMIC_DELEGATE_ThreeParams(FI3DHDrawingFinalizedDelegate, const FI3DHDrawingResult&, DrawingResult, const FI3DHDrawingProperties&, DrawingProperties, const TArray<FI3DHSplineData>&, Splines);
43class INSTANT3DHUB_EXPERIMENTAL(0.0.27, "The instant3Dhub Drawings feature is available as a preview and is actively under development.") AI3DHDrawingEditor;
69UCLASS(Experimental, Abstract, NotPlaceable, meta = (DisplayName = "I3DH DrawingEditor (Experimental)"))
96 UFUNCTION(BlueprintCallable, meta = (DefaultToSelf = "HubConnector", DeterminesOutputType = "DrawingClass"), Category = "{instant3DhubDrawings}")
97 static AI3DHDrawingEditor* CreateDrawingEditor(AI3DHConnector* HubConnector, TSubclassOf<AI3DHDrawingEditor> DrawingClass);
114 UFUNCTION(BlueprintCallable, meta = (AutoCreateRefTerm = "Color"), Category = "{instant3DhubDrawings}")
128 UFUNCTION(BlueprintCallable, meta = (AutoCreateRefTerm = "Color"), Category = "{instant3DhubDrawings}")
218 INSTANT3DHUB_EXPERIMENTAL(0.0.25, "The handling of SplineData is not yet finalized, the callback signature might change.")
219 void FinalizeDrawing(TUniqueFunction<void(FI3DHDrawingResult, TArray<FI3DHSplineData> OutSplines)> OnComplete);
231 void CreateHubDrawingAndDestroy(const FString& Name, TUniqueFunction<void(int DrawingHandle, EI3DHErrorCode ErrorCode)> OnComplete);
295 virtual bool IsReadyForFinishDestroy() override { return Super::IsReadyForFinishDestroy() && (!AsyncTaskFence.IsValid() || AsyncTaskFence.GetRefCount() <= 1); }
301 void InsertPointInternal(const FVector& RelativeLocation, const int32 SplineIndex, const int32 PointIndex);
EI3DHDrawingEditorMode
DrawingEditor Modes determine the functionalities and inner workings of the Drawing Editor.
Definition I3DHDrawingEditor.h:25
@ Draw
In Draw Mode, a Cursor is visible and new points or spline slices can be added to the drawing.
@ EditDrawing
In EditDrawing Mode, the splines are locked but the drawing can be edited as a whole.
@ Finalize
In Finalize Mode, all editing capabilities of the drawing are locked.
DECLARE_DYNAMIC_DELEGATE void FI3DHDrawingFinalizedDelegate(const FI3DHDrawingResult &DrawingResult, const FI3DHDrawingProperties &DrawingProperties, const TArray< FI3DHSplineData > &Splines)
Drawing Finalized Delegate Type.
The HubConnector is the central actor for communication with an instant3Dhub instance in your network...
Definition I3DHConnector.h:98
DrawingEditor Actor for creating spline 3D drawings in the scene that are synced to the session when ...
Definition I3DHDrawingEditor.h:71
#define INSTANT3DHUB_EXPERIMENTAL(Version, Message)
Macro for marking up experimental code, functions and types.
Definition I3DHVersion.h:212
Encapsulates the result of an instant3Dhub drawing.
Definition I3DHDataTypes.h:1811
Generated by