maxscript/util/mousetool.h File Reference

mousetool.h File Reference
+ This reference page is linked to from the following overview topics:

#include "../kernel/value.h"
#include "../../mouseman.h"
#include "../../point3.h"
#include "../../cmdmode.h"
#include "../../maxapi.h"

Classes

class  MouseToolCallBack
 
class  MouseToolCommandMode
 

Macros

#define MOUSE_TOOL_COMMAND   7364
 
#define CID_MOUSE_TOOL   CID_USER + 45237
 
#define is_mousetool(v)   ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MouseTool))
 

Enumerations

enum  {
  cl_viewPoint, cl_worldPoint, cl_worldDist, cl_worldAngle,
  cl_gridPoint, cl_gridDist, cl_gridAngle, cl_nodeTM,
  cl_shift, cl_ctrl, cl_alt, cl_lbutton,
  cl_mbutton, cl_rbutton
}
 

Functions

 MouseTool (short iflags)
 
void init (Value *name, int local_count, Value **inits, HashTable *local_scope, HashTable *handlers)
 
 ~MouseTool ()
 
 classof_methods (MouseTool, Value)
 
void collect ()
 
void gc_trace ()
 
ScripterExport void sprin1 (CharStream *s)
 
BOOL call_event_handler (Value *handler, Value **arg_list, int count, BOOL enable_redraw=TRUE)
 
void init_locals ()
 
virtual Valueget_property (Value **arg_list, int count)
 
virtual Valueset_property (Value **arg_list, int count)
 
void dump_local_vars_and_externals (int indentLevel)
 

Variables

visible_class(MouseTool) class
MouseTool HashTable
local_scope
 
Value ** locals
 
Value ** local_inits
 
int local_count
 
HashTablehandlers
 
short flags
 
int cmd_class
 
int num_points
 
Valueprompt
 
BOOL init_values
 
BOOL end_tool_mode
 
MouseToolCommandMode cmdmode
 
Valueresult
 
Valuesnap_mode
 
MSPlugin * plugin
 

Macro Definition Documentation

#define MOUSE_TOOL_COMMAND   7364
#define CID_MOUSE_TOOL   CID_USER + 45237
#define is_mousetool (   v)    ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(MouseTool))

Enumeration Type Documentation

anonymous enum
Enumerator
cl_viewPoint 
cl_worldPoint 
cl_worldDist 
cl_worldAngle 
cl_gridPoint 
cl_gridDist 
cl_gridAngle 
cl_nodeTM 
cl_shift 
cl_ctrl 
cl_alt 
cl_lbutton 
cl_mbutton 
cl_rbutton 
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24
Definition: mousetool.h:24

Function Documentation

MouseTool ( short  iflags)
void init ( Value name,
int  local_count,
Value **  inits,
HashTable local_scope,
HashTable handlers 
)
~MouseTool ( )
classof_methods ( MouseTool  ,
Value   
)
void collect ( )
void gc_trace ( )
ScripterExport void sprin1 ( CharStream s)
351 { s->printf(_M("LabelControl:%s"), name->to_string()); }
Value * name
Definition: structs.h:25
#define _M(x)
Used to wrap string literals.
Definition: strbasic.h:122
virtual const MCHAR * to_string()
Definition: value.h:171
BOOL call_event_handler ( Value handler,
Value **  arg_list,
int  count,
BOOL  enable_redraw = TRUE 
)
void init_locals ( )
virtual Value* get_property ( Value **  arg_list,
int  count 
)
virtual
virtual Value* set_property ( Value **  arg_list,
int  count 
)
virtual
void dump_local_vars_and_externals ( int  indentLevel)

Variable Documentation

Value** locals
Value** local_inits
int local_count
HashTable* handlers
short flags
int cmd_class
int num_points
Value* prompt
BOOL init_values
BOOL end_tool_mode
Value* result
Value* snap_mode
MSPlugin* plugin