Cesium for Unreal 2.28.0
Loading...
Searching...
No Matches
CesiumVectorStyle.h
Go to the documentation of this file.
1#pragma once
2
3#include "CesiumVectorData/VectorStyle.h"
4#include "CoreMinimal.h"
5#include "UObject/ObjectMacros.h"
6
7#include "CesiumVectorStyle.generated.h"
8
9/**
10 * The mode used to render polylines and strokes.
11 */
12UENUM(BlueprintType)
13enum class ECesiumVectorLineWidthMode : uint8 {
14 /**
15 * The line width represents the number of pixels the line will take up,
16 * regardless of LOD.
17 */
18 Pixels = 0,
19 /**
20 * The line width represents the physical size of the line in meters.
21 */
23};
24
25/**
26 * The mode used to interpret the color value provided in a style.
27 */
28UENUM(BlueprintType)
29enum class ECesiumVectorColorMode : uint8 {
30 /**
31 * The normal color mode. The color will be used directly.
32 */
33 Normal = 0,
34 /**
35 * The color will be chosen randomly.
36 *
37 * The color randomization will be applied to each component, with the
38 * resulting value between 0 and the specified color component value. Alpha is
39 * always ignored. For example, if the color was 0xff000077 (only 0x77 in the
40 * green component), the resulting randomized value could be 0xff000041, or
41 * 0xff000076, but never 0xff0000aa.
42 */
44};
45
46/**
47 * The style used to draw polylines and strokes.
48 */
49USTRUCT(BlueprintType)
51 GENERATED_BODY()
52
53 /**
54 * The color to be used.
55 */
56 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
57 FColor Color = FColor(0xff, 0xff, 0xff);
58 /**
59 * The color mode to be used.
60 */
61 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
63 /**
64 * The width of the line or stroke, with the unit specified by `WidthMode`.
65 */
66 UPROPERTY(
67 EditAnywhere,
68 BlueprintReadWrite,
69 Category = "Cesium",
70 meta = (ClampMin = "0"))
71 double Width = 1.0;
72 /**
73 * The mode to use when interpreting `Width`.
74 */
75 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
77
78 /**
79 * Converts this Unreal representation into the Cesium Native equivalent.
80 */
81 CesiumVectorData::LineStyle toNative() const;
82
83 /**
84 * Creates this Unreal representation from the Cesium Native equivalent.
85 */
87 fromNative(const CesiumVectorData::LineStyle& style);
88};
89
90/**
91 * The style used to fill polygons.
92 */
93USTRUCT(BlueprintType)
95 GENERATED_BODY()
96
97 /**
98 * The color to be used.
99 */
100 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
101 FColor Color = FColor(0xff, 0xff, 0xff);
102 /**
103 * The color mode to be used.
104 */
105 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
107
108 /**
109 * Converts this Unreal representation into the Cesium Native equivalent.
110 */
111 CesiumVectorData::ColorStyle toNative() const;
112
113 /**
114 * Creates this Unreal representation from the Cesium Native equivalent.
115 */
117 fromNative(const CesiumVectorData::ColorStyle& style);
118};
119
120/**
121 * The style used to draw polygons.
122 */
123USTRUCT(BlueprintType)
125 GENERATED_BODY()
126
127 /**
128 * Whether the polygon should be filled.
129 */
130 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
131 bool Fill = true;
132
133 /**
134 * If `Fill` is true, this style will be used when filling the polygon.
135 */
136 UPROPERTY(
137 EditAnywhere,
138 BlueprintReadWrite,
139 Category = "Cesium",
140 meta = (EditCondition = "Fill"))
142
143 /**
144 * Whether the polygon should be outlined.
145 */
146 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
147 bool Outline = false;
148
149 /**
150 * If `Outline` is true, this style will be used when outlining the polygon.
151 */
152 UPROPERTY(
153 EditAnywhere,
154 BlueprintReadWrite,
155 Category = "Cesium",
156 meta = (EditCondition = "Outline"))
158
159 /**
160 * Converts this Unreal representation into the Cesium Native equivalent.
161 */
162 CesiumVectorData::PolygonStyle toNative() const;
163
164 /**
165 * Creates this Unreal representation from the Cesium Native equivalent.
166 */
168 fromNative(const CesiumVectorData::PolygonStyle& style);
169};
170
171USTRUCT(BlueprintType)
173 GENERATED_BODY()
174
175 /**
176 * The radius of the point in pixels.
177 */
178 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
179 float Radius = 1.0f;
180
181 /**
182 * Whether the point should be filled.
183 */
184 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
185 bool Fill = true;
186
187 /**
188 * If `Fill` is true, this style will be used when filling the point.
189 */
190 UPROPERTY(
191 EditAnywhere,
192 BlueprintReadWrite,
193 Category = "Cesium",
194 meta = (EditCondition = "Fill"))
196
197 /**
198 * Whether the point should be outlined.
199 */
200 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
201 bool Outline = false;
202
203 /**
204 * If `Outline` is true, this style will be used when outlining the point.
205 */
206 UPROPERTY(
207 EditAnywhere,
208 BlueprintReadWrite,
209 Category = "Cesium",
210 meta = (EditCondition = "Outline"))
212
213 /**
214 * Converts this Unreal representation into the Cesium Native equivalent.
215 */
216 CesiumVectorData::PointStyle toNative() const;
217
218 /**
219 * Creates this Unreal representation from the Cesium Native equivalent.
220 */
222 fromNative(const CesiumVectorData::PointStyle& style);
223};
224
225/**
226 * Style information to use when drawing vector data.
227 */
228USTRUCT(BlueprintType)
230 GENERATED_BODY()
231
232 /**
233 * Styles to use when drawing polylines and stroking shapes.
234 */
235 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
237
238 /**
239 * Styles to use when drawing polygons.
240 */
241 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
243
244 /**
245 * Styles to use when drawing points.
246 */
247 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Cesium")
249
250 /**
251 * Converts this Unreal representation into the Cesium Native equivalent.
252 */
253 CesiumVectorData::VectorStyle toNative() const;
254
255 /**
256 * Creates this Unreal representation from the Cesium Native equivalent.
257 */
258 static FCesiumVectorStyle
259 fromNative(const CesiumVectorData::VectorStyle& style);
260};
ECesiumVectorLineWidthMode
The mode used to render polylines and strokes.
@ Meters
The line width represents the physical size of the line in meters.
@ Pixels
The line width represents the number of pixels the line will take up, regardless of LOD.
ECesiumVectorColorMode
The mode used to interpret the color value provided in a style.
@ Random
The color will be chosen randomly.
@ Normal
The normal color mode.
USTRUCT() struct FCesiumVoxelClassDescription
Description of the metadata properties available in the class used by the 3DTILES_content_voxels exte...
The style used to draw polylines and strokes.
double Width
The width of the line or stroke, with the unit specified by WidthMode.
CesiumVectorData::LineStyle toNative() const
Converts this Unreal representation into the Cesium Native equivalent.
ECesiumVectorColorMode ColorMode
The color mode to be used.
FColor Color
The color to be used.
ECesiumVectorLineWidthMode WidthMode
The mode to use when interpreting Width.
static FCesiumVectorLineStyle fromNative(const CesiumVectorData::LineStyle &style)
Creates this Unreal representation from the Cesium Native equivalent.
static FCesiumVectorPointStyle fromNative(const CesiumVectorData::PointStyle &style)
Creates this Unreal representation from the Cesium Native equivalent.
bool Fill
Whether the point should be filled.
CesiumVectorData::PointStyle toNative() const
Converts this Unreal representation into the Cesium Native equivalent.
float Radius
The radius of the point in pixels.
FCesiumVectorPolygonFillStyle FillStyle
If Fill is true, this style will be used when filling the point.
bool Outline
Whether the point should be outlined.
FCesiumVectorLineStyle OutlineStyle
If Outline is true, this style will be used when outlining the point.
The style used to fill polygons.
ECesiumVectorColorMode ColorMode
The color mode to be used.
CesiumVectorData::ColorStyle toNative() const
Converts this Unreal representation into the Cesium Native equivalent.
FColor Color
The color to be used.
static FCesiumVectorPolygonFillStyle fromNative(const CesiumVectorData::ColorStyle &style)
Creates this Unreal representation from the Cesium Native equivalent.
The style used to draw polygons.
FCesiumVectorPolygonFillStyle FillStyle
If Fill is true, this style will be used when filling the polygon.
static FCesiumVectorPolygonStyle fromNative(const CesiumVectorData::PolygonStyle &style)
Creates this Unreal representation from the Cesium Native equivalent.
FCesiumVectorLineStyle OutlineStyle
If Outline is true, this style will be used when outlining the polygon.
bool Fill
Whether the polygon should be filled.
CesiumVectorData::PolygonStyle toNative() const
Converts this Unreal representation into the Cesium Native equivalent.
bool Outline
Whether the polygon should be outlined.
Style information to use when drawing vector data.
static FCesiumVectorStyle fromNative(const CesiumVectorData::VectorStyle &style)
Creates this Unreal representation from the Cesium Native equivalent.
FCesiumVectorPolygonStyle PolygonStyle
Styles to use when drawing polygons.
FCesiumVectorLineStyle LineStyle
Styles to use when drawing polylines and stroking shapes.
CesiumVectorData::VectorStyle toNative() const
Converts this Unreal representation into the Cesium Native equivalent.
FCesiumVectorPointStyle PointStyle
Styles to use when drawing points.