Generic stroke tool composed from a brush kernel and field operation. 更多...
#include <FieldBrushTool.h>
Public 成员函数 | |
| FieldBrushTool (std::string id, std::string label, const IBrushKernel *kernel, const IFieldBrushOperation *operation) | |
| Field brush tool. | |
| const ToolDescriptor & | descriptor () const override |
| Descriptor. | |
| void | setKernel (const IBrushKernel *kernel) |
| Replace the shape/falloff implementation used by later stamps. | |
| void | setOperation (const IFieldBrushOperation *operation) |
| Replace the edit semantics used by later stamps. | |
| void | setRadius (float radius) |
| Set brush radius in target coordinates. | |
| void | setStrength (float strength) |
| Set the operation strength; negative values are permitted. | |
| float | radius () const |
| Radius. | |
| float | strength () const |
| Strength. | |
| ToolResponse | pointerEvent (EditorContext &context, const EditorPointerEvent &event) override |
| Pointer event. | |
| void | cancel (EditorContext &context) override |
| Cancel. | |
| void | drawOverlay (EditorContext &context, IEditorOverlay &overlay) override |
| Draws overlay. | |
| void | inspect (EditorContext &context, IEditorInspector &inspector) override |
| Inspect. | |
Public 成员函数 继承自 eve::editor::IEditorTool | |
| virtual | ~IEditorTool ()=default |
| Releases IEditorTool resources. | |
| virtual void | activate (EditorContext &context) |
| Called exactly once when this tool becomes active. | |
| virtual void | deactivate (EditorContext &context) |
| Called exactly once before this tool stops being active. | |
| virtual ToolResponse | keyEvent (EditorContext &context, const EditorKeyEvent &event) |
| Handle normalized keyboard input. | |
| virtual void | update (EditorContext &context, float dt) |
| Per-frame hook for an active tool. | |
详细描述
Generic stroke tool composed from a brush kernel and field operation.
Both collaborators are non-owning and may be replaced between strokes.
在文件 FieldBrushTool.h 第 55 行定义.
构造及析构函数说明
◆ FieldBrushTool()
| eve::editor::FieldBrushTool::FieldBrushTool | ( | std::string | id, |
| std::string | label, | ||
| const IBrushKernel * | kernel, | ||
| const IFieldBrushOperation * | operation | ||
| ) |
Field brush tool.
在文件 FieldBrushTool.cpp 第 38 行定义.
成员函数说明
◆ cancel()
|
overridevirtual |
◆ descriptor()
|
inlineoverridevirtual |
◆ drawOverlay()
|
overridevirtual |
Draws overlay.
在文件 FieldBrushTool.cpp 第 81 行定义.
◆ inspect()
|
overridevirtual |
◆ pointerEvent()
|
overridevirtual |
Pointer event.
在文件 FieldBrushTool.cpp 第 52 行定义.
引用了 context, eve::editor::EditorPointerEvent::phase, stamp, eve::editor::EditorPointerEvent::x , 以及 eve::editor::EditorPointerEvent::y.
◆ radius()
|
inline |
Radius.
在文件 FieldBrushTool.h 第 71 行定义.
◆ setKernel()
|
inline |
Replace the shape/falloff implementation used by later stamps.
在文件 FieldBrushTool.h 第 63 行定义.
◆ setOperation()
|
inline |
◆ setRadius()
| void eve::editor::FieldBrushTool::setRadius | ( | float | radius | ) |
◆ setStrength()
|
inline |
Set the operation strength; negative values are permitted.
在文件 FieldBrushTool.h 第 69 行定义.
引用了 strength.
◆ strength()
|
inline |
Strength.
在文件 FieldBrushTool.h 第 73 行定义.
该类的文档由以下文件生成:
- src/modules/editor/FieldBrushTool.h
- src/modules/editor/FieldBrushTool.cpp
Public 成员函数 继承自