载入中...
搜索中...
未找到
SnowFieldTarget.cpp
浏览该文件的文档.
15bool SnowFieldTarget::containsCell(int x, int y) const { return field_ && field_->inBounds(x, y); }
SnowFieldTarget(std::string id, weather::SnowField *field)
Bind a live snow field which must outlive this adapter.
Definition SnowFieldTarget.cpp:11
editing::FieldWriteStatus writeScalar(int x, int y, float value) override
Writes scalar.
Definition SnowFieldTarget.cpp:19
Interactive snow depth field: a dense [0,1] float grid.
Definition SnowField.h:21
bool inBounds(int x, int y) const
Compatibility predicate returning whether a cell is inside the field.
Definition SnowField.cpp:35
float height(int x, int y) const
Cell value in [0,1]; out-of-bounds reads 0.
Definition SnowField.cpp:51
void setHeight(int x, int y, float h)
Set one cell (clamped to [0,1]); out-of-bounds is a no-op.
Definition SnowField.cpp:45
@ Unchanged
@ Rejected
Definition Container.h:602