#include <c4d_baselist.h>
Message struct for the MSG_TOOL_RESIZE message.
Sent during MMB (Middle Mouse Button) dragging and the [ and ] shortcuts with brushes if ToolAskMsgData::resize_allowed is set to true by the developer.
Here is an example from the Live Selection tool to show how it works:
Classes | |
| struct | ToolResizeFalloffData |
Public Member Functions | |
| ToolResizeData () | |
Input Values | |
| enum | RESIZE_PASS { RESIZE_PASS_INIT , RESIZE_PASS_GENERATEFALLOFF , RESIZE_PASS_RESIZE , RESIZE_PASS_END , RESIZE_PASS_RESET } |
| enum cinema::ToolResizeData::RESIZE_PASS | pass |
| Int32 | delta |
| Int32 | total_delta |
| Int32 | horizontal |
| BaseContainer * | data |
Result Values | |
| Bool | cross_type |
| ToolResizeFalloffData | falloff |
| String | cursor_text |
| enum RESIZE_PASS |
| ToolResizeData | ( | ) |
Default constructor.
| enum cinema::ToolResizeData::RESIZE_PASS pass |
[Read-Only]
The resize pass: RESIZE_PASS
| Int32 delta |
[Read-Only]
The mouse movement delta.
| Int32 total_delta |
[Read-Only]
The mouse movement delta.
| Int32 horizontal |
[Read-Only]
true if a horizontal movement is occurring and cross_type has been set to true in the RESIZE_PASS_INIT pass by the user.
| BaseContainer* data |
[Read-Only]
A pointer to the tool's BaseContainer.
| Bool cross_type |
Set to false to disable cross type resizing, where the primary direction the mouse is moved in dictates movement afterwards.
| ToolResizeFalloffData falloff |
The radial falloff display preview settings.
| String cursor_text |
The text to display next to the mouse cursor.