#include <objmode.h>
Public Member Functions |
|
SubControlSelectionProcessor (TransformCtrlApparatus *tc, Control *c, IObjParam *i) | |
BOOL | SupportTransformGizmo () |
Transform Gizmo Interface. |
|
void | DeactivateTransformGizmo () |
Deactivates the transform gizmo. |
|
void | SetSupportTransformGizmo (BOOL b) |
Protected Member Functions |
|
HCURSOR | GetTransformCursor () |
SubControlSelectionProcessor | ( | TransformCtrlApparatus * | tc, |
Control * | c, | ||
IObjParam * | i | ||
) | [inline] |
: GenControlSelectionProcessor(tc,c,i) { tproc = tc; supportTransformGizmo=FALSE; }
HCURSOR GetTransformCursor | ( | ) | [inline, protected, virtual] |
BOOL SupportTransformGizmo | ( | ) | [inline, virtual] |
Transform Gizmo Interface.
Returns TRUE if the mouse proc supports a transform gizmo, FALSE if not. This method and DeactivateTransformGizmo() are normally implemented by the selection processor and the existing mouse procs. However, special implementation is possible as well. For that, because the transform gizmo depends on the Command Mode, the MouseCallback itself decides if it supports the use of the transform gizmo or not. When the node axis (or transform gizmo) is redrawn, the system will ask the command mode's mouse proc whether or not it supports transform gizmos. If it does, it will draw a gizmo instead of the regular node axis. The same procedure happens with the main selection processor in 3ds Max. When the mouse is moved, the selection processor itself asks if the MouseCallback supports transform gizmos or not. If so, it will hit test the gizmo in a MOUSE_FREEMOVE or MOUSE_POINT message. If any of the transform gizmos hit test flags are passed into the mouse procs hit tester, the transform gizmo should be hit tested as well (using Interface::HitTestTransformGizmo()). The default Implementation of this function is {return FALSE;}. When hit testing the gizmo, different flags will be passed in:
Reimplemented from MouseCallBack.
{ return supportTransformGizmo; }
void DeactivateTransformGizmo | ( | ) | [inline, virtual] |
Deactivates the transform gizmo.
See the note in SupportTransformGizmo().
Reimplemented from MouseCallBack.
{ if (transformGizmoActive) { ip->DeactivateTransformGizmo(); transformGizmoActive = FALSE; } }
void SetSupportTransformGizmo | ( | BOOL | b | ) | [inline] |
{ supportTransformGizmo = b; }