载入中...
搜索中...
未找到
VolumeBrushTool.cpp
浏览该文件的文档.
16 return falloff ? falloff->evaluate(normalizedDistance) : (normalizedDistance <= 1.f ? 1.f : 0.f);
88ToolResponse VolumeBrushTool::pointerEvent(EditorContext& context, const EditorPointerEvent& event) {
Stable capability for sparse integer volumes.
Definition EditingVolume.h:26
void sample(float x, float y, float z, float radius, std::vector< VolumeBrushPoint > &out) const override
Sample.
Definition VolumeBrushTool.cpp:42
UI-independent property editor used by tools to expose settings.
Definition EditorPresentation.h:47
virtual void beginGroup(const std::string &id, const std::string &label)=0
Begin a logical group of properties.
virtual bool scalar(const std::string &id, const std::string &label, float &value, float minimum, float maximum)=0
Present an editable scalar property.
void setValue(int value)
Set the value written by subsequent stamps.
Definition VolumeBrushTool.cpp:64
PaintIntVolumeOperation(int value=1)
Create an operation that paints the supplied integer value.
Definition VolumeBrushTool.cpp:62
std::unique_ptr< IEditCommand > createCommand(IEditableTarget *target, const std::vector< VolumeBrushPoint > &points) const
Build a reversible command for weighted cells.
Definition VolumeBrushTool.cpp:66
void sample(float x, float y, float z, float radius, std::vector< VolumeBrushPoint > &out) const override
Sample.
Definition VolumeBrushTool.cpp:21
VolumeBrushTool(std::string id, std::string label)
Create a reusable volume brush identified by a stable tool id.
Definition VolumeBrushTool.cpp:76
Definition ActionPreviewController.cpp:6
Definition Container.h:602
Pointer input normalized by an editor viewport adapter.
Definition EditorTool.h:20
Result returned by a tool after processing input.
Definition EditorTool.h:50