c4d_baseplugin.h File Reference

Classes

struct  BASEPLUGIN
 
struct  STATICPLUGIN
 
class  BasePlugin
 
class  ToolPlugin
 

Namespaces

 maxon
 

Macros

#define PLUGINFLAG_HIDE
 
#define PLUGINFLAG_SMALLNODE
 
#define PLUGINFLAG_HIDEPLUGINMENU
 
#define PLUGINFLAG_INTERNAL
 
#define PLUGINFLAG_REFRESHALWAYS
 
#define C4DPL_MEMBERMULTIPLIER
 

Functions

BasePluginFindPlugin (Int32 id, PLUGINTYPE type)
 
BasePluginGetFirstPlugin ()
 
Bool FilterPluginList (AtomArray &arr, PLUGINTYPE type, Bool sortbyname)
 
void RemovePlugin (BasePlugin *plug)
 
void BuildGlobalTagPluginContainer (BaseContainer *plugincontainer, Int32 *id, UInt &newFeatureVersion)
 
Int32 ResolveGlobalTagPluginContainer (Int32 *id)
 
FilenameGetLocalFilename ()
 
BasePluginCreatePluginEntry (const maxon::String &foldername, BasePlugin *bp)
 
void SetLocalHierarchy (BasePlugin *parent, BasePlugin *pred)
 

Macro Definition Documentation

◆ C4DPL_MEMBERMULTIPLIER

#define C4DPL_MEMBERMULTIPLIER

Internal.

Function Documentation

◆ FindPlugin()

BasePlugin* FindPlugin ( Int32  id,
PLUGINTYPE  type 
)

Finds a plugin from its id and type.

Note
For CUSTOMDATATYPEPLUGIN and RESOURCEDATATYPEPLUGIN, please use FindCustomDataTypePlugin() and FindResourceDataTypePlugin()
Parameters
[in]idThe plugin ID.
[in]typeThe plugin type: PLUGINTYPE
Returns
The found plugin or nullptr. Cinema 4D owns the pointed plugin.

◆ GetFirstPlugin()

BasePlugin* GetFirstPlugin ( )

Gets the first registered plugin in the plugin list.

Returns
The first plugin or nullptr. Cinema 4D owns the pointed plugin.

◆ FilterPluginList()

Bool FilterPluginList ( AtomArray arr,
PLUGINTYPE  type,
Bool  sortbyname 
)

Browses recursively through the plugin list looking for plugin of the specified type.
For example, to find all bitmap saver plugins use:

AtomArray plugins;
...
Bool FilterPluginList(AtomArray &arr, PLUGINTYPE type, Bool sortbyname)
Definition: c4d_baselist.h:1651
@ BITMAPSAVER
Bitmap saver. (BitmapSaverData)
Parameters
[out]arrFilled with the found plugins.
[in]typeThe plugin type to filter: PLUGINTYPE
[in]sortbynameIf true then the found plugins are sorted alphabetically by name.
Returns
true if successful, otherwise false.

◆ RemovePlugin()

void RemovePlugin ( BasePlugin plug)

Private.

◆ BuildGlobalTagPluginContainer()

void BuildGlobalTagPluginContainer ( BaseContainer plugincontainer,
Int32 id,
UInt newFeatureVersion 
)

Private.

◆ ResolveGlobalTagPluginContainer()

Int32 ResolveGlobalTagPluginContainer ( Int32 id)

Private.

◆ GetLocalFilename()

Filename* GetLocalFilename ( )

Private.

◆ CreatePluginEntry()

BasePlugin* CreatePluginEntry ( const maxon::String foldername,
BasePlugin bp 
)

Private.

◆ SetLocalHierarchy()

void SetLocalHierarchy ( BasePlugin parent,
BasePlugin pred 
)

Private.