I3DHInteractiveSplatDrawing.h Source File#
|
instant3Dhub
|
I3DHInteractiveSplatDrawing.h
Go to the documentation of this file.
22DECLARE_DYNAMIC_DELEGATE_TwoParams(FSplatDrawingCreatedDelegate, const FI3DHDrawingResult&, DrawingResult, const FI3DHDrawingProperties&, DrawingProperties);
24class INSTANT3DHUB_EXPERIMENTAL(0.0.27, "The instant3Dhub Drawings feature is available as a preview and is actively under development.") AI3DHInteractiveSplatDrawing;
46UCLASS(Experimental, Abstract, NotPlaceable, meta = (DisplayName = "I3DH Interactive SplatDrawing (Experimental)"))
61 UFUNCTION(BlueprintCallable, meta = (DefaultToSelf = "HubConnector", DeterminesOutputType = "DrawingClass"), Category = "{instant3DhubDrawings}")
62 static AI3DHInteractiveSplatDrawing* CreateInteractiveSplatDrawing(AI3DHConnector* HubConnector, TSubclassOf<AI3DHInteractiveSplatDrawing> DrawingClass = nullptr);
81 UFUNCTION(BlueprintCallable, meta = (AutoCreateRefTerm = "Color"), Category = "{instant3DhubDrawings}")
152 void CreateHubDrawingAndDestroy(const FString& Name, TUniqueFunction<void(int32 DrawingHandle, EI3DHErrorCode ErrorCode)> OnComplete);
EI3DHErrorCode
Enumeration of Error Codes returned from various instant3Dhub API Calls.
Definition I3DHError.h:16
The HubConnector is the central actor for communication with an instant3Dhub instance in your network...
Definition I3DHConnector.h:214
A helper for creating splat-based drawings in the scene that are synced to the session when finished.
Definition I3DHInteractiveSplatDrawing.h:48
double DrawingNormalOffset
Offset along the normal when moving the brush (in world units).
Definition I3DHInteractiveSplatDrawing.h:167
void SetBrushHiddenInGame(bool bIsHiddenInGame)
Sets the brush to be hidden in game.
FLinearColor GetBrushAndEraserColor() const
Gets brush and eraser color.
static AI3DHInteractiveSplatDrawing * CreateInteractiveSplatDrawing(AI3DHConnector *HubConnector, TSubclassOf< AI3DHInteractiveSplatDrawing > DrawingClass=nullptr)
Creates an actor which can be used for drawing and syncing to the Hub when finished.
double MinBrushDist
Minimum distance of two instances in units of current relative scale of the brush (minimum of {x,...
Definition I3DHInteractiveSplatDrawing.h:156
void SetBrushAndEraserColor(const FLinearColor &Color)
Sets brush and eraser color.
void InitializePreSpawn(AI3DHConnector *ParentHubConnector)
Call before (deferred) spawning.
void DrawAtBrush()
Adds the current brush transformation to the drawing.
void EraseAtBrush(bool bEraseAllColors=false)
Uses the eraser at the current brush transformation for either the active color or every color.
void MoveBrushTo(const FVector &Location, const FVector &Normal, const FVector &Scale) const
Set a new location of the brush.
void FinalizeDrawing(TUniqueFunction< void(FI3DHDrawingResult)> OnComplete)
Finalizes the drawing and builds the drawing geometry.
double EraserRelativeSize
Size of the erase in units of current relative scale of the brush (minimum of {x,y,...
Definition I3DHInteractiveSplatDrawing.h:160
AI3DHConnector * GetHubConnector() const
Returns the parent hub connector.
Definition I3DHInteractiveSplatDrawing.h:75
FString ThumbnailBase64DataURI
Data-URI string, e.g.
Definition I3DHInteractiveSplatDrawing.h:171
void CreateHubDrawingAndDestroy(const FString &Name, TUniqueFunction< void(int32 DrawingHandle, EI3DHErrorCode ErrorCode)> OnComplete)
Finalizes the drawing, synchronizes it with the hub and destroys this actor.
#define INSTANT3DHUB_EXPERIMENTAL(Version, Message)
Macro for marking up experimental code, functions and types.
Definition I3DHVersion.h:246
Encapsulates the result of an instant3Dhub drawing.
Definition I3DHDataTypes.h:2093
Generated by