3ds Max C++ API Reference
|
#include <icolorman.h>
Public Types | |
enum | AppFrameColorTheme { kDarkTheme = 0 , kLightTheme = 1 } |
enum | State { kNormal = 0 , kDisabled = 1 , kHover = 2 } |
enum | IconType { kDisabledIcon , kEnabledIcon } |
enum | IconColorScale { kSaturationScale , kValueScale , kAlphaScale , kContrastScale , kGradientMapScale } |
enum | RepaintType { kRepaintAll , kRepaintTrackBar , kRepaintTimeBar } |
enum | { registerColor , loadColorFile , saveColorFile , getColorFile , setColor , getColor , getName , getCategory , getIconColorScale , setIconColorScale , getIconColorInvert , setIconColorInvert , getFileName , getDefaultColor , getOldUIColorCOLORREF , repaintUI , setIconFolder , reInitIcons , getIconFolder , resolveIconFolder , getColorTheme , setColorTheme , getColorTheme_prop , setColorTheme_prop , setColorByColorState , getColorByColorState } |
enum | { iconType , iconColorScale , repaintType , colorThemeType } |
![]() | |
enum | LifetimeType { noRelease , immediateRelease , wantsRelease , serverControlled } |
Public Member Functions | |
virtual bool | RegisterColor (ColorId id, const MCHAR *pName, const MCHAR *pCategory, COLORREF defaultValue, COLORREF defaultValueDisabled=0xff000000, COLORREF defaultValueHover=0xff000000)=0 |
virtual BOOL | LoadColorFile (const MCHAR *pFileName)=0 |
virtual BOOL | SaveColorFile (const MCHAR *pFileName)=0 |
virtual const MCHAR * | GetColorFile ()=0 |
virtual bool | SetColor (ColorId id, COLORREF color, State state=State::kNormal)=0 |
virtual COLORREF | GetColor (ColorId id, State state=State::kNormal)=0 |
virtual Point3 | GetColorAsPoint3 (ColorId id, State state=State::kNormal)=0 |
virtual HBRUSH | GetBrush (ColorId id, State state=State::kNormal)=0 |
virtual const MCHAR * | GetName (ColorId id)=0 |
virtual const MCHAR * | GetCategory (ColorId id)=0 |
virtual COLORREF | CustSysColor (int which)=0 |
virtual HBRUSH | CustSysColorBrush (int which)=0 |
virtual Point3 | GetOldUIColor (int which)=0 |
virtual void | SetOldUIColor (int which, Point3 *clr)=0 |
virtual Point3 | GetOldDefaultUIColor (int which)=0 |
virtual float | GetIconColorScale (IconType type, IconColorScale which)=0 |
virtual void | SetIconColorScale (IconType type, IconColorScale which, float value)=0 |
virtual bool | GetIconColorInvert (IconType type)=0 |
virtual void | SetIconColorInvert (IconType type, bool value)=0 |
virtual AppFrameColorTheme | GetAppFrameColorTheme () const =0 |
virtual void | SetAppFrameColorTheme (AppFrameColorTheme value)=0 |
virtual const MCHAR * | GetFileName ()=0 |
virtual COLORREF | GetDefaultColor (ColorId id, State state=State::kNormal)=0 |
virtual COLORREF | GetOldUIColorCOLORREF (int which)=0 |
virtual void | RepaintUI (RepaintType type)=0 |
virtual BOOL | SetIconFolder (const MCHAR *pFolder)=0 |
virtual const MCHAR * | GetIconFolder ()=0 |
virtual void | ReInitIcons ()=0 |
virtual BOOL | ResolveIconFolder (const MCHAR *pFilename, MSTR &path)=0 |
![]() | |
CoreExport | FPInterfaceDesc () |
CoreExport | FPInterfaceDesc (Interface_ID id, const MCHAR *int_name, StringResID descr, ClassDesc *cd, ULONG flag,...) |
CoreExport | ~FPInterfaceDesc () |
virtual void | Init () |
LifetimeType | LifetimeControl () |
virtual BaseInterface * | GetInterface (Interface_ID id) |
CoreExport void | LoadDescriptor (Interface_ID id, const MCHAR *int_name, StringResID descr, ClassDesc *pCD, ULONG flag,...) |
CoreExport void | AppendFunction (int id,...) |
Add a new function to this interface descriptor. | |
CoreExport void | AppendProperty (int id,...) |
Add a new property to this interface descriptor. | |
CoreExport void | AppendEnum (int id,...) |
Add a new enum to this interface descriptor. | |
CoreExport void | SetClassDesc (ClassDesc *i_cd) |
CoreExport va_list | check_fn (va_list ap, int id) |
CoreExport va_list | scan_fn (va_list ap, int id, int index) |
CoreExport va_list | check_prop (va_list ap, int id) |
CoreExport va_list | scan_prop (va_list ap, int id, int index) |
CoreExport va_list | check_enum (va_list ap, EnumID id) |
CoreExport va_list | scan_enum (va_list ap, EnumID id, int index) |
FPInterfaceDesc * | GetDesc () |
Interface_ID | GetID () |
CoreExport FPFunctionDef * | GetFnDef (FunctionID fid) |
ActionTable * | GetActionTable () |
CoreExport void | EnableActions (BOOL onOff) |
virtual CoreExport HINSTANCE | HInstance () |
virtual CoreExport const MCHAR * | GetRsrcString (StringResID id) |
![]() | |
virtual BaseInterface * | GetInterface (Interface_ID id) |
virtual FPInterfaceDesc * | GetDesc ()=0 |
virtual CoreExport FPStatus | Invoke (FunctionID fid, TimeValue t=0, FPParams *params=NULL) |
virtual FPStatus | Invoke (FunctionID fid, FPParams *params) |
virtual CoreExport FPStatus | Invoke (FunctionID fid, TimeValue t, FPValue &result, FPParams *params=NULL) |
virtual FPStatus | Invoke (FunctionID fid, FPValue &result, FPParams *params=NULL) |
virtual CoreExport FunctionID | FindFn (const MCHAR *name) |
virtual CoreExport BOOL | IsEnabled (FunctionID actionID) |
virtual CoreExport BOOL | IsChecked (FunctionID actionID) |
virtual CoreExport BOOL | IsVisible (FunctionID actionID) |
virtual CoreExport FunctionID | GetIsEnabled (FunctionID actionID) |
virtual CoreExport FunctionID | GetIsChecked (FunctionID actionID) |
virtual CoreExport FunctionID | GetIsVisible (FunctionID actionID) |
virtual ActionTable * | GetActionTable () |
virtual void | EnableActions (BOOL onOff) |
![]() | |
virtual UtilExport | ~BaseInterface () |
Destructor. | |
UtilExport BaseInterface * | GetInterface (Interface_ID id) override |
virtual UtilExport Interface_ID | GetID () |
virtual LifetimeType | LifetimeControl () |
virtual bool | RegisterNotifyCallback (InterfaceNotifyCallback *incb) |
virtual void | UnRegisterNotifyCallback (InterfaceNotifyCallback *incb) |
virtual BaseInterface * | AcquireInterface () |
virtual void | ReleaseInterface () |
virtual void | DeleteInterface () |
virtual BaseInterface * | CloneInterface (void *remapDir=nullptr) |
![]() | |
virtual UtilExport | ~InterfaceServer () |
Destructor. | |
virtual UtilExport BaseInterface * | GetInterface (Interface_ID id) |
template<class InterfaceType > | |
InterfaceType * | GetTypedInterface () |
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. | |
![]() | |
Interface_ID | ID |
MSTR | internal_name |
StringResID | description |
ClassDesc * | cd |
USHORT | flags |
Tab< FPFunctionDef * > | functions |
Tab< FPPropDef * > | props |
Tab< FPEnum * > | enumerations |
MSPluginClass * | pc |
Rollout * | rollout |
ActionTable * | action_table |
![]() | |
static CoreExport FPInterfaceDesc | nullInterface |
![]() | |
CoreExport void | load_descriptor (Interface_ID id, const MCHAR *int_name, StringResID descr, ClassDesc *cd, USHORT flag, va_list ap) |
![]() | |
virtual FPStatus | _dispatch_fn (FunctionID fid, TimeValue t, FPValue &result, FPParams *p) |
enum AppFrameColorTheme |
Enumerator | |
---|---|
kDarkTheme | Dark theme. |
kLightTheme | Light theme. |
enum State |
enum IconType |
Enumerator | |
---|---|
kDisabledIcon | |
kEnabledIcon |
enum IconColorScale |
Enumerator | |
---|---|
kSaturationScale | |
kValueScale | |
kAlphaScale | |
kContrastScale | |
kGradientMapScale |
enum RepaintType |
Enumerator | |
---|---|
kRepaintAll | |
kRepaintTrackBar | |
kRepaintTimeBar |
anonymous enum |
anonymous enum |
Enumerator | |
---|---|
iconType | |
iconColorScale | |
repaintType | |
colorThemeType |
|
pure virtual |
id | The ID of the color to register. This should be generated by the developer using a single DWORD from the output of the Class_ID program. See Class Class_ID for more details. |
pName | The name for the color. |
pCategory | The category for the color. If the name passed matches one of the existing 3ds Max categories the color will be place in there, otherwise a new one will be created. |
defaultValue | The default value for the color. This is the value that the color will be reset to when a 3ds Max user presses "Reset" in the color customization dialog. See COLORREF. |
defaultValueDisabled | The default disabled value for the color. Used in various UI elements to signal the disabled state of a control. This parameter is optional and will be set to 0xff000000 as a default value, what is defined to be "no color". |
defaultValueHover | The default hover value for the color. Used in various UI elements to paint a control, if the mouse is hovering it. This parameter is optional and will be set to 0xff000000 as a default value, what is defined to be "no color". |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
id | Specifies which color to set. |
color | The color value to set. See COLORREF. |
state | Specifies which color state for the color |
|
pure virtual |
id | Specifies which color to get. |
state | Specifies which color state for the color |
|
pure virtual |
id | Specifies which color to get. |
state | Specifies which color state for the color |
|
pure virtual |
id | The color whose brush handle is returned. |
state | Specifies which color state for the color |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
defaultValue
in RegisterColor()
, regardless if a SetColor()
has been done subsequently. This is used by the UI when the user presses "Reset" to reset a color to its default value. id | Specifies which default color to get. |
state | Specifies which color state for the default color |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |