MeshTex  3.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
PluginModule Class Reference

A singleton object that handles registering as a plugin with Radiant. More...

#include <PluginModule.h>

List of all members.

Public Member Functions

Lifecycle
 PluginModule ()
 Default constructor.
 ~PluginModule ()
 Destructor.
Plugin function table interface
_QERPluginTable * getTable ()
 Fetch a pointer to the function table.

Static Public Member Functions

Plugin function table members
static const char * QERPluginInit (void *hApp, void *pMainWidget)
 Initialize plugin.
static const char * QERPluginGetName ()
 Get the plugin's name.
static const char * QERPluginGetCommandList ()
 Get the command list for the plugin menu, as a semicolon-separated string of tokens representing each command.
static const char * QERPluginGetCommandTitleList ()
 Get the command label list for the plugin menu, as a semicolon-separated string of labels to appear in the menu.
static void QERPluginDispatch (const char *command, float *vMin, float *vMax, bool bSingleBrush)
 Invoke a plugin command.

Static Private Attributes

static _QERPluginTable _pluginAPI
 Plugin function table.

Detailed Description

A singleton object that handles registering as a plugin with Radiant.


Constructor & Destructor Documentation

PluginModule::PluginModule ( )

Default constructor.

Initialize the function table.


Member Function Documentation

void PluginModule::QERPluginDispatch ( const char *  command,
float *  vMin,
float *  vMax,
bool  bSingleBrush 
)
static

Invoke a plugin command.

Parameters:
commandThe command token.
vMin3-element float vector definining min corner of selection.
vMax3-element float vector definining max corner of selection.
bSingleBrushDummy arg; ignored.
const char * PluginModule::QERPluginGetCommandList ( )
static

Get the command list for the plugin menu, as a semicolon-separated string of tokens representing each command.

Returns:
The command list string.
const char * PluginModule::QERPluginGetCommandTitleList ( )
static

Get the command label list for the plugin menu, as a semicolon-separated string of labels to appear in the menu.

Returns:
The command label list string.
const char * PluginModule::QERPluginGetName ( )
static

Get the plugin's name.

Returns:
The plugin name.
const char * PluginModule::QERPluginInit ( void *  hApp,
void *  pMainWidget 
)
static

Initialize plugin.

Parameters:
hAppDummy arg; ignored.
pMainWidgetMain window widget.
Returns:
The plugin name.

The documentation for this class was generated from the following files: