Callbacks/Handlers 函数

详细描述

Typedefs

typedef Int32   CDialogMessage (CDialog *cd, CUserArea *cu, BaseContainer *msg)
typedef void  ListViewCallBack ( Int32 &res_type, void *&result, void *userdata, void *secret, Int32 cmd, Int32 line, Int32 col, void *data1)
typedef void  IlluminationModel ( VolumeData *sd, RayLightCache *rlc, void *dat)
typedef void(*  BrowserPopupCallback ) (void *userdata, Int32 cmd, SDKBrowserURL &url)
typedef Bool (*  BaseDrawMessageHook ) ( BaseDraw *pBaseDraw, BaseDocument *pDoc, BASEDRAW_HOOK_MESSAGE msg, void *pData)
typedef void  ThreadMain (void *data)
typedef Bool   ThreadTest (void *data)
typedef void  ProgressHook ( Float p, RENDERPROGRESSTYPE progress_type, void *context)
typedef void  WriteProgressHook ( WRITEMODE 模式, BaseBitmap *bmp, const Filename &fn, Bool mainImage, Int32 frame, Int32 renderTime, Int32 streamnum, const maxon::String &streamname, void *context)
typedef void  BakeProgressHook ( BakeProgressInfo *info)
typedef void *  HierarchyAlloc (void *main)
typedef void  HierarchyFree (void *main, void *data)
typedef void  HierarchyCopyTo (void *main, void *src, void *dst)
typedef Bool   HierarchyDo (void *main, void *data, BaseObject *op, const 矩阵 &mg, Bool controlobject)
typedef void(*  LASTCURSORINFOFUNC ) ()
typedef Bool (*  SaveCallbackImageFunc ) ( RDATA_SAVECALLBACK_CMD cmd, void *userdata, BaseDocument *doc, Int32 framenum, BaseBitmap *bmp, const Filename &fn)
typedef Bool   BackgroundHandler (void *data, BACKGROUNDHANDLERCOMMAND command, BACKGROUNDHANDLERFLAGS parm)
typedef void(*  C4D_CrashHandler ) ( Char *crashinfo)
typedef void(*  C4D_CreateOpenGLContext ) (void *context, void *root, UInt32 flags)
typedef void(*  C4D_DeleteOpenGLContext ) (void *context, UInt32 flags)
typedef GeData   CodeEditorCallback ( BaseList2D *obj, const BaseContainer &msg)

函数

const typedef Char ThreadName (void *data)

Typedef Documentation

◆  CDialogMessage

typedef Int32 CDialogMessage(CDialog *cd, CUserArea *cu, BaseContainer *msg)

Internal . dialog hook.

◆  ListViewCallBack

typedef void ListViewCallBack( Int32 &res_type, void *&result, void *userdata, void *secret, Int32 cmd, Int32 line, Int32 col, void *data1)

Internal . listview hook.

◆  IlluminationModel

typedef void IlluminationModel( VolumeData *sd, RayLightCache *rlc, void *dat)

Hook passed to IlluminanceSimple(). Called during illuminance calculations.

参数
[in] sd The volume data for the point being calculated.
[in] rlc The light data cache for the point being calculated.
[in] dat The private data sent to IlluminanceSimple().

◆  BrowserPopupCallback

typedef void(* BrowserPopupCallback) (void *userdata, Int32 cmd, SDKBrowserURL &url)

Callback for BrowserLibraryPopup() .

参数
[in] userdata The data sent to BrowserLibraryPopup() .
[in] cmd The browser command ID.
[in] url The URL of the preset.

◆  BaseDrawMessageHook

typedef Bool (* BaseDrawMessageHook) ( BaseDraw *pBaseDraw, BaseDocument *pDoc, BASEDRAW_HOOK_MESSAGE msg, void *pData)

Private .

◆  ThreadMain

typedef void ThreadMain(void *data)

Internal . thread hook.

◆  ThreadTest

typedef Bool ThreadTest(void *data)

Internal . thread hook.

◆  ProgressHook

typedef void ProgressHook( Float p, RENDERPROGRESSTYPE progress_type, void *context)

Callback for the progress of RenderDocument() .

另请参阅
RenderJob::GetProgressHook
NetRenderService::InitRendering
参数
[in] p The progress, between 0.0 and 1.0 .
[in] progress_type The render progress type: RENDERPROGRESSTYPE
[in] context The context passed to RenderDocument() . The caller owns the pointed context.

◆  WriteProgressHook

typedef void WriteProgressHook( WRITEMODE 模式, BaseBitmap *bmp, const Filename &fn, Bool mainImage, Int32 frame, Int32 renderTime, Int32 streamnum, const maxon::String &streamname, void *context)

Callback for the write progress of RenderDocument() .

另请参阅
RenderJob::GetWriteProgressHook
NetRenderService::InitRendering
参数
[in] mode The write mode.
[in] bmp The bitmap written to.
[in] mainImage true for main image, otherwise false .
[in] frame The frame number.
[in] renderTime The bitmap frame time.
[in] streamnum The stream number.
[in] streamname The stream name.
[in] context The context data passed. The caller owns the pointed data.

◆  BakeProgressHook

typedef void BakeProgressHook( BakeProgressInfo *info)

Callback for the progress of texture baking.

参数
[in] info The bake progress information.

◆  HierarchyAlloc

typedef void* HierarchyAlloc(void *main)

Internal . hierarchy hook.

◆  HierarchyFree

typedef void HierarchyFree(void *main, void *data)

Internal . hierarchy hook.

◆  HierarchyCopyTo

typedef void HierarchyCopyTo(void *main, void *src, void *dst)

Internal . hierarchy hook.

◆  HierarchyDo

typedef Bool HierarchyDo(void *main, void *data, BaseObject *op, const 矩阵 &mg, Bool controlobject)

Internal . hierarchy hook.

◆  LASTCURSORINFOFUNC

typedef void(* LASTCURSORINFOFUNC) ()

Callback invoked when mouse cursor leaves a user area.

另请参阅
RemoveLastCursorInfo()

◆  SaveCallbackImageFunc

typedef Bool (* SaveCallbackImageFunc) ( RDATA_SAVECALLBACK_CMD cmd, void *userdata, BaseDocument *doc, Int32 framenum, BaseBitmap *bmp, const Filename &fn)

Private .

◆  BackgroundHandler

typedef Bool BackgroundHandler(void *data, BACKGROUNDHANDLERCOMMAND command, BACKGROUNDHANDLERFLAGS parm)

Callback for background handlers registered with GeAddBackgroundHandler()
Example from the active material rendering:

Bool Handler_ActiveMaterial( void *data, Int32 command, Int32 flags) { switch (command) { case BACKGROUNDHANDLERCOMMAND::ISRUNNING : { return world->materialpreview && world->materialpreview->IsRunning(); } break ; case BACKGROUNDHANDLERCOMMAND::STOP : { if (flags& BACKGROUNDHANDLERFLAGS::MATERIALPREVIEW ) { if (world->materialpreview) world->materialpreview->End(); } } break ; case BACKGROUNDHANDLERCOMMAND::START : { return CheckActiveMaterialPreview(world->GetActiveDocument()); } break ; } return true ; }
参数
[in] data The data passed to GeAddBackgroundHandler()
[in] 命令 The callback command: BACKGROUNDHANDLERCOMMAND
[in] parm The flags given to GeStopBackgroundThreads() : BACKGROUNDHANDLERFLAGS
返回
Depends on the background handler 命令 .

◆  C4D_CrashHandler

typedef void(* C4D_CrashHandler) ( Char *crashinfo)

A custom crash handler.
See the SDK examples and main.cpp .

参数
[in] crashinfo The crash information text.

◆  C4D_CreateOpenGLContext

typedef void(* C4D_CreateOpenGLContext) (void *context, void *root, UInt32 flags)

Create OpenGL context hook.

◆  C4D_DeleteOpenGLContext

typedef void(* C4D_DeleteOpenGLContext) (void *context, UInt32 flags)

Delete OpenGL context hook.

◆  CodeEditorCallback

typedef GeData CodeEditorCallback( BaseList2D *obj, const BaseContainer &msg)

Callback for CodeEditor_Open() .

参数
[in] obj The object the source belongs to.
[in] msg The message container.
返回
A GeData depending on the message.

Function Documentation

◆  ThreadName()

const typedef Char * ThreadName ( void *  data )

Internal . thread hook.

BACKGROUNDHANDLERCOMMAND::START
@ START
BACKGROUNDHANDLERFLAGS::MATERIALPREVIEW
@ MATERIALPREVIEW
Material preview.
BACKGROUNDHANDLERCOMMAND::STOP
@ STOP
Stop the current activity. Return true when the activity has stopped.
BACKGROUNDHANDLERCOMMAND::ISRUNNING
@ ISRUNNING
Return true if the handler is currently running, otherwise false.
Int32
maxon::Int32 Int32
定义: ge_sys_math.h:58
Bool
maxon::Bool Bool
定义: ge_sys_math.h:53

Copyright  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1