Navigation
API > API/Plugins > API/Plugins/SVGImporter
| Name | FSVGImporterUtils |
| Type | class |
| Header File | /Engine/Plugins/VirtualProduction/SVGImporter/Source/SVGImporter/Public/SVGImporterUtils.h |
| Include Path | #include "SVGImporterUtils.h" |
Syntax
class FSVGImporterUtils
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| SVGScaleFactor | double | SVGImporterUtils.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void BakeSVGActorToBlueprint
(
const ASVGActor* InSVGActorToBake, |
Create Blueprint from SVG Actor. | SVGImporterUtils.h | |
static UStaticMesh * BakeSVGDynamicMeshToStaticMesh
(
USVGDynamicMeshComponent* InSVGDynamicMeshToBake, |
Creates a Static Mesh Asset starting from the specified SVG Dynamic Mesh Component | SVGImporterUtils.h | |
static ASVGJoinedShapesActor * ConsolidateSVGActor
(
ASVGActor* InSVGActor |
Merges all SVG Shapes of this Actor into a single Actor with a single Shape. | SVGImporterUtils.h | |
static bool ConvertSVGSplineToPolyLine
(
const USplineComponent* InSplineComponent, |
Given a threshold, returns a list of vertices along the specified spline that, treated as a list of segments (polyline), matches the spline shape. | SVGImporterUtils.h | |
static ASVGJoinedShapesActor * CreateSVGJoinedActor
(
UObject* InOuter, |
Creates a new SVG Joined Actor from the provided Dynamic Meshes Shapes. | SVGImporterUtils.h | |
static ASVGShapeActor * CreateSVGShapeActorFromShape
(
const ASVGActor* InSourceSVGActor, |
Creates an SVG Shape Actor for the specified component | SVGImporterUtils.h | |
static UTexture2D * CreateSVGTexture
(
const FString& InSVGString, |
Creates a Texture 2D from the specified SVG Text Buffer. Uses the nanosvg parser and rasterizer | SVGImporterUtils.h | |
static bool FindIntersectingSegments
(
const UE::Geometry::TSegment2< double >& InRay, |
Finds the polygon segments intersecting the specified ray | SVGImporterUtils.h | |
| Based on the specified Asset Path, will return an available Folder Path where we can create assets for SVG Baking purposes | SVGImporterUtils.h | ||
static FLinearColor GetAverageColor
(
const TArray< FLinearColor >& InColors |
Computes a simple average of the provided Linear Colors | SVGImporterUtils.h | |
| Extracts a color from SVG color string | SVGImporterUtils.h | ||
static ASVGJoinedShapesActor * JoinSVGDynamicMeshOwners
(
const TArray< ASVGDynamicMeshesContainerActor* >& InDynamicSVGShapesOwners |
Joins the SVG Shapes of 2 or more Actors of type ASVGDynamicMeshesOwnerActor onto a single ASVGJoinedShapesActor | SVGImporterUtils.h | |
static void RotateAroundCustomPivot
(
FVector& OutPointToRotate, |
Rotates an input point around a custom pivot | SVGImporterUtils.h | |
static bool SetSVGMatrixFromTransformString
(
const FString& InTransformString, |
Sets an SVG Matrix based on the specified SVG Transform string | SVGImporterUtils.h | |
static bool ShouldPolygonBeDrawn
(
const FSVGPathPolygon& ShapeToCheck, |
Evaluates if the specified ShapeToCheck is to be drawn or not (e.g. actual shape or hole to be cut) The value nonzero determines the "insideness" of a point in the shape by drawing a ray from that point to infinity in any direction, and then examining the places where a segment of the shape crosses the ray. | SVGImporterUtils.h | |
static ASVGShapesParentActor * SplitSVGActor
(
ASVGActor* InSVGActor |
Splits the specified SVG Actor into multiple actors. | SVGImporterUtils.h | |
| Extracts SVG Style from a CSS style string | SVGImporterUtils.h |