![]() |
Cesium for Unreal 2.13.2
|
A raster overlay that rasterizes polygons and drapes them over the tileset. More...
#include <CesiumPolygonRasterOverlay.h>
Public Member Functions | |
UCesiumPolygonRasterOverlay () | |
![]() | |
UCesiumRasterOverlay () | |
void | AddToTileset () |
Displays this raster overlay on its owning Cesium 3D Tileset Actor, without changing its activation state. | |
void | RemoveFromTileset () |
Stops displaying this raster overlay on its owning Cesium 3D Tileset Actor. | |
void | Refresh () |
Refreshes this overlay by removing from its owning Cesium 3D Tileset Actor and re-adding it. | |
double | GetMaximumScreenSpaceError () const |
void | SetMaximumScreenSpaceError (double Value) |
int32 | GetMaximumTextureSize () const |
void | SetMaximumTextureSize (int32 Value) |
int32 | GetMaximumSimultaneousTileLoads () const |
void | SetMaximumSimultaneousTileLoads (int32 Value) |
int64 | GetSubTileCacheBytes () const |
void | SetSubTileCacheBytes (int64 Value) |
virtual void | Activate (bool bReset) override |
Activates this raster overlay, which will display it on the Cesium3DTileset to which the component is attached, if it isn't already displayed. | |
virtual void | Deactivate () override |
Deactivates this raster overlay. | |
virtual void | OnComponentDestroyed (bool bDestroyingHierarchy) override |
virtual bool | IsReadyForFinishDestroy () override |
Public Attributes | |
TArray< TSoftObjectPtr< ACesiumCartographicPolygon > > | Polygons |
The polygons to rasterize for this overlay. | |
bool | InvertSelection = false |
Whether to invert the selection specified by the polygons. | |
bool | ExcludeSelectedTiles = true |
Whether tiles that fall entirely within the rasterized selection should be excluded from loading and rendering. | |
![]() | |
FString | MaterialLayerKey = "Overlay0" |
The key to use to match this overlay to a material layer. | |
FRasterOverlayRendererOptions | rendererOptions |
Sets the texture filter and texture group of raster tile images. | |
Protected Member Functions | |
virtual std::unique_ptr< CesiumRasterOverlays::RasterOverlay > | CreateOverlay (const CesiumRasterOverlays::RasterOverlayOptions &options={}) override |
virtual void | OnAdd (Cesium3DTilesSelection::Tileset *pTileset, CesiumRasterOverlays::RasterOverlay *pOverlay) override |
virtual void | OnRemove (Cesium3DTilesSelection::Tileset *pTileset, CesiumRasterOverlays::RasterOverlay *pOverlay) override |
![]() | |
Cesium3DTilesSelection::Tileset * | FindTileset () const |
Additional Inherited Members | |
![]() | |
double | MaximumScreenSpaceError = 2.0 |
The maximum number of pixels of error when rendering this overlay. | |
int32 | MaximumTextureSize = 2048 |
The maximum texel size of raster overlay textures, in either direction. | |
int32 | MaximumSimultaneousTileLoads = 20 |
The maximum number of overlay tiles that may simultaneously be in the process of loading. | |
int64 | SubTileCacheBytes = 16 * 1024 * 1024 |
The maximum number of bytes to use to cache sub-tiles in memory. | |
bool | ShowCreditsOnScreen |
Whether or not to show credits of this raster overlay on screen. | |
A raster overlay that rasterizes polygons and drapes them over the tileset.
This is useful for clipping out parts of a tileset, for adding a water effect in an area, and for many other purposes.
Definition at line 21 of file CesiumPolygonRasterOverlay.h.
UCesiumPolygonRasterOverlay::UCesiumPolygonRasterOverlay | ( | ) |
|
overrideprotectedvirtual |
Reimplemented from UCesiumRasterOverlay.
|
overrideprotectedvirtual |
Reimplemented from UCesiumRasterOverlay.
|
overrideprotectedvirtual |
Reimplemented from UCesiumRasterOverlay.
bool UCesiumPolygonRasterOverlay::ExcludeSelectedTiles = true |
Whether tiles that fall entirely within the rasterized selection should be excluded from loading and rendering.
For better performance, this should be enabled when this overlay will be used for clipping. But when this overlay is used for other effects, this option should be disabled to avoid missing tiles.
Note that if InvertSelection is true, this will cull tiles that are outside of all the polygons. If it is false, this will cull tiles that are completely inside at least one polygon.
Definition at line 55 of file CesiumPolygonRasterOverlay.h.
bool UCesiumPolygonRasterOverlay::InvertSelection = false |
Whether to invert the selection specified by the polygons.
If this is true, only the areas outside of all the polygons will be rasterized.
Definition at line 41 of file CesiumPolygonRasterOverlay.h.
TArray<TSoftObjectPtr<ACesiumCartographicPolygon> > UCesiumPolygonRasterOverlay::Polygons |
The polygons to rasterize for this overlay.
Definition at line 32 of file CesiumPolygonRasterOverlay.h.