3ds Max C++ API Reference
|
#include <bitmap.h>
Public Member Functions | |
virtual BMMExport | ~BitmapManager () |
virtual int | DeleteAllMaps ()=0 |
virtual int | AddStorage (BitmapStorage *s)=0 |
virtual int | AddFilter (BitmapFilter *a)=0 |
virtual int | AddBitmap (Bitmap *b)=0 |
virtual int | DelStorage (BitmapStorage *s)=0 |
virtual int | DelFilter (BitmapFilter *a)=0 |
virtual int | DelBitmap (Bitmap *b)=0 |
virtual BitmapFilter * | FindFilter (BitmapStorage *s, UINT type)=0 |
virtual BitmapStorage * | FindStorage (BitmapInfo *bi, int openMode)=0 |
virtual int | FnametoBitMapInfo (BitmapInfo *bi)=0 |
virtual void | FixFileExt (OPENFILENAME &ofn, const MCHAR *extension)=0 |
virtual void | MakeVfbPalette ()=0 |
virtual void | ListIO ()=0 |
virtual DllDir * | AppDllDir ()=0 |
virtual void | SetFileInputDialog (BitmapFileInputDialog *dlg=nullptr)=0 |
virtual void | SetFileOutputDialog (BitmapFileOutputDialog *dlg=nullptr)=0 |
virtual int | Status (int *sCount, int *aCount, int *bCount)=0 |
virtual int | Error (const MCHAR *string)=0 |
virtual void | UpdateAllStorageColorSettings ()=0 |
Updates color management related settings and caches in all bitmap storages. | |
void | ClearInternalRelativePathResolutionCache () |
Host Interface | |
| |
virtual HINSTANCE | AppInst ()=0 |
virtual HWND | AppWnd ()=0 |
virtual MSTR | GetDir (int i)=0 |
virtual BOOL | AddMapDir (const MCHAR *dir, int update)=0 |
virtual int | GetMapDirCount ()=0 |
virtual MSTR | GetMapDir (int i)=0 |
virtual Interface * | Max ()=0 |
Creation / Loading | |
virtual Bitmap * | NewBitmap ()=0 |
virtual BMMExport Bitmap * | Create (BitmapInfo *bi)=0 |
virtual BMMExport Bitmap * | Create (PBITMAPINFO pbmi, bool setGamma=false)=0 |
virtual BMMExport Bitmap * | Load (BitmapInfo *bi, BMMRES *status=nullptr)=0 |
virtual BMMRES | LoadInto (BitmapInfo *bi, Bitmap **map, BOOL forceReload=FALSE)=0 |
virtual BMMExport Bitmap * | ColorConvert (const Bitmap *source, const MSTR &toColorSpaceOrDisplay, const MSTR *toViewTransform=nullptr)=0 |
Applies OpenColorIO based color conversion into a new bitmap of type BMM_FLOAT_RGBA_32 according to the given parameters. | |
virtual BMMExport BMMRES | ColorConvertInto (const Bitmap *source, Bitmap *target, const MSTR &toColorSpaceOrDisplay, const MSTR *toViewTransform=nullptr)=0 |
Applies OpenColorIO based color conversion from a given Bitmap into another according to the given parameters. | |
Error Processing | |
virtual BOOL | SilentMode ()=0 |
virtual void | SysLog (int type, char *format,...)=0 |
virtual BOOL | SetSilentMode (BOOL s)=0 |
Sets the silent mode on/off. | |
virtual void | SetLogLevel (DWORD level)=0 |
virtual DWORD | GetLogLevel ()=0 |
User Interface Methods | |
virtual BMMRES | GetImageInfoDlg (HWND hWnd, BitmapInfo *bi, const MCHAR *filename=nullptr)=0 |
virtual BMMRES | GetImageInfo (BitmapInfo *bi, const MCHAR *filename=nullptr)=0 |
virtual BOOL | ImageInputOptions (BitmapInfo *bi, HWND hWnd)=0 |
virtual BOOL | SelectDeviceInput (BitmapInfo *bi, HWND hWnd)=0 |
virtual BOOL | SelectDeviceOutput (BitmapInfo *bi, HWND hWnd)=0 |
virtual BOOL | SelectFileOutput (BitmapInfo *bi, HWND hWnd, const MCHAR *title=nullptr, ULONG *pflags=nullptr, const MCHAR *extension=nullptr, const MCHAR *config=nullptr, const MCHAR *map=nullptr)=0 |
virtual BOOL | SelectFileInput (BitmapInfo *bi, HWND hWnd, const MCHAR *title=nullptr)=0 |
virtual BOOL | SelectFileInputEx (BitmapInfo *bi, HWND hWnd, const MCHAR *title=nullptr, BOOL viewonly=FALSE)=0 |
virtual void | BeginSavingLoadErrorFiles ()=0 |
virtual NameTab & | GetLoadErrorFileList ()=0 |
virtual void | EndSavingLoadErrorFiles ()=0 |
virtual BMMExport bool | CanImport (const MCHAR *filename)=0 |
Display / VFB Related Methods | |
virtual void | RefreshAllVFBs ()=0 |
virtual void | DeleteAllAutonomousVFBMaps ()=0 |
Future Expansion | |
virtual INT_PTR | Execute (int cmd, ULONG_PTR arg1=0, ULONG_PTR arg2=0, ULONG_PTR arg3=0)=0 |
![]() | |
virtual UtilExport | ~InterfaceServer () |
Destructor. | |
virtual UtilExport BaseInterface * | GetInterface (Interface_ID id) |
template<class InterfaceType > | |
InterfaceType * | GetTypedInterface () |
Public Attributes | |
BMMVfbPalette * | pal = nullptr |
BMM_IOList | ioList |
Friends | |
void | DoConstruct (BitmapManager *m, BMMInterface *i, const MCHAR *name) |
Additional Inherited Members | |
![]() | |
static UtilExport void * | operator new (size_t size) |
Standard new operator used to allocate objects If there is insufficient memory, an exception will be thrown. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator new[] (size_t size) |
New operator used to allocate arrays of objects If there is insufficient memory, an exception will be thrown. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator new[] (size_t size, int block_type, const char *filename, int line) |
New operator used to allocate arrays of objects. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
static UtilExport void * | operator 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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
static UtilExport void * | operator new (size_t size, void *placement_ptr) |
Placement new operator. | |
static UtilExport void | operator delete (void *ptr, void *placement_ptr) |
Placement delete operator. | |
static UtilExport void * | aligned_malloc (size_t size, size_t alignment) |
Allocates memory on a specified alignment boundary. | |
static UtilExport void * | aligned_realloc (void *ptr, size_t size, size_t alignment) |
Reallocates memory on a specified alignment boundary. | |
static UtilExport void | aligned_free (void *ptr) |
Frees a block of memory that was allocated with aligned_malloc/aligned_realloc. | |
|
virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Sets the silent mode on/off.
The silent mode disables any message box pop-ups that may interrupt the process.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Applies OpenColorIO based color conversion into a new bitmap of type BMM_FLOAT_RGBA_32 according to the given parameters.
This function uses the IColorPipelineManager to convert the pixel data of one Bitmap into a new Bitmap with the same dimensions as the source bitmap and the type BMM_FLOAT_RGBA_32.
Internally, this function calls ColorConvertInto, so all the parameters behave the same: If toColorSpaceOrDisplay is passed in only, this function does a color space conversion (interpreting toColorSpaceOrDisplay as the name of the color space to convert to).
If both toColorSpaceOrDisplay and toViewTransform are passed in, the function does a display/view transform conversion (taking toColorSpaceOrDisplay as the name of the display).
The source color space used for the conversion is extracted from the BitmapInfo of the source Bitmap.
[in] | source | The bitmap to be converted. Note that the color space of this bitmap must not be invalid. |
[in] | toColorSpaceOrDisplay | The name of the color space or display (if toViewTransform is present) to convert the pixel data into. |
[in] | toViewTransform | The name of the view transform for the display /view transform conversion used to convert the pixel data into. Note that this view transform has to be valid for the given display (toColorSpaceOrDisplay). |
|
pure virtual |
Applies OpenColorIO based color conversion from a given Bitmap into another according to the given parameters.
This function uses the IColorPipelineManager to convert the pixel data of one bitmap into another. If toColorSpaceOrDisplay is passed in only, this function does a color space conversion (interpreting toColorSpaceOrDisplay as the name of the color space to convert to).
If both toColorSpaceOrDisplay and toViewTransform are passed in, the function does a display/view transform conversion (taking toColorSpaceOrDisplay as the name of the display).
The source color space used for the conversion is extracted from the BitmapInfo of the source Bitmap.
[in] | source | The bitmap to be converted. Note that the color space of this bitmap must not be invalid. |
[in,out] | target | The bitmap to receive the converted pixel data. It has to have the same dimensions as the source Bitmap. |
[in] | toColorSpaceOrDisplay | The name of the color space or display (if toViewTransform is present) to convert the pixel data into. |
[in] | toViewTransform | The name of the view transform for the display /view transform conversion used to convert the pixel data into. Note that this view transform has to be valid for the given display (toColorSpaceOrDisplay). |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Updates color management related settings and caches in all bitmap storages.
This includes gamma tables, color spaces names and color pipeline caches used to convert native colors into rendering space. This will also update all the VFB's.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
|
friend |
BMMVfbPalette* pal = nullptr |
BMM_IOList ioList |