FPFunctionDef Class Reference

#include <ifnpub.h>

Class Description

See also
Class FPInterface, Class FPInterfaceDesc, Class FPActionDef, Class FPParamDef, Template Class Tab, Function Publishing, ParamType, ParamType2.

Description:
This class stores data about a single function of an FPInterface. A table of pointers to these objects is a data member of Class FPInterfaceDesc.
Data Members:
FunctionID ID;

The interface-local ID (unique to the interface only) used to identify the function in calls.

MSTR internal_name;

The fixed internal name for the function.

StringResID description;

The description string resource.

USHORT flags;

The internal flag bits. One of more of the following values:

FP_ACTION

Indicates this is an action function.

FP_HAS_UI

Indicates the action has UI specified.

FP_ICONRES

Indicates icon via resource ID.

FP_ICONFILE

Indicates icon via bmp file + index.

FP_HAS_SHORTCUT

Indicates has default keyboard shortcut.

FP_HAS_KEYARGS

Indicates function has some optional keyword args defined.

FP_VAR_ARGS

Indicates a variable number of args, pass args directly in a FPParams instance.

FP_NO_REDRAW

Do not flag need for viewport redraw when function is invoked, MAXScript defaults to flag redraw.

ParamType2 result_type;

The type of value returned by the function.

EnumID enumID;

The ID of symbolic enumeration in owning interface if any.

FPActionDef* action_def;

The extra metadata if function in an Action interface.

Tab<FPParamDef*> params;

The descriptors for parameters to this function.
+ Inheritance diagram for FPFunctionDef:

Public Member Functions

 FPFunctionDef ()
 
CoreExport ~FPFunctionDef ()
 

Public Attributes

DWORD cbStruct
 
FunctionID ID
 
MSTR internal_name
 
StringResID description
 
USHORT flags
 
ParamType2 result_type
 
EnumID enumID
 
FPActionDefaction_def
 
Tab< FPParamDef * > params
 
SHORT keyparam_count
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 

Constructor & Destructor Documentation

FPFunctionDef ( )
inline
Remarks
Constructor. The data members are initialized as follows:

flags = 0; description = 0; action_def = NULL; enumID = FP_NO_ENUM;
#define NULL
Definition: autoptr.h:18
DWORD cbStruct
Definition: ifnpub.h:675
ParamType2 result_type
Definition: ifnpub.h:680
StringResID description
Definition: ifnpub.h:678
EnumID enumID
Definition: ifnpub.h:681
FPActionDef * action_def
Definition: ifnpub.h:682
#define FP_NO_ENUM
Definition: ifnpub.h:55
FunctionID ID
Definition: ifnpub.h:676
A floating point value with an implied stdAngleDim dimension.
Definition: paramtype.h:58
SHORT keyparam_count
Definition: ifnpub.h:684
USHORT flags
Definition: ifnpub.h:679
FPFunctionDef()
Definition: ifnpub.h:690

Member Data Documentation

DWORD cbStruct
MSTR internal_name
StringResID description
USHORT flags
ParamType2 result_type
EnumID enumID
FPActionDef* action_def
Tab<FPParamDef*> params
SHORT keyparam_count