#include <hsv.h>
Class Description
- See also:
- Class ColorPicker, Class HSVCallback, Class Class_ID, Class IPoint2, DWORD--COLORREF
Color Format..
- Description:
- This is the base class for the creation of plug-in color
selectors. The list of available color pickers appear in the 3ds
Max user interface in the General page of the Preferences dialog.
The choosen picker will be called whenever a user clicks on a 3ds
Max color swatch control.
- Plug-In Information:
- Class Defined In HSV.H
Super Class ID COLPICK_CLASS_ID
Standard File Name Extension DLU
Extra Include File Needed HSV.H
Public Member Functions
|
virtual
INT_PTR |
ModalColorPicker
(HWND hwndOwner, DWORD *lpc, IPoint2 *spos, HSVCallback *callBack, const MCHAR
*name)=0 |
virtual
INT_PTR |
ModalColorPicker
(HWND hwndOwner, DWORD *lpc, IPoint2 *spos, HSVCallback *callBack, MCHAR *name)
MAX_SEALED |
virtual
INT_PTR |
ModalColorPicker
(HWND hwndOwner, AColor
*lpc, IPoint2 *spos,
HSVCallback
*callBack, const MCHAR *name) |
virtual
INT_PTR |
ModalColorPicker
(HWND hwndOwner, AColor
*lpc, IPoint2 *spos,
HSVCallback
*callBack, MCHAR *name) MAX_SEALED |
virtual
ColorPicker
* |
CreateColorPicker
(HWND hwndOwner, DWORD initColor, IPoint2 *spos, HSVCallback *pcallback, const MCHAR
*name, BOOL isObjectColor=FALSE)=0 |
virtual
ColorPicker
* |
CreateColorPicker
(HWND hwndOwner, DWORD initColor, IPoint2 *spos, HSVCallback *pcallback, MCHAR
*name, BOOL isObjectColor) MAX_SEALED |
virtual
ColorPicker
* |
CreateColorPicker
(HWND hwndOwner, AColor
initColor, IPoint2
*spos, HSVCallback *pcallback, const MCHAR
*name, BOOL isObjectColor=FALSE) |
virtual
ColorPicker
* |
CreateColorPicker
(HWND hwndOwner, AColor
initColor, IPoint2
*spos, HSVCallback *pcallback, MCHAR
*name, BOOL isObjectColor) MAX_SEALED |
virtual const
MCHAR * |
ClassName
()=0 |
virtual
Class_ID |
ClassID
()=0 |
virtual
void |
DeleteThis
()=0 |
virtual
INT_PTR |
Execute
(int cmd, ULONG_PTR arg1=0, ULONG_PTR arg2=0, ULONG_PTR
arg3=0)=0 |
Member Function Documentation
virtual INT_PTR ModalColorPicker |
( |
HWND |
hwndOwner, |
|
|
DWORD * |
lpc, |
|
|
IPoint2 * |
spos, |
|
|
HSVCallback * |
callBack, |
|
|
const MCHAR * |
name |
|
) |
|
[pure virtual] |
virtual INT_PTR ModalColorPicker |
( |
HWND |
hwndOwner, |
|
|
DWORD * |
lpc, |
|
|
IPoint2 * |
spos, |
|
|
HSVCallback * |
callBack, |
|
|
MCHAR * |
name |
|
) |
|
[inline, virtual] |
- Deprecated:
- Deprecated method in terms of implementation as of 3ds Max 2013
- re-implement with const MCHAR* method signature
{
return ModalColorPicker(hwndOwner, lpc, spos, callBack, const_cast<const MCHAR*>(name)); }
virtual INT_PTR ModalColorPicker |
( |
HWND |
hwndOwner, |
|
|
AColor * |
lpc, |
|
|
IPoint2 * |
spos, |
|
|
HSVCallback * |
callBack, |
|
|
const MCHAR * |
name |
|
) |
|
[inline, virtual] |
- Parameters:
- HWND hwndOwner
The owning window handle
DWORD *lpc
A pointer to the color to be edited. See DWORD COLORREF
Format.
IPoint2
*spos
The starting position of the dialog. This is set to ending position
on return.
HSVCallback
*callBack
This callback is called whenever color changes.
MCHAR *name
The name of color being edited
- Returns:
- TRUE if the user pressed OK; FALSE on cancel.
virtual INT_PTR ModalColorPicker |
( |
HWND |
hwndOwner, |
|
|
AColor * |
lpc, |
|
|
IPoint2 * |
spos, |
|
|
HSVCallback * |
callBack, |
|
|
MCHAR * |
name |
|
) |
|
[inline, virtual] |
- Deprecated:
- Deprecated method in terms of implementation as of 3ds Max 2013
- re-implement with const MCHAR* method signature
{
return ModalColorPicker(hwndOwner, lpc, spos, callBack, const_cast<const MCHAR*>(name)); }
virtual ColorPicker* CreateColorPicker |
( |
HWND |
hwndOwner, |
|
|
DWORD |
initColor, |
|
|
IPoint2 * |
spos, |
|
|
HSVCallback * |
pcallback, |
|
|
const MCHAR * |
name, |
|
|
BOOL |
isObjectColor =
FALSE |
|
) |
|
[pure virtual] |
- Parameters:
- HWND hwndOwner
The owning window handle.
DWORD initColor
The inital value of the color. See DWORD COLORREF
Format.
IPoint2* spos
The starting position of dialog.
HSVCallback
*pcallback
This callback is called whenever color changes.
MCHAR *name
The name of color being edited.
BOOL isObjectColor=FALSE
This indicates the color picker is being used for the object color
in the command panel, and the color picker then displays the Add
Color button
virtual ColorPicker* CreateColorPicker |
( |
HWND |
hwndOwner, |
|
|
DWORD |
initColor, |
|
|
IPoint2 * |
spos, |
|
|
HSVCallback * |
pcallback, |
|
|
MCHAR * |
name, |
|
|
BOOL |
isObjectColor |
|
) |
|
[inline, virtual] |
- Deprecated:
- Deprecated method in terms of implementation as of 3ds Max 2013
- re-implement with const MCHAR* method signature
{
return CreateColorPicker(hwndOwner, initColor, spos, pcallback, const_cast<const MCHAR*>(name)); }
virtual ColorPicker* CreateColorPicker |
( |
HWND |
hwndOwner, |
|
|
AColor |
initColor, |
|
|
IPoint2 * |
spos, |
|
|
HSVCallback * |
pcallback, |
|
|
const MCHAR * |
name, |
|
|
BOOL |
isObjectColor =
FALSE |
|
) |
|
[inline, virtual] |
- Parameters:
- HWND hwndOwner
The owning window handle.
AColor
initColor
The inital value of the color.
IPoint2* spos
The starting position of dialog.
HSVCallback
*pcallback
This callback is called whenever color changes.
MCHAR *name
The name of color being edited.
BOOL isObjectColor=FALSE
This indicates the color picker is being used for the object color
in the command panel, and the color picker then displays the Add
Color button
- Deprecated:
- Deprecated method in terms of implementation as of 3ds Max 2013
- re-implement with const MCHAR* method signature
{
return CreateColorPicker(hwndOwner, initColor, spos, pcallback, const_cast<const MCHAR*>(name)); }
virtual const MCHAR* ClassName |
( |
|
) |
[pure virtual] |
virtual Class_ID ClassID |
( |
|
) |
[pure virtual] |
virtual void DeleteThis |
( |
|
) |
[pure virtual] |
virtual INT_PTR Execute |
( |
int |
cmd, |
|
|
ULONG_PTR |
arg1 = 0 , |
|
|
ULONG_PTR |
arg2 = 0 , |
|
|
ULONG_PTR |
arg3 = 0 |
|
) |
|
[pure virtual] |