Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raster overlay lifecycle and doc improvements #1503

Merged
merged 5 commits into from
Aug 26, 2024
Merged

Raster overlay lifecycle and doc improvements #1503

merged 5 commits into from
Aug 26, 2024

Conversation

kring
Copy link
Member

@kring kring commented Aug 19, 2024

This PR came out of this community forum post:
https://community.cesium.com/t/remove-clipping-cesiumpolygonrasteroverlay-added-during-runtime/32520/6

It makes it possible to call the Destroy Component Blueprint function on a raster overlay from outside the Cesium3DTileset Actor, and have it actually work.

It fixes a small bug where calling Refresh on an inactive CesiumRasterOverlay would cause that overlay to appear on the tileset. Until the next time the Tileset was refreshed, and then it would disappear.

It also adds some more detailed documentation for the AddToTileset, RemoveFromTileset, Refresh, Activate, and Deactivate methods on CesiumRasterOverlay.

@kring kring changed the title Don't AddToTileset an inactive CesiumRasterOverlay in Refresh, and improve documentation Raster overlay lifecycle and doc improvements Aug 19, 2024
Copy link
Contributor

@j9liu j9liu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @kring , just some minor doc nitpicks. Happy to merge otherwise!

Source/CesiumRuntime/Public/CesiumRasterOverlay.h Outdated Show resolved Hide resolved
Source/CesiumRuntime/Public/CesiumRasterOverlay.h Outdated Show resolved Hide resolved
Source/CesiumRuntime/Public/CesiumRasterOverlay.h Outdated Show resolved Hide resolved
@kring
Copy link
Member Author

kring commented Aug 22, 2024

Thanks @j9liu, I've addressed all your feedback. In the doc for the Activate / Deactivate methods, I just removed the "add it to" / "remove it from" bits completely. They weren't adding much and the parenthetical was awkward.

@j9liu
Copy link
Contributor

j9liu commented Aug 26, 2024

Thanks @kring ! Merging now 😄

@j9liu j9liu merged commit 59b82c4 into main Aug 26, 2024
23 checks passed
@j9liu j9liu deleted the overlay-tweaks branch August 26, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants