Navigation
API > API/Plugins > API/Plugins/SVGImporter
Inheritance Hierarchy
- FSharedFromThisBase
- TSharedFromThis
- FSVGBaseElement
- FSVGGraphicsElement
- FSVGGroupElement
- FSVGPath
- FSVGCircle
- FSVGEllipse
- FSVGLine
- FSVGPolyLine
- FSVGPolygon
- FSVGRectangle
References
| Module | SVGImporter |
| Header | /Engine/Plugins/Experimental/SVGImporter/Source/SVGImporter/Public/SVGElements.h |
| Include | #include "SVGElements.h" |
Syntax
struct FSVGGraphicsElement : public FSVGBaseElement
Remarks
Base for all elements which can be drawn. They can have fill and/or stroke information, a style, and a transform.
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bIsClosed | Is this element path closed? | |
| FString | ClassName | The class name of this graphic element (e.g. rect, circle, path) | |
| FSVGGradient | FillGradient | Fill gradient, if available | |
| FString | FillGradientID | ||
| TSharedPtr< FSVGGroupElement > | ParentGroup | ||
| FSVGGradient | StrokeGradient | Stroke gradient, if available | |
| FString | StrokeGradientID | ||
| FSVGStyle | Style | The style of this element | |
| FString | StyleClassName | The Style Class name of this element (for CSS styling) | |
| FSVGMatrix | Transform | The transform of this element |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| const FString & | GetClassName () |
Get the class name for this Graphic Element (e.g. rect, circle, path) | |
| const FColor & | GetFillColor () |
Get the fill color of this element | |
| const FSVGGradient & | |||
| const FString & | |||
| const TSharedPtr< FSVGGroupElement > & | Returns the parent group element, if any. Nullptr if none. | ||
| const FColor & | Get the stroke color of this element | ||
| const FSVGGradient & | |||
| const FString & | |||
| const FSVGStyle & | GetStyle () |
Get the style of this element | |
| const FString & | Get the style class name for this Graphic Element (the one specified by CSS styling info) | ||
| FSVGMatrix & | GetTransform () |
Get the transform to be applied to this element | |
| bool | HasFill () |
Should the path of this graphic element be rendered as a fill? | |
| bool | |||
| bool | HasStroke () |
Should the path of this graphic element be rendered as a stroke? | |
| bool | |||
| void | Hide () |
Set visibility for this element and its hierarchy | |
| bool | IsClosed () |
Is this graphic element path closed? | |
| bool | IsVisible () |
Whether this element and its hierarchy should be rendered or not | |
| void | SetClassName
(
const FString& InClassName |
Set the class name (e.g. rect, circle, path) | |
| void | SetFillColor
(
const FString& InColorSVGString |
Set fill color (used if this graphic element has strokes) | |
| void | SetFillColor
(
const FColor& InColor |
Set fill color (used if this graphic element has strokes) | |
| void | SetFillGradient
(
const FSVGGradient& InFillGradient |
||
| void | SetFillGradientID
(
const FString& InFillGradientID |
||
| void | SetIsClosed
(
bool bInIsClosed |
Mark the path for this element as closed or not | |
| void | SetStrokeColor
(
const FString& InColorSVGString |
Set stroke color (used if this graphic element has strokes) | |
| void | SetStrokeColor
(
const FColor& InColor |
Set stroke color (used if this graphic element has strokes) | |
| void | SetStrokeGradient
(
const FSVGGradient& InStrokeGradient |
||
| void | SetStrokeGradientID
(
const FString& InStrokeGradientID |
||
| void | SetStrokeWidth
(
float InWidth |
Set stroke width (used if this graphic element has strokes) | |
| void | Set style information | ||
| void | SetStyleClassName
(
const FString& InStyleClassName |
Set the style class name (the one specified by CSS styling info) | |
| void | SetTransform
(
const FString& InMatrixSVGString |
Initialize the transform matrix for this Graphic Element | |
| void | TryRegisterWithParent
(
const TSharedPtr< FSVGBaseElement >& InParent |
If the specified parent is a Group element, add this Graphic Element to its children |