Navigation
API > API/Plugins > API/Plugins/SVGImporter
Base for all elements which can be drawn. They can have fill and/or stroke information, a style, and a transform.
| Name | FSVGGraphicsElement |
| Type | struct |
| Header File | /Engine/Plugins/VirtualProduction/SVGImporter/Source/SVGImporter/Public/SVGElements.h |
| Include Path | #include "SVGElements.h" |
Syntax
struct FSVGGraphicsElement : public FSVGBaseElement
Inheritance Hierarchy
- FSharedFromThisBase → TSharedFromThis → FSVGBaseElement → FSVGGraphicsElement
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSVGGraphicsElement() |
SVGElements.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FString & GetClassName() |
Get the class name for this Graphic Element (e.g. rect, circle, path) | SVGElements.h | |
const FColor & GetFillColor() |
Get the fill color of this element | SVGElements.h | |
const FSVGGradient & GetFillGradient() |
SVGElements.h | ||
const FString & GetFillGradientID() |
SVGElements.h | ||
const TSharedPtr< FSVGGroupElement > & GetParentGroup() |
Returns the parent group element, if any. Nullptr if none. | SVGElements.h | |
const FColor & GetStrokeColor() |
Get the stroke color of this element | SVGElements.h | |
const FSVGGradient & GetStrokeGradient() |
SVGElements.h | ||
const FString & GetStrokeGradientID() |
SVGElements.h | ||
const FSVGStyle & GetStyle() |
Get the style of this element | SVGElements.h | |
const FString & GetStyleClassName() |
Get the style class name for this Graphic Element (the one specified by CSS styling info) | SVGElements.h | |
FSVGMatrix & GetTransform() |
Get the transform to be applied to this element | SVGElements.h | |
bool HasFill() |
Should the path of this graphic element be rendered as a fill? | SVGElements.h | |
bool HasFillGradientID() |
SVGElements.h | ||
bool HasStroke() |
Should the path of this graphic element be rendered as a stroke? | SVGElements.h | |
bool HasStrokeGradientID() |
SVGElements.h | ||
void Hide() |
Set visibility for this element and its hierarchy | SVGElements.h | |
bool IsClosed() |
Is this graphic element path closed? | SVGElements.h | |
bool IsVisible() |
Whether this element and its hierarchy should be rendered or not | SVGElements.h | |
void SetClassName
(
const FString& InClassName |
Set the class name (e.g. rect, circle, path) | SVGElements.h | |
void SetFillColor
(
const FString& InColorSVGString |
Set fill color (used if this graphic element has strokes) | SVGElements.h | |
void SetFillColor
(
const FColor& InColor |
Set fill color (used if this graphic element has strokes) | SVGElements.h | |
void SetFillGradient
(
const FSVGGradient& InFillGradient |
SVGElements.h | ||
void SetFillGradientID
(
const FString& InFillGradientID |
SVGElements.h | ||
void SetIsClosed
(
bool bInIsClosed |
Mark the path for this element as closed or not | SVGElements.h | |
void SetStrokeColor
(
const FString& InColorSVGString |
Set stroke color (used if this graphic element has strokes) | SVGElements.h | |
void SetStrokeColor
(
const FColor& InColor |
Set stroke color (used if this graphic element has strokes) | SVGElements.h | |
void SetStrokeGradient
(
const FSVGGradient& InStrokeGradient |
SVGElements.h | ||
void SetStrokeGradientID
(
const FString& InStrokeGradientID |
SVGElements.h | ||
void SetStrokeWidth
(
float InWidth |
Set stroke width (used if this graphic element has strokes) | SVGElements.h | |
void SetStyle
(
const FSVGStyle& InStyle |
Set style information | SVGElements.h | |
void SetStyleClassName
(
const FString& InStyleClassName |
Set the style class name (the one specified by CSS styling info) | SVGElements.h | |
void SetTransform
(
const FString& InMatrixSVGString |
Initialize the transform matrix for this Graphic Element | SVGElements.h | |
void TryRegisterWithParent
(
const TSharedPtr< FSVGBaseElement >& InParent |
If the specified parent is a Group element, add this Graphic Element to its children | SVGElements.h |