3ds Max C++ API Reference
Loading...
Searching...
No Matches
cmdmode.h File Reference
#include "maxheap.h"
#include <WTypes.h>

Classes

class  CommandMode
 This base class allows the developer to create a command mode that handles processing user interaction using the mouse in the viewports. More...
 
class  XFormModes
 This class contains a set of six command mode pointers that make up the XForm modes. More...
 
class  PickCommandMode
 Derive your command mode class from this one if you wish to implement your own pick command mode and want to hook it into the select by name mechanism. More...
 

Macros

#define CHANGE_FG_SELECTED   ((ChangeForegroundCallback *)1)
 Selected nodes are flagged.
 
#define CHANGE_FG_ANIMATED   ((ChangeForegroundCallback *)2)
 Nodes that are animated are flagged.
 
#define TRANSFORM_CMD_SUPER   1
 
#define VIEWPORT_COMMAND   1
 
#define MOVE_COMMAND   2
 
#define ROTATE_COMMAND   3
 
#define SCALE_COMMAND   4
 
#define USCALE_COMMAND   5
 
#define SQUASH_COMMAND   6
 
#define SELECT_COMMAND   7
 
#define HIERARCHY_COMMAND   8
 
#define CREATE_COMMAND   9
 
#define MODIFY_COMMAND   10
 
#define MOTION_COMMAND   11
 
#define ANIMATION_COMMAND   12
 
#define CAMERA_COMMAND   13
 
#define NULL_COMMAND   14
 
#define DISPLAY_COMMAND   15
 
#define SPOTLIGHT_COMMAND   16
 
#define PICK_COMMAND   17
 
#define MANIPULATE_COMMAND   18
 
#define PICK_EX_COMMAND   19
 Extended Pick Command Mode.
 
#define PLACE_COMMAND   20
 Placement Command Mode.
 
#define ALWAYS_PROCESS_RIGHTCLICK_COMMAND   21
 These are command modes that always wnat the right click msg which is sometimes filtered off by quad menus.
 
#define CID_USER   0x0000ffff
 
#define CID_PLAYANIMATION   300
 Animation Command.
 
#define CID_SIMPLECREATE   400
 Create Command.
 
#define CID_MODIFYPARAM   500
 Modify Command.
 
#define CID_EDITSOFTSELECTION   525
 Command Mode Id for the Edit Soft Selection Command Mode.
 
#define CID_NULL   600
 Motion Command.
 
#define CID_STDPICK   710
 
#define CID_PICKAXISOBJECT   700
 
#define CID_GRP_ATTACH   800
 
#define CID_ASSEMBLY_ATTACH   810
 
#define CID_MANIPULATE   900
 Manipulate Command Mode.
 
#define CID_FREE_AXIS_ROTATE   -INT_MAX
 
#define CID_SCREEN_SPACE_ROTATE   -INT_MAX+1
 
Max Transform Modes
#define CID_OBJMOVE   1
 Max Transform Move Modes.
 
#define CID_OBJROTATE   2
 Max Transform Rotate Modes.
 
#define CID_OBJSCALE   3
 Max Transform Scale Modes.
 
#define CID_OBJUSCALE   4
 Max Transform Uniform Scale Modes.
 
#define CID_OBJSQUASH   5
 Max Transform Squash Modes.
 
#define CID_OBJSELECT   6
 Max Transform Select Modes.
 
subobject Command IDs

The subobject command IDs are used internally and are not valid arguments to Interface::SetStdCommandMode

#define CID_SUBOBJMOVE   7
 
#define CID_SUBOBJROTATE   8
 
#define CID_SUBOBJSCALE   9
 
#define CID_SUBOBJUSCALE   10
 
#define CID_SUBOBJSQUASH   11
 
#define CID_SUBOBJSELECT   12
 
Display Branch Command Modes

These are also used internally and are not valid to SetStdCommandMode.

#define CID_UNFREEZE   13
 
#define CID_UNHIDE   14
 
#define CID_OBJPLACE   15
 
Hierarchy Commands
#define CID_LINK   100
 
#define CID_BINDWSM   110
 
Viewport Commands
#define CID_ZOOMVIEW   200
 
#define CID_ZOOMREGION   201
 
#define CID_PANVIEW   202
 
#define CID_ROTATEVIEW   203
 
#define CID_ZOOMALL   204
 
#define CID_RNDREGION   205
 
Camera Commands
#define CID_CAMFOV   210
 
#define CID_CAMDOLLY   211
 
#define CID_CAMPERSP   212
 
#define CID_CAMTRUCK   213
 
#define CID_CAMROTATE   214
 
#define CID_CAMROLL   215
 

Macro Definition Documentation

◆ CHANGE_FG_SELECTED

#define CHANGE_FG_SELECTED   ((ChangeForegroundCallback *)1)

Selected nodes are flagged.

◆ CHANGE_FG_ANIMATED

#define CHANGE_FG_ANIMATED   ((ChangeForegroundCallback *)2)

Nodes that are animated are flagged.

◆ CID_SIMPLECREATE

#define CID_SIMPLECREATE   400

Create Command.

◆ CID_MODIFYPARAM

#define CID_MODIFYPARAM   500

Modify Command.

◆ CID_EDITSOFTSELECTION

#define CID_EDITSOFTSELECTION   525

Command Mode Id for the Edit Soft Selection Command Mode.

See also
EditSSMode

◆ CID_NULL

#define CID_NULL   600

Motion Command.

◆ CID_MANIPULATE

#define CID_MANIPULATE   900

Manipulate Command Mode.