customgui_matpreview.h File Reference

Classes

struct  MatPreviewObjectInfo
 
struct  MatPreviewModifyCacheScene
 
struct  MatPreviewPrepareScene
 
struct  MatPreviewGenerateImage
 
struct  MatPreviewCopyUserData
 
struct  MatPreviewHandleDragnDrop
 
class  MaterialPreviewData
 
class  MaterialPreviewCustomGui
 

Namespaces

 cinema
 

Macros

#define CUSTOMGUI_MATPREVIEW
 
#define CUSTOMDATATYPE_MATPREVIEW
 
#define MATPREVIEW_MIN_WIDTH
 
#define MATPREVIEW_MIN_HEIGHT
 
#define MATPREVIEW_NO_SIZE_POPUP
 
#define MATPREVIEW_NO_BORDER
 
#define MATPREVIEW_NO_ANIMATION
 
#define MATPREVIEW_NO_FLOATWINDOW
 
#define MATPREVIEW_NO_SCENESETTINGS
 
#define MATPREVIEW_RECTSELECT
 
#define MATPREVIEW_NO_SCENESELECTION
 
#define MATPREVIEW_GET_OBJECT_INFO
 
#define MATPREVIEW_GENERATE_IMAGE
 
#define MATPREVIEW_MODIFY_CACHE_SCENE
 
#define MATPREVIEW_PREPARE_SCENE
 
#define MATPREVIEW_GET_PREVIEW_ID
 
#define MATPREVIEW_GET_POPUP_OPTIONS
 
#define MATPREVIEW_HANDLE_POPUP_MSG
 
#define MATPREVIEW_FREE_USERDATA
 
#define MATPREVIEW_COPY_USERDATA
 
#define MATPREVIEW_DRAGNDROP_RECV
 
#define MATPREVIEW_DRAGNDROP_START
 
#define MATPREVIEW_DRAGNDROP_END
 
#define MATPREVIEW_GET_DIRTY_COUNT
 
#define MATPREVIEW_POPUP_NAME
 
#define MATPREVIEW_NULL_SIZE_NAME
 
#define MATPREVIEW_FLAG_HIDE_ROTATION
 
#define MATPREVIEW_FLAG_HIDE_SCENES
 
#define MATPREVIEW_FLAG_HIDE_ANIMATE
 
#define MATPREVIEW_FLAG_HIDE_SIZE
 
#define MATPREVIEW_FLAG_HIDE_OPEN
 
#define MATPREVIEW_FLAG_HIDE_SCENE_SETTINGS
 
#define MATPREVIEW_FLAG_ALLOW_DRAGNDROP
 
#define RENDER_PREVIEW_USE_BMP_SIZE
 
#define RENDER_PREVIEW_USE_CURRENT_QUEUE
 

Typedefs

typedef Bool(* RenderPreviewImageCallback) (Int32 lMessage, void *pData, void *pUserData)
 

Enumerations

enum  MatPreviewType {
  MatPreviewDefault ,
  MatPreviewFlat2D ,
  MatPreviewCube ,
  MatPreviewPlane ,
  MatPreviewCylinder ,
  MatPreviewTorus ,
  MatPreviewPlaneBack ,
  MatPreviewSphere ,
  MatPreview2Torus ,
  MatPreviewRoundedCube ,
  MatPreviewKnot ,
  MatPreviewMultipleObjects ,
  MatPreviewCandle ,
  MatPreviewCloth ,
  MatPreviewGem ,
  MatPreviewObjectAnim ,
  MatPreviewObject ,
  MatPreviewUser
}
 
enum  MatPreviewSize {
  MatPreviewSizeDefault ,
  MatPreviewSizeSmall ,
  MatPreviewSizeMedium ,
  MatPreviewSizeBig ,
  MatPreviewSizeLarge
}
 

Functions

Bool SetDParameterPreview (BaseContainer *pContainer, const GeData *pData, DESCFLAGS_SET &lFlags, Int32 lID)
 
Bool GetDParameterPreview (BaseContainer *pContainer, GeData *pData, DESCFLAGS_GET &lFlags, Int32 lID, Int32 lCount, BaseMaterial *pMaterial)
 
Bool GetDParameterPreview (BaseContainer *pContainer, GeData *pData, DESCFLAGS_GET &lFlags, Int32 lID, Int32 lCount, BaseShader *pShader)
 
BaseContainer GetPreviewScenes (Bool bIncludeFlat2D, Bool bIncludeDefault=false, Int32 lObjectID=-1)
 
Bool HandlePreviewSceneMessage (Int32 lID, MatPreviewType &t, maxon::String &strScene)
 
Bool AddUserPreviewScene (const Filename &fn, Int32 lID, maxon::String *pstrName)
 
RENDERRESULT RenderMaterialPreview (const Filename &docpath, BaseMaterial *pMatClone, BaseMaterial *pOrigMat, BaseThread *pThread, BaseBitmap *pDest, BaseDocument *pOriginalDoc, Float rCurrentTime, Int32 lFlags=0)
 
RENDERRESULT RenderShaderPreview (const Filename &docpath, BaseShader *pShaderClone, BaseShader *pOrigShader, BaseThread *pThread, BaseBitmap *pDest, BaseDocument *pOriginalDoc, Float rCurrentTime, Int32 lFlags=0)
 
RENDERRESULT RenderCustomPreview (RenderPreviewImageCallback fn, void *pUserData, Int32 lUserID, BaseThread *pThread, BaseBitmap *pDest, Int32 lFlags=0)
 

Macro Definition Documentation

◆ CUSTOMGUI_MATPREVIEW

#define CUSTOMGUI_MATPREVIEW

Material preview custom GUI ID.

◆ CUSTOMDATATYPE_MATPREVIEW

#define CUSTOMDATATYPE_MATPREVIEW

Material preview custom data type ID.

◆ RENDER_PREVIEW_USE_BMP_SIZE

#define RENDER_PREVIEW_USE_BMP_SIZE

Renders in full bitmap size, ignoring the settings in the material or shader data. (For RenderMaterialPreview() and RenderShaderPreview().)

◆ RENDER_PREVIEW_USE_CURRENT_QUEUE

#define RENDER_PREVIEW_USE_CURRENT_QUEUE

Internal flag which tells the renderer to use the current destination queue RENDERFLAGS::INTERNAL_USE_CURRENT_QUEUE.