3ds Max C++ API Reference
IProjectionRenderHandler Class Referenceabstract

#include <IProjectionRenderHandler.h>

+ Inheritance diagram for IProjectionRenderHandler:

Classes

struct  ProjectionResult
 

Public Types

enum  { ERR_NONE =0 , ERR_RAYMISS , ERR_NONSELFACE }
 

Public Member Functions

virtual ~IProjectionRenderHandler ()
 
virtual void DeleteThis ()=0
 
virtual int RenderBegin (TimeValue t, ULONG flags=0)=0
 
virtual int RenderEnd (TimeValue t)=0
 
virtual BOOL Init (RenderInstance *workingModelInst, RenderGlobalContext *rgc)=0
 
virtual BOOL Valid ()=0
 
virtual void GetReferenceModels (Tab< RenderInstance * > &refModels)=0
 
virtual IMeshWrapperGetWorkingModelMesh ()=0
 
virtual RenderInstanceGetWorkingModelInst ()=0
 
virtual void GetWorkingModelMask (BitArray &mask)=0
 
virtual BOOL Project (int faceIndex, Point3 &faceBary, Point3 &faceNorm, ProjectionResult &result)=0
 

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...
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
ERR_NONE 
ERR_RAYMISS 
ERR_NONSELFACE 
60  { ERR_NONE=0,
61  ERR_RAYMISS, //ray did not hit a reference model
62  ERR_NONSELFACE, //the working model face is not in the active selection, skipped
63  };
@ ERR_NONSELFACE
Definition: IProjectionRenderHandler.h:62
@ ERR_NONE
Definition: IProjectionRenderHandler.h:60
@ ERR_RAYMISS
Definition: IProjectionRenderHandler.h:61

Constructor & Destructor Documentation

◆ ~IProjectionRenderHandler()

virtual ~IProjectionRenderHandler ( )
inlinevirtual
66 {}

Member Function Documentation

◆ DeleteThis()

virtual void DeleteThis ( )
pure virtual

◆ RenderBegin()

virtual int RenderBegin ( TimeValue  t,
ULONG  flags = 0 
)
pure virtual

◆ RenderEnd()

virtual int RenderEnd ( TimeValue  t)
pure virtual

◆ Init()

virtual BOOL Init ( RenderInstance workingModelInst,
RenderGlobalContext rgc 
)
pure virtual

◆ Valid()

virtual BOOL Valid ( )
pure virtual

◆ GetReferenceModels()

virtual void GetReferenceModels ( Tab< RenderInstance * > &  refModels)
pure virtual

◆ GetWorkingModelMesh()

virtual IMeshWrapper* GetWorkingModelMesh ( )
pure virtual

◆ GetWorkingModelInst()

virtual RenderInstance* GetWorkingModelInst ( )
pure virtual

◆ GetWorkingModelMask()

virtual void GetWorkingModelMask ( BitArray mask)
pure virtual

◆ Project()

virtual BOOL Project ( int  faceIndex,
Point3 faceBary,
Point3 faceNorm,
ProjectionResult result 
)
pure virtual