载入中...
搜索中...
未找到
VolumeBrushTool.h
浏览该文件的文档.
Axis-aligned cubic volume kernel using a non-owning falloff strategy.
Definition VolumeBrushTool.h:46
void setFalloff(const IBrushFalloff *falloff)
Replace the edge falloff used by later samples.
Definition VolumeBrushTool.h:51
BoxVolumeBrushKernel(const IBrushFalloff *falloff=nullptr)
Create a box kernel with an optional non-owning falloff.
Definition VolumeBrushTool.h:49
void sample(float x, float y, float z, float radius, std::vector< VolumeBrushPoint > &out) const override
Sample.
Definition VolumeBrushTool.cpp:42
Replaceable mapping from normalized distance to brush strength.
Definition BrushKernel.h:36
UI-independent property editor used by tools to expose settings.
Definition EditorPresentation.h:47
Shape protocol for sparse volume painting.
Definition VolumeBrushTool.h:21
virtual void sample(float x, float y, float z, float radius, std::vector< VolumeBrushPoint > &out) const =0
Emit weighted integer cells around one center.
virtual ~IVolumeBrushKernel()=default
Releases IVolumeBrushKernel resources.
Paints one integer value into targets exposing IIntVolumeTarget.
Definition VolumeBrushTool.h:61
void setValue(int value)
Set the value written by subsequent stamps.
Definition VolumeBrushTool.cpp:64
std::unique_ptr< IEditCommand > createCommand(IEditableTarget *target, const std::vector< VolumeBrushPoint > &points) const
Build a reversible command for weighted cells.
Definition VolumeBrushTool.cpp:66
Spherical volume kernel using a non-owning falloff strategy.
Definition VolumeBrushTool.h:31
void sample(float x, float y, float z, float radius, std::vector< VolumeBrushPoint > &out) const override
Sample.
Definition VolumeBrushTool.cpp:21
void setFalloff(const IBrushFalloff *falloff)
Replace the radial falloff used by later samples.
Definition VolumeBrushTool.h:36
SphereVolumeBrushKernel(const IBrushFalloff *falloff=nullptr)
Create a spherical kernel with an optional non-owning falloff.
Definition VolumeBrushTool.h:34
Generic 3D stroke tool composed from a volume kernel and paint operation.
Definition VolumeBrushTool.h:78
void setKernel(const IVolumeBrushKernel *kernel)
Replace the volume kernel used by later stamps.
Definition VolumeBrushTool.h:85
void setOperation(const PaintIntVolumeOperation *operation)
Replace the integer operation used by later stamps.
Definition VolumeBrushTool.h:87
void inspect(EditorContext &context, IEditorInspector &inspector) override
Inspect.
Definition VolumeBrushTool.cpp:115
ToolResponse pointerEvent(EditorContext &context, const EditorPointerEvent &event) override
Pointer event.
Definition VolumeBrushTool.cpp:88
void setRadius(float radius)
Set radius in target voxel coordinates.
Definition VolumeBrushTool.cpp:79
Definition ActionPreviewController.cpp:6
Pointer input normalized by an editor viewport adapter.
Definition EditorTool.h:20
UI-facing metadata supplied by a tool implementation.
Definition EditorTool.h:98
Result returned by a tool after processing input.
Definition EditorTool.h:50
One weighted integer coordinate emitted by a three-dimensional kernel.
Definition VolumeBrushTool.h:13