I3DHDrawingEditor.h Source File
|
instant3Dhub
|
I3DHDrawingEditor.h
Go to the documentation of this file.
57DECLARE_DYNAMIC_DELEGATE_ThreeParams(FI3DHDrawingFinalizedDelegate, const FI3DHDrawingResult&, DrawingResult, const FI3DHDrawingProperties&, DrawingProperties, const TArray<FI3DHSplineData>&, Splines);
60class INSTANT3DHUB_EXPERIMENTAL(0.0.27, "The instant3Dhub Drawings feature is available as a preview and is actively under development.") AI3DHDrawingEditor;
81UCLASS(Experimental, Abstract, NotPlaceable, meta = (DisplayName = "I3DH DrawingEditor (Experimental)"))
124 UFUNCTION(BlueprintCallable, meta = (DefaultToSelf = "HubConnector", DeterminesOutputType = "DrawingClass"), Category = "{instant3DhubDrawings}")
125 static AI3DHDrawingEditor* CreateDrawingEditor(AI3DHConnector* HubConnector, TSubclassOf<AI3DHDrawingEditor> DrawingClass);
142 UFUNCTION(BlueprintCallable, meta = (AutoCreateRefTerm = "Color"), Category = "{instant3DhubDrawings}")
172 const FString& GetEditedDrawingName() const { return EditedDrawingName; }
174 INSTANT3DHUB_DEPRECATED(1.1.0, "Will be removed because it is not supported for LineStrip drawings.")
179 UFUNCTION(BlueprintCallable, Category = "{instant3DhubDrawings}", meta = (DisplayName = "Set Omit Stroke Start and End Joints (Deprecated)"))
270 void FinalizeDrawing(TUniqueFunction<void(FI3DHDrawingResult)> OnComplete);
283 void CreateHubDrawingAndDestroy(const FString& Name, TUniqueFunction<void(int32 DrawingHandle, EI3DHErrorCode ErrorCode)> OnComplete);
323 void InitFromSplines(TArray<FI3DHSplineData>&& InSplines);
413 virtual bool IsReadyForFinishDestroy() override { return Super::IsReadyForFinishDestroy() && (!AsyncTaskFence.IsValid() || AsyncTaskFence.GetRefCount() <= 1); }
417 bool ShouldShowCursor() const { return GetDrawingEditorMode() == EI3DHDrawingEditorMode::Draw; }
419 void InsertPointInternal(const FVector& RelativeLocation, const int32 SplineIndex, const int32 PointIndex);
420 void RemovePointsInternal(const int32 SplineIndex, const int32 StartPointIndex, const int32 NumRemovals);
428 bool ShouldCreateCollidersForTriangleMeshDrawings() const { return bCreateCollidersForTriangleMeshDrawings; }
435 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "{instant3DhubDrawings}", AdvancedDisplay)
562UCLASS(Experimental, MinimalAPI, meta = (DisplayName = "I3DH Transient EditableDrawing (Experimental)"))
EI3DHDrawingEditorMode
DrawingEditor Modes describe how the editor visualizes the drawing and what actions are available.
Definition I3DHDrawingEditor.h:31
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:119
Actor for creating line-based 3D drawings that sync to instant3Dhub when finished.
Definition I3DHDrawingEditor.h:85
This actor is the scene representation of drawings in the session.
Definition I3DHDrawing.h:47
Interface that can be implemented to provide drawing editing functionality.
Definition I3DHDataTypes.h:2045
Provides access to geometry of an instant3Dhub drawing.
Definition I3DHDataTypes.h:1917
#define PRAGMA_DISABLE_EXPERIMENTAL_WARNINGS
Macro for temporarily disabling experimental warnings.
Definition I3DHVersion.h:267
#define PRAGMA_ENABLE_EXPERIMENTAL_WARNINGS
Macro for re-enabling experimental warnings after PRAGMA_DISABLE_EXPERIMENTAL_WARNINGS.
Definition I3DHVersion.h:284
#define INSTANT3DHUB_EXPERIMENTAL(Version, Message)
Macro for marking up experimental code, functions and types.
Definition I3DHVersion.h:245
Encapsulates the result of an instant3Dhub drawing.
Definition I3DHDataTypes.h:1874
Generated by