c4d_falloffdata.h File Reference

Classes

struct  FalloffCollectMessage
 
struct  FalloffDataData
 
class  FalloffData
 
class  C4D_Falloff
 

Macros

#define ID_C4DFALLDATALIB
 
#define ID_C4DFALLOFFLIB
 
#define ID_BASE_FALLOFF
 
#define ID_STANDARD_FALLOFF
 
#define MSG_COLLECTC4DFALLOFF
 

Typedefs

typedef FalloffDataFalloffDataAllocator()
 

Functions

void FillFalloffPlugin (FALLOFFPLUGIN *fp, Int32 info, FalloffDataAllocator *g)
 
Bool RegisterFalloffPlugin (Int32 id, const maxon::String &str, Int32 info, FalloffDataAllocator *g, const maxon::String &description)
 
void * AllocFalloff (Int32 type)
 

Typedef Documentation

◆ FalloffDataAllocator

typedef FalloffData* FalloffDataAllocator()

FalloffData allocator.

Function Documentation

◆ FillFalloffPlugin()

void FillFalloffPlugin ( FALLOFFPLUGIN *  fp,
Int32  info,
FalloffDataAllocator g 
)

Private.

◆ RegisterFalloffPlugin()

Bool RegisterFalloffPlugin ( Int32  id,
const maxon::String str,
Int32  info,
FalloffDataAllocator g,
const maxon::String description 
)

Registers a falloff plugin.

Parameters
[in]idA unique plugin ID. Must be obtained from http://www.plugincafe.com.
[in]strThe name of the plugin.
[in]infoThe falloff plugin info flags: PLUGINFLAG
[in]gThe allocator for the falloff plugin. This is a pointer to a function that creates a new instance of FalloffData with NewObj().
[in]descriptionThe name of the description resource file to use for the falloff plugin without .res extension, for example "ofalloff_falloffname".
The name has to be unique, i.e. "ofalloff_falloffname" cannot be used for 2 different descriptions. See Description Resource for more information.
Returns
true if the falloff plugin was registered, otherwise false.

◆ AllocFalloff()

void* AllocFalloff ( Int32  type)

Allocates a falloff.

Parameters
[in]typeThe falloff type.
Returns
The allocated falloff, or nullptr if the allocation failed.