maxscript/kernel/value.h File Reference
Loading Bitmaps,
Memory Management for Plug-ins that Work with Bitmaps,
Resolution / Palettes / Pixel Storage Topics,
Loading and Saving Plug-in Data,
Backward Compatibility,
Using the API to Create and Modify 3ds Max NURBS Models,
Making Controllers Lockable,
Published Functions and MAXScript,
MAXScript Compiler and Interpreter,
MAXScript Functions with Optional Arguments,
MAXScript Functions,
Exposing a Function to MAXScript,
Deferred Loading of Plug-ins,
MAXScript Marshalling of Function Arguments,
MAXScript Distinguished Values.
|
#define | def_generic(fn, name) ScripterExport virtual Value* fn##_vf(Value** arglist, int arg_count); |
|
#define | is_valueclass(v) ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == (ValueMetaClass*)&value_metaclass) |
|
#define | CHECK_ARG_COUNT(fn, w, g) if ((w) != (g)) throw ArgCountError (_M(#fn), w, g) |
|
#define | classof_methods(_cls, _super) |
|
#define | visible_class(_cls) |
|
#define | visible_class_debug_ok(_cls) |
|
#define | visible_class_s(_cls, _super) |
|
#define | applyable_class(_cls) |
|
#define | applyable_class_debug_ok(_cls) |
|
#define | applyable_class_s(_cls, _super) |
|
#define | visible_class_instance(_cls, _name) ScripterExport _cls##Class _cls##_class (_M(_name)); |
|
#define | invisible_class(_cls) |
|
#define | invisible_class_instance(_cls, _name) ScripterExport _cls##Class _cls##_class (_M(_name)); |
|
#define | class_tag(_cls) &_cls##_class |
|
#define | INTERNAL_CLASS_TAG ((ValueMetaClass*)0L) |
|
#define | INTERNAL_INDEX_THUNK_TAG ((ValueMetaClass*)1L) |
|
#define | INTERNAL_PROP_THUNK_TAG ((ValueMetaClass*)2L) |
|
#define | INTERNAL_LOCAL_THUNK_TAG ((ValueMetaClass*)3L) |
|
#define | INTERNAL_FREE_THUNK_TAG ((ValueMetaClass*)4L) |
|
#define | INTERNAL_RO_LOCAL_THUNK_TAG ((ValueMetaClass*)5L) |
|
#define | INTERNAL_CODE_TAG ((ValueMetaClass*)6L) |
|
#define | INTERNAL_SOURCEFILEWRAPPER_TAG ((ValueMetaClass*)7L) |
|
#define | INTERNAL_PIPE_TAG ((ValueMetaClass*)8L) |
|
#define | INTERNAL_TOOL_LOCAL_THUNK_TAG ((ValueMetaClass*)9L) |
|
#define | INTERNAL_GLOBAL_THUNK_TAG ((ValueMetaClass*)10L) |
|
#define | INTERNAL_CONST_GLOBAL_THUNK_TAG ((ValueMetaClass*)11L) |
|
#define | INTERNAL_SYS_GLOBAL_THUNK_TAG ((ValueMetaClass*)12L) |
|
#define | INTERNAL_PLUGIN_LOCAL_THUNK_TAG ((ValueMetaClass*)13L) |
|
#define | INTERNAL_PLUGIN_PARAM_THUNK_TAG ((ValueMetaClass*)14L) |
|
#define | INTERNAL_RCMENU_LOCAL_THUNK_TAG ((ValueMetaClass*)15L) |
|
#define | INTERNAL_STRUCT_MEM_THUNK_TAG ((ValueMetaClass*)16L) |
|
#define | INTERNAL_MSPLUGIN_TAG ((ValueMetaClass*)17L) |
|
#define | INTERNAL_STRUCT_TAG ((ValueMetaClass*)18L) |
|
#define | INTERNAL_MAKER_TAG ((ValueMetaClass*)19L) |
|
#define | INTERNAL_CODEBLOCK_LOCAL_TAG ((ValueMetaClass*)20L) |
|
#define | INTERNAL_CODEBLOCK_TAG ((ValueMetaClass*)21L) |
|
#define | INTERNAL_THUNK_REF_TAG ((ValueMetaClass*)22L) |
|
#define | INTERNAL_THUNK_DEREF_TAG ((ValueMetaClass*)23L) |
|
#define | INTERNAL_STRUCT_METHOD_TAG ((ValueMetaClass*)24L) |
|
#define | INTERNAL_MSPLUGIN_METHOD_TAG ((ValueMetaClass*)25L) |
|
#define | INTERNAL_CONTEXT_THUNK_TAG ((ValueMetaClass*)26L) |
|
#define | INTERNAL_OWNER_THUNK_TAG ((ValueMetaClass*)27L) |
|
#define | INTERNAL_RCMENU_ITEM_THUNK_TAG ((ValueMetaClass*)28L) |
|
#define | INTERNAL_STANDINMSPLUGINCLASS_TAG ((ValueMetaClass*)29L) |
|
#define | INTERNAL_SOURCEPOSWRAPPER_TAG ((ValueMetaClass*)30L) |
|
#define | INTERNAL_TAGS ((ValueMetaClass*)100L) |
|
#define | is_sourcepositionwrapper(v) ((v)->tag == INTERNAL_SOURCEPOSWRAPPER_TAG) |
|
#define | is_bool(v) ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == &Boolean_class) |
|
#define CHECK_ARG_COUNT |
( |
|
fn, |
|
|
|
w, |
|
|
|
g |
|
) |
| if ((w) != (g)) throw ArgCountError (_M(#fn), w, g) |
#define classof_methods |
( |
|
_cls, |
|
|
|
_super |
|
) |
| |
Value:
return &_cls##_class; \
} \
return &_super##_class; \
} \
return (arg_list[0] == &_cls##_class) ? \
} \
{ \
return (c == &_cls##_class) ? 1 \
}
Value * classOf_vf(Value **arg_list, int count)
Value * superClassOf_vf(Value **arg_list, int count)
BOOL is_kind_of(ValueMetaClass *c)
Definition: mxsmaterial.h:30
ScripterExport Boolean true_value
#define UNUSED_PARAM(x)
Definition: BuildWarnings.h:20
#define CHECK_ARG_COUNT(fn, w, g)
Definition: value.h:312
Value * isKindOf_vf(Value **arg_list, int count)
#define visible_class |
( |
|
_cls | ) |
|
Value:
{ \
public: \
}; \
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
Value * name
Definition: structs.h:25
#define ScripterExport
Definition: ScripterExport.h:7
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
#define visible_class_debug_ok |
( |
|
_cls | ) |
|
Value:
{ \
public: \
}; \
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
Value * name
Definition: structs.h:25
#define ScripterExport
Definition: ScripterExport.h:7
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
Definition: collectable.h:61
#define visible_class_s |
( |
|
_cls, |
|
|
|
_super |
|
) |
| |
Value:
{ \
public: \
return &_super##_class; \
} \
return _super##_class.classOf_vf(
NULL, 0); \
} \
}; \
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
Value * classOf_vf(Value **arg_list, int count)
Value * name
Definition: structs.h:25
#define ScripterExport
Definition: ScripterExport.h:7
#define NULL
Definition: autoptr.h:20
Value * superClassOf_vf(Value **arg_list, int count)
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
#define UNUSED_PARAM(x)
Definition: BuildWarnings.h:20
#define CHECK_ARG_COUNT(fn, w, g)
Definition: value.h:312
#define applyable_class |
( |
|
_cls | ) |
|
Value:
{ \
public: \
}; \
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
Value * name
Definition: structs.h:25
#define ScripterExport
Definition: ScripterExport.h:7
#define NULL
Definition: autoptr.h:20
Definition: functions.h:55
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
virtual ScripterExport Value * apply(Value **arglist, int count, CallContext *cc=NULL)
#define applyable_class_debug_ok |
( |
|
_cls | ) |
|
Value:
{ \
public: \
}; \
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
Value * name
Definition: structs.h:25
#define ScripterExport
Definition: ScripterExport.h:7
#define NULL
Definition: autoptr.h:20
Definition: functions.h:55
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
virtual ScripterExport Value * apply(Value **arglist, int count, CallContext *cc=NULL)
Definition: collectable.h:61
#define applyable_class_s |
( |
|
_cls, |
|
|
|
_super |
|
) |
| |
Value:
{ \
public: \
return &_super##_class; \
} \
return _super##_class.classOf_vf(
NULL, 0); \
}; \
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
Value * classOf_vf(Value **arg_list, int count)
Value * name
Definition: structs.h:25
#define ScripterExport
Definition: ScripterExport.h:7
#define NULL
Definition: autoptr.h:20
Definition: functions.h:55
Value * superClassOf_vf(Value **arg_list, int count)
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
#define UNUSED_PARAM(x)
Definition: BuildWarnings.h:20
virtual ScripterExport Value * apply(Value **arglist, int count, CallContext *cc=NULL)
#define CHECK_ARG_COUNT(fn, w, g)
Definition: value.h:312
#define visible_class_instance |
( |
|
_cls, |
|
|
|
_name |
|
) |
| ScripterExport _cls##Class _cls##_class (_M(_name)); |
#define invisible_class |
( |
|
_cls | ) |
|
Value:
{ \
public: \
}; \
MAXMEM_EXTERN_C UtilExport void(__cdecl *MAX_free)(void *memblock)
Value * name
Definition: structs.h:25
#define ScripterExport
Definition: ScripterExport.h:7
#define MCHAR
MBCS/Unicode helper defines std::wofstream doesn't mix well with Unicode.
Definition: strbasic.h:92
#define invisible_class_instance |
( |
|
_cls, |
|
|
|
_name |
|
) |
| ScripterExport _cls##Class _cls##_class (_M(_name)); |
#define class_tag |
( |
|
_cls | ) |
&_cls##_class |
#define NULL
Definition: autoptr.h:20
ScripterExport Value * get_heap_ptr()
Definition: value.h:267
ScripterExport Value * get_live_ptr()
Definition: value.h:270
visible_class_debug_ok |
( |
Value |
| ) |
|
visible_class_debug_ok |
( |
Undefined |
| ) |
|
521 Undefined() { tag = &Undefined_class; }
classof_methods |
( |
Undefined |
, |
|
|
Value |
|
|
) |
| |
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
#define NULL
Definition: autoptr.h:20
Definition: paramtype.h:95
IObject * iobj
Definition: ifnpub.h:1193
ParamType2 type
Definition: ifnpub.h:1152
visible_class_debug_ok |
( |
Ok |
| ) |
|
547 Ok() { tag = &Ok_class; }
classof_methods |
( |
Ok |
, |
|
|
Value |
|
|
) |
| |
visible_class_debug_ok |
( |
Empty |
| ) |
|
570 Empty() { tag = &Empty_class; }
classof_methods |
( |
Empty |
, |
|
|
Value |
|
|
) |
| |
visible_class_debug_ok |
( |
Unsupplied |
| ) |
|
593 Unsupplied() { tag = &Unsupplied_class; }
classof_methods |
( |
Unsupplied |
, |
|
|
Value |
|
|
) |
| |
visible_class_debug_ok |
( |
NoValue |
| ) |
|
623 NoValue() { tag = &NoValue_class; }
classof_methods |
( |
NoValue |
, |
|
|
Value |
|
|
) |
| |
MetaClassClass value_metaclass |