Overriding NodeData::Message it is not recommended to check for a nullptr pointer in node->GetDocument()
if it is a MATPREVIEW message.
For those messages the document might be nullptr in some cases, but the method should not be aborted.
◆ MATPREVIEW_GET_OBJECT_INFO
#define MATPREVIEW_GET_OBJECT_INFO |
Sent by the material preview to get object information from the host. The corresponding data is MatPreviewObjectInfo.
◆ MATPREVIEW_GENERATE_IMAGE
#define MATPREVIEW_GENERATE_IMAGE |
◆ MATPREVIEW_MODIFY_CACHE_SCENE
#define MATPREVIEW_MODIFY_CACHE_SCENE |
Sent by the material preview to let the host modify the preview scene. A pointer to a scene inside the preview scene cache is sent. The corresponding data is MatPreviewModifyCacheScene.
◆ MATPREVIEW_PREPARE_SCENE
#define MATPREVIEW_PREPARE_SCENE |
◆ MATPREVIEW_GET_PREVIEW_ID
#define MATPREVIEW_GET_PREVIEW_ID |
The corresponding data is Int32. Set it to the ID of the material preview.
◆ MATPREVIEW_GET_POPUP_OPTIONS
#define MATPREVIEW_GET_POPUP_OPTIONS |
Let add extra material preview popup menu items to a custom sub-menu.
The corresponding data is a BaseContainer which represents the menu. Insert the menu items. Set the name of the sub-menu with MATPREVIEW_POPUP_NAME::
Example:
{
return true;
}
break;
const String & GeLoadString(Int32 id)
Definition: c4d_basecontainer.h:47
void SetString(Int32 id, const maxon::String &s)
Definition: c4d_basecontainer.h:569
#define MATPREVIEW_GET_POPUP_OPTIONS
Definition: customgui_matpreview.h:53
#define MATPREVIEW_POPUP_NAME
String Popup name.
Definition: customgui_matpreview.h:84
◆ MATPREVIEW_HANDLE_POPUP_MSG
#define MATPREVIEW_HANDLE_POPUP_MSG |
Sent when the user has selected any of the options in the material preview popup. The corresponding data is an Int32 which is the menu item ID.
◆ MATPREVIEW_FREE_USERDATA
#define MATPREVIEW_FREE_USERDATA |
Sent to free the user data. (Only sent when the preview is initialized with a callback.)
◆ MATPREVIEW_COPY_USERDATA
#define MATPREVIEW_COPY_USERDATA |
◆ MATPREVIEW_DRAGNDROP_RECV
#define MATPREVIEW_DRAGNDROP_RECV |
◆ MATPREVIEW_DRAGNDROP_START
#define MATPREVIEW_DRAGNDROP_START |
◆ MATPREVIEW_DRAGNDROP_END
#define MATPREVIEW_DRAGNDROP_END |
◆ MATPREVIEW_GET_DIRTY_COUNT
#define MATPREVIEW_GET_DIRTY_COUNT |
Let return a dirty count for the preview.
◆ MATPREVIEW_POPUP_NAME
#define MATPREVIEW_POPUP_NAME |
◆ MATPREVIEW_NULL_SIZE_NAME
#define MATPREVIEW_NULL_SIZE_NAME |