HDK
|
A Scene Hook creates new scene render hooks when new viewports are created. More...
#include <DM_SceneHook.h>
Public Member Functions | |
DM_SceneHook (const char *hook_name, int priority, DM_SceneHookScope viewer_scope) | |
virtual | ~DM_SceneHook () |
const char * | getName () const |
int | getPriority () const |
DM_SceneHookScope | getViewerScope () const |
virtual DM_SceneRenderHook * | newSceneRender (DM_VPortAgent &vport, DM_SceneHookType type, DM_SceneHookPolicy policy)=0 |
Called when a viewport needs to create a new hook. Each viewport has its own scene hook. More... | |
virtual void | retireSceneRender (DM_VPortAgent &vport, DM_SceneRenderHook *hook)=0 |
Called when a viewport no longer requires the hook. When a viewport is destroyed, it retires all its hooks. Because a hook could be shared between all viewports, this method gives the scene hook the opportunity to delete it, dereference it, etc. The viewport doing the retiring is passed in along with the hook it is retiring. More... | |
A Scene Hook creates new scene render hooks when new viewports are created.
Definition at line 158 of file DM_SceneHook.h.
DM_SceneHook::DM_SceneHook | ( | const char * | hook_name, |
int | priority, | ||
DM_SceneHookScope | viewer_scope | ||
) |
Create a scene hook which creates scene render hook instances for specific viewports. Only one scene hook is ever created, and it is responsible for managing the scene render hooks for viewports. Each hook requires a name (for error reporting) and a priority level to resolve multiple scene hook conflicts.
|
virtual |
|
inline |
Definition at line 171 of file DM_SceneHook.h.
|
inline |
Definition at line 172 of file DM_SceneHook.h.
|
inline |
Definition at line 173 of file DM_SceneHook.h.
|
pure virtual |
Called when a viewport needs to create a new hook. Each viewport has its own scene hook.
|
pure virtual |
Called when a viewport no longer requires the hook. When a viewport is destroyed, it retires all its hooks. Because a hook could be shared between all viewports, this method gives the scene hook the opportunity to delete it, dereference it, etc. The viewport doing the retiring is passed in along with the hook it is retiring.