#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:
{
switch (type)
{
{
}
break ;
{
return false ;
{
{
}
break ;
{
{
}
else
{
{
}
else
{
}
}
}
break ;
default : break ;
}
}
break ;
}
...
}
◆ RESIZE_PASS
Enumerator RESIZE_PASS_INIT Called before resizing starts.
RESIZE_PASS_GENERATEFALLOFF Called when a custom falloff needs to be generated.
RESIZE_PASS_RESIZE Called during the resizing process.
RESIZE_PASS_END Called to end the resizing process.
RESIZE_PASS_RESET Called to reset resizing (user canceled action).
◆ ToolResizeData()
◆ pass
◆ delta
[Read-Only]
The mouse movement delta.
◆ total_delta
[Read-Only]
The mouse movement delta.
◆ 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.
◆ data
◆ cross_type
Set to false to disable cross type resizing, where the primary direction the mouse is moved in dictates movement afterwards.
◆ falloff
The radial falloff display preview settings.
◆ cursor_text
The text to display next to the mouse cursor.
maxon::Float Float
Definition: ge_sys_math.h:66
Float GetFloat(Int32 id, Float preset=0.0) const
Definition: c4d_basecontainer.h:335
maxon::Int32 Int32
Definition: ge_sys_math.h:60
#define MSG_TOOL_ASK
Sent to tools on mouse input to query them on whether they accept/use certain input such as modifier ...
Definition: c4d_baselist.h:493
void SetFloat(Int32 id, Float r)
Definition: c4d_basecontainer.h:533
maxon::Vec3< maxon::Float64, 1 > Vector
Definition: ge_math.h:145
#define MSG_TOOL_RESIZE
Sent during MMB (MMB (Middle Mouse Button) dragging and the [ and ] shortcuts with brushes if ToolAsk...
Definition: c4d_baselist.h:495
V off
The translation vector.
Definition: matrix.h:279
maxon::Bool Bool
Definition: ge_sys_math.h:55
Int32 GetInt32(Int32 id, Int32 preset=0) const
Definition: c4d_basecontainer.h:303
Definition: c4d_basedocument.h:490
Definition: c4d_basecontainer.h:46