|
3ds Max C++ API Reference
|
#include "maxheap.h"#include "coreexp.h"#include <WTypes.h>#include "geom/acolor.h"#include <Geom/ipoint2.h>#include "baseinterface.h"#include "strbasic.h"#include "paramtype.h"Classes | |
| class | HSVCallback |
| class | ColorPicker |
| class | ColPick |
Macros | |
| #define | MAXCOLORS 16 |
| #define | WM_ADD_COLOR (WM_USER+2321) |
| Sent by the color picker to add custom colors to object color palette. | |
| #define | DEFAULT_COLPICK_CLASS_ID 1 |
Functions | |
| CoreExport INT_PTR | HSVDlg_Do (HWND hwndOwner, DWORD *lpc, IPoint2 *spos, HSVCallback *callBack, const MCHAR *name) |
| CoreExport INT_PTR | HSVDlg_Do (HWND hwndOwner, AColor *lpc, IPoint2 *spos, HSVCallback *callBack, const MCHAR *name) |
| CoreExport void | RGBtoHSV (DWORD rgb, int *ho, int *so, int *vo) |
| CoreExport DWORD | HSVtoRGB (int H, int S, int V) |
| CoreExport void | HSVtoHWBt (int h, int s, int v, int *ho, int *w, int *bt) |
| CoreExport void | HWBttoHSV (int h, int w, int bt, int *ho, int *s, int *v) |
| CoreExport Color | RGBtoHSV (Color rgb) |
| CoreExport Color | HSVtoRGB (Color hsv) |
| CoreExport ColorPicker * | CreateColorPicker (HWND hwndOwner, DWORD initColor, IPoint2 *spos, HSVCallback *pcallback, const MCHAR *name, int objClr=0, ColorContext context=ColorContext::COLOR_SPACE_CONTEXT_NONE) |
| CoreExport ColorPicker * | CreateColorPicker (HWND hwndOwner, AColor initColor, IPoint2 *spos, HSVCallback *pcallback, const MCHAR *name, int objClr=0, ColorContext context=ColorContext::COLOR_SPACE_CONTEXT_NONE) |
| CoreExport void | SetCPInitPos (IPoint2 &pos) |
| CoreExport IPoint2 | GetCPInitPos (void) |
| CoreExport ColPick * | SetCurColPick (ColPick *colpick) |
| CoreExport ColPick * | GetCurColPick () |
| #define MAXCOLORS 16 |
| #define WM_ADD_COLOR (WM_USER+2321) |
Sent by the color picker to add custom colors to object color palette.
wParam will have the color packed in DWORD (legacy behavior).
if lParam is not null, then it's a pointer to AColor holding the scene-referred color (new behavior).
| #define DEFAULT_COLPICK_CLASS_ID 1 |
|
extern |
|
extern |
| CoreExport ColorPicker * CreateColorPicker | ( | HWND | hwndOwner, |
| DWORD | initColor, | ||
| IPoint2 * | spos, | ||
| HSVCallback * | pcallback, | ||
| const MCHAR * | name, | ||
| int | objClr = 0, | ||
| ColorContext | context = ColorContext::COLOR_SPACE_CONTEXT_NONE ) |
| CoreExport ColorPicker * CreateColorPicker | ( | HWND | hwndOwner, |
| AColor | initColor, | ||
| IPoint2 * | spos, | ||
| HSVCallback * | pcallback, | ||
| const MCHAR * | name, | ||
| int | objClr = 0, | ||
| ColorContext | context = ColorContext::COLOR_SPACE_CONTEXT_NONE ) |
| CoreExport void SetCPInitPos | ( | IPoint2 & | pos | ) |
| CoreExport IPoint2 GetCPInitPos | ( | void | ) |
| CoreExport ColPick * SetCurColPick | ( | ColPick * | colpick | ) |
| CoreExport ColPick * GetCurColPick | ( | ) |