3ds Max C++ API Reference
|
#include <iparamm2.h>
Public Member Functions | |
virtual void | Invalidate ()=0 |
virtual void | Validate ()=0 |
virtual void | Invalidate (ParamID id, int tabIndex=0)=0 |
virtual void | UpdateUI (TimeValue t)=0 |
virtual void | RedrawViews (TimeValue t, DWORD flag=REDRAW_NORMAL)=0 |
virtual Interval & | Validity ()=0 |
virtual void | SetParamBlock (IParamBlock2 *pb)=0 |
Makes the parameter map point to a new parameter block, updating the user interface in the process. | |
virtual void | SetParamBlock (IParamBlock2 *pb, ReferenceMaker *owner)=0 |
Makes the parameter map point to a new parameter block, updating the user interface in the process. | |
virtual MapID | GetMapID ()=0 |
virtual void | SetUserDlgProc (ParamMap2UserDlgProc *proc=NULL)=0 |
virtual ParamMap2UserDlgProc * | GetUserDlgProc ()=0 |
virtual void | ReplaceParam (ParamID curParam, ParamID newParam) |
virtual HWND | GetHWnd ()=0 |
virtual MaxSDK::QMaxParamBlockWidget * | GetQWidget () const =0 |
Returns the Qt widget being controlled by this parameter map, if applicable. | |
virtual IRollupWindow * | GetIRollup () |
virtual IParamBlock2 * | GetParamBlock ()=0 |
virtual BOOL | DlgActive ()=0 |
virtual ParamBlockDesc2 * | GetDesc ()=0 |
virtual void | ActivateDlg (BOOL onOff)=0 |
virtual int | FindSubTexFromHWND (HWND hw)=0 |
virtual int | FindSubMtlFromHWND (HWND hw)=0 |
virtual void | Enable (ParamID id, BOOL onOff, int tabIndex=0)=0 |
virtual void | SetText (ParamID id, const MCHAR *txt, int tabIndex=0)=0 |
virtual void | SetTooltip (ParamID id, bool bEnable, const MCHAR *txt, int tabIndex=0)=0 |
Set tooltip of param UI control. | |
virtual void | SetRange (ParamID id, float low, float high, int tabIndex=0)=0 |
virtual void | SetRange (ParamID id, int low, int high, int tabIndex=0)=0 |
virtual void | Show (ParamID id, BOOL showHide, int tabIndex=0)=0 |
virtual void | SetThing (ReferenceTarget *m)=0 |
virtual void | ConnectUI (MaxSDK::QMaxParamBlockWidget *widget)=0 |
Connects the given Qt widget with the paramblock that is managed by this parameter map. | |
virtual void | DisconnectUI ()=0 |
This method removes all existing parameter UI connections held by the ParamMap. | |
virtual void | ConnectUI (ParamID id, QObject *uiControl, int tabIndex=0)=0 |
Connects a Qt UI control to the specified param block parameter. | |
virtual void | DisconnectUI (QObject *uiControl)=0 |
Disconnects a Qt UI control from its associated param block parameter. | |
![]() | |
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. | |
|
pure virtual |
|
pure virtual |
id | The permanent ID of the control requiring an update. |
tabIndex | If the control is a Tab<> then this is the zero-based index into the table of the value to be invalidated. |
t | The time to check for the update. |
|
pure virtual |
t | The time at which to redraw the viewports. |
flag | You may specify one of the following: REDRAW_BEGIN Call this before you redraw. REDRAW_INTERACTIVE This allows the view quality to degrade to maintain interactively. REDRAW_END If during interactive redraw the state degraded, this will redraw the views in the undegraded state. REDRAW_NORMAL This redraws the views in the undegraded state. |
|
pure virtual |
|
pure virtual |
Makes the parameter map point to a new parameter block, updating the user interface in the process.
pb | The new parameter block to use with the parameter map. |
|
pure virtual |
Makes the parameter map point to a new parameter block, updating the user interface in the process.
pb | The new parameter block to use with the parameter map. |
owner | The owner the parameter block. In most cases, this should be IParamBlock2::GetOwner(). But in the case of class parameter block (see P_CLASS_PARAMS), where the parameter block does not have an owner, then this should point to the object for which the UI is currently being edited. |
|
pure virtual |
|
pure virtual |
proc | Points to the user dialog proc object to process the controls. |
|
pure virtual |
curParam | The parameter ID of the item to change. |
newParam | The new parameter ID. |
|
pure virtual |
|
pure virtual |
Returns the Qt widget being controlled by this parameter map, if applicable.
This method will return a valid Qt widget only if the parameter map was constructed from a Qt widget. It will return null if the parameter map controls a Win32 dialog.
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
onOff | TRUE if becoming active; FALSE for inactive. |
|
pure virtual |
hw | The window handle of the control. |
|
pure virtual |
id | The parameter ID of the control to enable/disable. |
onOff | TRUE to enable; FALSE to disable. |
tabIndex | If the control is a Tab<> then this is the zero-based index in the table of the item to enable/disable. |
id | The ID of the parameter whose user interface text to change. |
txt | The new string to display. |
tabIndex | If the parameter is a Tab<> this is the zero-based index of the parameter in the table. |
|
pure virtual |
Set tooltip of param UI control.
This method allows for turning on or off the tooltip for a parameter user interface control.
id | - The ID of the parameter whose user interface tooltip to set. |
bEnable | - if true, the tooltip is enabled, otherwise disabled. When disabled, the tooltip won't be displayed when the the mouse hovers on top of the control. Enabling the tooltip repeatedly will have the same effect as enabling it once. |
txt | - pointer to a string representing the text to be displayed in the tooltip window. This parameter is ignored when the tooltip is being disabled. |
tabIndex | If the parameter is a Tab<> this is the zero-based index of the parameter in the table. |
id | The ID of the parameter. |
low | The low range for the spinner / slider. |
high | The high range for the spinner / slider. |
tabIndex | If the parameter is a Tab<> this is the zero-based index of the parameter in the table. |
id | The ID of the parameter. |
low | The low range for the spinner / slider. |
high | The high range for the spinner / slider. |
tabIndex | If the parameter is a Tab<> this is the zero-based index of the parameter in the table. |
id | The ID of the parameter. |
showHide | TRUE to show; FALSE to hide. |
tabIndex | If the parameter is a Tab<> this is the zero-based index of the parameter in the table. |
|
pure virtual |
m | The item which was set. |
|
pure virtual |
Connects the given Qt widget with the paramblock that is managed by this parameter map.
The method first removes all existing parameter UI connections and then in a second step automatically connects the Qt UI controls, found in the widget, where the Qt objectName matches the name of its associated paramblock parameter. Before the automatic parameter binding starts, the PreConnectUI() callback is triggered on the given QMaxParamBlockWidget. When the automatic parameter binding is done PostConnectUI() is called on the given QMaxParamBlockWidget. The PostConnectUI() callback would be a good point of time to add manual parameter UI connections and is for instance helpful when setting up a specific connection to data stored in a variable tab parameter.
widget | The widget hosting the UI controls that should be connected to the param block. |
|
pure virtual |
This method removes all existing parameter UI connections held by the ParamMap.
Connects a Qt UI control to the specified param block parameter.
If the UI control already has a parameter connection, it will be disconnected first.
id | The ID of the parameter. |
uiControl | A pointer to the Qt UI control (e.g. a QmaxSpinBox) that should be connected to the param block. |
tabIndex | If the parameter is a Tab<> this is the zero-based index of the parameter in the table. |