载入中...
搜索中...
未找到
PcgRuntimeStamper.cpp
浏览该文件的文档.
17 std::all_of(map.data().begin(), map.data().end(), [](float value) { return std::isfinite(value); });
21Result<void> PcgRuntimeStamper::configure(std::string stampAddress, bool showGui, bool showDebug) {
33Result<void> PcgRuntimeStamper::loadStamp(const Heightmap& stamp, const std::string& resourceName) {
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={}, DiagnosticDetails details={}, std::string source={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.h:125
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:175
In-memory terrain heightmap: a dense float grid (row-major, index = y * width + x) materialized from ...
Definition Heightmap.h:21
const std::string & stampAddress() const noexcept
Return the normalized resource address.
Definition PcgRuntimeStamper.h:34
Result< void > configure(std::string stampAddress, bool showGui=true, bool showDebug=true)
Set the resource address and presentation flags; backslashes are normalized to slashes.
Definition PcgRuntimeStamper.cpp:21
Result< void > updateLayout(double screenWidth, double screenHeight)
Recompute Pcg's 300x20 bottom-centred progress-label rectangle.
Definition PcgRuntimeStamper.cpp:101
Result< void > reportMissingStamp()
Record the same missing-resource failure exposed by Pcg RuntimeStamper.
Definition PcgRuntimeStamper.cpp:47
Result< void > loadStamp(const Heightmap &stamp, const std::string &resourceName)
Copy a decoded stamp resource into the controller.
Definition PcgRuntimeStamper.cpp:33
Result< int > execute(Heightmap &target, double originX=0.0, double originZ=0.0, double spacingX=1.0, double spacingZ=1.0)
Flatten target to zero, fit the stamp to its complete grid, and apply height 6 with a linear radial m...
Definition PcgRuntimeStamper.cpp:55
Definition EvpackPointGraphLoader.h:12
Result< int > applyTerrainStamp(Heightmap &target, const Heightmap &stamp, const TerrainStampSettings &s, const Heightmap &localMask, const Heightmap &globalMask)
Apply a rotated, bilinearly sampled stamp; publish only after all checks succeed.
Definition TerrainStamp.cpp:41
@ AwaitingResource
@ InvalidArgument
Value configuration for a rectangular stamp in world X/Z coordinates.
Definition TerrainStamp.h:22