3ds Max C++ API Reference
ToneOperator::ThreadedProcessor Class Referenceabstract

Enables processing a tone operator independently of class ToneOperator, for example in a multi-threaded manner. More...

#include <ToneOperator.h>

+ Inheritance diagram for ToneOperator::ThreadedProcessor:

Public Member Functions

virtual ~ThreadedProcessor ()
 
virtual void ScaledToRGB (float energy[3], const Point2 &xyCoord) const =0
 See virtual void ToneOperator::ScaledToRGB(float energy[3], const Point2& xyCoord) More...
 
virtual float ScaledToRGB (float energy, const Point2 &xyCoord) const =0
 See virtual float ToneOperator::ScaledToRGB(float energy, const Point2& xyCoord) More...
 
virtual bool CanInvert () const =0
 See virtual float ToneOperator::CanInvert() More...
 
virtual void InverseMap (float rgb[3], const Point2 &xyCoord) const =0
 See virtual float ToneOperator::InverseMap(float energy[3], const Point2& xyCoord) More...
 
virtual float InverseMap (float rgb, const Point2 &xyCoord) const =0
 See virtual float ToneOperator::InverseMap(float energy, const Point2& xyCoord) More...
 

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

Detailed Description

Enables processing a tone operator independently of class ToneOperator, for example in a multi-threaded manner.

As class ToneOperator derives from ReferenceTarget, it may only safely be used from the main thread. But tone operators can be expensive to process, making it desirable to process them from non-UI threads (or even from multiple threads). This interface encapsulates everything a tone operator needs to process itself, but doesn't derive from ReferenceTarget so may safely be used from arbitrary threads. The implementation of this interface must allow for concurrent calls from arbitrary threads.

See also
ToneOperator::AllocateThreadedProcessor()

Constructor & Destructor Documentation

◆ ~ThreadedProcessor()

virtual ~ThreadedProcessor ( )
inlinevirtual
261 {}

Member Function Documentation

◆ ScaledToRGB() [1/2]

virtual void ScaledToRGB ( float  energy[3],
const Point2 xyCoord 
) const
pure virtual

See virtual void ToneOperator::ScaledToRGB(float energy[3], const Point2& xyCoord)

Remarks
This method is thread-safe, it may be called from multiple threads concurrently.

◆ ScaledToRGB() [2/2]

virtual float ScaledToRGB ( float  energy,
const Point2 xyCoord 
) const
pure virtual

See virtual float ToneOperator::ScaledToRGB(float energy, const Point2& xyCoord)

Remarks
This method is thread-safe, it may be called from multiple threads concurrently.

◆ CanInvert()

virtual bool CanInvert ( ) const
pure virtual

See virtual float ToneOperator::CanInvert()

Remarks
This method is thread-safe, it may be called from multiple threads concurrently.

◆ InverseMap() [1/2]

virtual void InverseMap ( float  rgb[3],
const Point2 xyCoord 
) const
pure virtual

See virtual float ToneOperator::InverseMap(float energy[3], const Point2& xyCoord)

Remarks
This method is thread-safe, it may be called from multiple threads concurrently.

◆ InverseMap() [2/2]

virtual float InverseMap ( float  rgb,
const Point2 xyCoord 
) const
pure virtual

See virtual float ToneOperator::InverseMap(float energy, const Point2& xyCoord)

Remarks
This method is thread-safe, it may be called from multiple threads concurrently.