プラグイン(DLL)側で提供する必要がある関数です。関数内でプラグイン固有の機能を記述します。
○:必須 △:任意 ×:不要
void MQGetPlugInID(DWORD *Product, DWORD *ID);
プロダクト名(制作者名)とIDを、全部で64bitの値として返します。
ProductおよびIDの値は他と重複しないような適当にランダムなもので構いません。
この関数は起動時に呼び出されます。
Create | Export | Import | Object | Select | Station | Command |
○ | ○ | ○ | ○ | ○ | ○ | ○ |
const char *MQGetPlugInName(void);
[プラグインについて]ダイアログ上で表示するプラグイン名を返します。
この関数はダイアログ表示時に呼び出されます。
Create | Export | Import | Object | Select | Station | Command |
○ | ○ | ○ | ○ | ○ | ○ | ○ |
int MQGetPlugInType(void);
プラグインのタイプを返します。
この関数は起動時に呼び出されます。
Create | Export | Import | Object | Select | Station | Command |
○ | ○ | ○ | ○ | ○ | ○ | ○ |
const char *MQEnumFileType(int index);
ファイルの形式名を返します。返した形式名はファイルダイアログ上のコンボボックスに表示されます。
この関数は起動時に呼び出されます。indexは0から順に呼び出されるごとに増えていき、戻り値としてNULLを返したときに呼び出しが終了します。
Create | Export | Import | Object | Select | Station | Command |
× | ○ | ○ | × | × | × | × |
const char *MQEnumFileExt(int index);
ファイルの拡張子を返します。返した拡張子はファイルダイアログ上で扱われます。
この関数は起動時に呼び出されます。indexは0から順に呼び出されるごとに増えていき、戻り値としてNULLを返したときに呼び出しが終了します。
Create | Export | Import | Object | Select | Station | Command |
× | ○ | ○ | × | × | × | × |
BOOL MQImportFile(int index, const char *filename, MQDocument doc);
ファイルからデータを読み込んでドキュメントにオブジェクトを追加します。
ファイルが正常に読み込めない、不明なフォーマット、有効なオブジェクトが存在しない、などの場合はFALSEを返すようにしてください。
Create | Export | Import | Object | Select | Station | Command |
× | × | ○ | × | × | × | × |
BOOL MQExportFile(int index, const char *filename, MQDocument doc);
ドキュメントに登録されているオブジェクトをファイルへ書き込みます。
何らかの理由で書き込みに失敗した場合はFALSEを返すようにしてください。
Create | Export | Import | Object | Select | Station | Command |
× | ○ | × | × | × | × | × |
const char *MQEnumString(int index);
プラグインに応じた特定の目的の文字列を返します。
Create/Object/Select/Stationプラグインの場合は、メニュー上に表示される文字列となります。Commandプラグインの場合はボタンに表記される文字列となります。
Create | Export | Import | Object | Select | Station | Command |
○ | × | × | ○ | ○ | ○ | ○ |
BOOL MQCreate(int index, MQDocument doc);
オブジェクトを作成してドキュメントに登録します。
Create | Export | Import | Object | Select | Station | Command |
○ | × | × | × | × | × | × |
BOOL MQModifyObject(int index, MQDocument doc);
カレントオブジェクトに変形操作を行います。
Create | Export | Import | Object | Select | Station | Command |
× | × | × | ○ | × | × | × |
BOOL MQModifySelect(int index, MQDocument doc);
選択された頂点・辺・面に変形操作を行います。
Create | Export | Import | Object | Select | Station | Command |
× | × | × | × | ○ | × | × |
BOOL MQOnEvent(MQDocument doc, int event_type, void *option);
(new in Rev2.40)
本体側で何らかの処理が行われたときに呼び出されます。常駐型・コマンドプラグインはイベントを適切に処理する必要があります。
Create | Export | Import | Object | Select | Station | Command |
× | × | × | × | × | ○ | ○ |