3ds Max C++ API Reference
CustomRenderItemHandle Class Reference

CustomRenderItemHandle is a wrapper of ICustomRenderItem. More...

#include <CustomRenderItemHandle.h>

+ Inheritance diagram for CustomRenderItemHandle:

Public Member Functions

GraphicsDriverAPI CustomRenderItemHandle ()
 
GraphicsDriverAPI CustomRenderItemHandle (const CustomRenderItemHandle &from)
 
GraphicsDriverAPI CustomRenderItemHandleoperator= (const CustomRenderItemHandle &from)
 
virtual GraphicsDriverAPI ~CustomRenderItemHandle ()
 
GraphicsDriverAPI void Initialize ()
 Initialize this handle. More...
 
GraphicsDriverAPI void SetCustomImplementation (ICustomRenderItem *impl)
 Sets an ICustomRenderItem object to this handle. More...
 
GraphicsDriverAPI ICustomRenderItemGetCustomeImplementation () const
 Gets the ICustomRenderItem object in this handle. More...
 
- Public Member Functions inherited from RenderItemHandle
GraphicsDriverAPI RenderItemHandle ()
 
GraphicsDriverAPI RenderItemHandle (const RenderItemHandle &from)
 
GraphicsDriverAPI RenderItemHandleoperator= (const RenderItemHandle &from)
 
virtual GraphicsDriverAPI ~RenderItemHandle ()
 
GraphicsDriverAPI void SetVisibilityGroup (RenderItemVisibilityGroup group)
 Set the visibility group of this render item. More...
 
GraphicsDriverAPI RenderItemVisibilityGroup GetVisibilityGroup () const
 Get the visibility group of this render item. More...
 
GraphicsDriverAPI void SetCustomMaterial (const BaseMaterialHandle &hMaterial)
 Set custom material for render item. More...
 
GraphicsDriverAPI BaseMaterialHandle GetCustomMaterial () const
 Get custom material for render item. More...
 
GraphicsDriverAPI unsigned long GetDescriptionBits () const
 Get the description bits of this render item. More...
 
GraphicsDriverAPI void SetDescriptionBits (unsigned long descriptionBits)
 Set the unique ID that corresponds to the mesh element description of this render item. More...
 
GraphicsDriverAPI bool GetTransparentHint () const
 Get the transparent hint of the current render item. More...
 
GraphicsDriverAPI void SetTransparentHint (bool bTransparentHint)
 Set the transparent hint of the current render item. More...
 
GraphicsDriverAPI void SetConsolidationData (const ConsolidationData &data)
 Set consolidation strategy and key used for consolidate this render item. More...
 
GraphicsDriverAPI const ConsolidationDataGetConsolidationData ()
 Returns consolidation data of this render item. More...
 
GraphicsDriverAPI void SetZBias (int bias)
 Set the item's Z bias Can be any int value. More...
 
GraphicsDriverAPI int GetZBias () const
 returns the item's z bias More...
 
- Public Member Functions inherited from SmartHandle
virtual GraphicsDriverAPI ~SmartHandle ()
 destructor More...
 
GraphicsDriverAPI bool IsValid () const
 Check if this handle is valid. More...
 
GraphicsDriverAPI void Release ()
 Release the underlying graphics objects. More...
 
GraphicsDriverAPI Identifier GetObjectID () const
 Get the underlying graphics object id. More...
 
GraphicsDriverAPI void SetPointer (IRefObject *pObject)
 
GraphicsDriverAPI IRefObjectGetPointer () const
 Get the underlying graphics object pointer. More...
 
bool operator== (const SmartHandle &rhs) const
 
bool operator!= (const SmartHandle &rhs) const
 
bool operator< (const SmartHandle &rhs) const
 
bool operator<= (const SmartHandle &rhs) const
 
bool operator> (const SmartHandle &rhs) const
 
bool operator>= (const SmartHandle &rhs) const
 
GraphicsDriverAPI SmartHandle (const SmartHandle &)
 
GraphicsDriverAPI SmartHandleoperator= (const SmartHandle &)
 

Additional Inherited Members

- Static Public Member Functions inherited from MaxHeapOperators
static UtilExport voidoperator new (size_t size)
 Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e)
 Standard new operator used to allocate objects if there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate objects that takes the type of memory, filename and line number where the new was called If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate objects that takes the filename and line number where the new was called If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new (size_t size, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate objects that takes extra flags to specify special operations If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, int block_type, const char *filename, int line)
 New operator used to allocate arrays of objects. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, const char *filename, int line)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport voidoperator new[] (size_t size, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. More...
 
static UtilExport voidoperator new[] (size_t size, const std::nothrow_t &e, unsigned long flags)
 New operator used to allocate arrays of objects If there is insufficient memory, NULL will be returned. More...
 
static UtilExport void operator delete (void *ptr)
 Standard delete operator used to deallocate an object If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an object If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an object that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an object that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete (void *ptr, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an object that takes extra flags to specify special operations If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e)
 Standard delete operator used to deallocate an array of objects If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, int block_type, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the type of memory, filename and line number where the delete was called If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, const char *filename, int line)
 Delete operator used to deallocate an array of objects that takes the filename and line number where the delete was called If the pointer is invalid, nothing will happen. More...
 
static UtilExport void operator delete[] (void *ptr, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport void operator delete[] (void *ptr, const std::nothrow_t &e, unsigned long flags)
 Delete operator used to deallocate an array of objects that takes extra flags to specify special operations If the pointer is invalid, an exception will be thrown. More...
 
static UtilExport voidoperator new (size_t size, void *placement_ptr)
 Placement new operator. More...
 
static UtilExport void operator delete (void *ptr, void *placement_ptr)
 Placement delete operator. More...
 
static UtilExport voidaligned_malloc (size_t size, size_t alignment)
 Allocates memory on a specified alignment boundary. More...
 
static UtilExport voidaligned_realloc (void *ptr, size_t size, size_t alignment)
 Reallocates memory on a specified alignment boundary. More...
 
static UtilExport void aligned_free (void *ptr)
 Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. More...
 
- Protected Member Functions inherited from SmartHandle
GraphicsDriverAPI SmartHandle ()
 
- Protected Attributes inherited from SmartHandle
IRefObjectmpObject
 

Detailed Description

CustomRenderItemHandle is a wrapper of ICustomRenderItem.

It can be used to add a custom implementation into the Max graphics system without directly deriving from RenderItemHandle.

Constructor & Destructor Documentation

◆ CustomRenderItemHandle() [1/2]

◆ CustomRenderItemHandle() [2/2]

◆ ~CustomRenderItemHandle()

Member Function Documentation

◆ operator=()

◆ Initialize()

GraphicsDriverAPI void Initialize ( )

Initialize this handle.

The handle is empty after initialization. It doesn't have a default implementation.

◆ SetCustomImplementation()

GraphicsDriverAPI void SetCustomImplementation ( ICustomRenderItem impl)

Sets an ICustomRenderItem object to this handle.

Parameters
[in]implA user-created class that derives from the ICustomRenderItem interface.

◆ GetCustomeImplementation()

GraphicsDriverAPI ICustomRenderItem* GetCustomeImplementation ( ) const

Gets the ICustomRenderItem object in this handle.

Returns
The ICustomRenderItem object, or nullptr if there is no implementation.