ClassDesc2_Extension2017SP2 Class Reference

ClassDesc2_Extension2017SP2 Class Referenceabstract

#include <iparamb2.h>

Class Description

Extension class that adds functionality to class ClassDesc2 for 3ds Max 2017 Service Pack 2.

Deprecated:
This has been deprecated as of 3ds Max 2020, please use MaxSdk::ClassDesc2 instead

The plugin developer may implement this method by deriving a plugin's class descriptor from this class alongside ClassDesc2.

A pointer to this extension interface may be retrieved through a dynamic_cast from a ClassDesc2.

Note: this class will eventually disappear, having its functionality folded into ClassDesc2.

Public Member Functions

virtual MaxSDK::QMaxParamBlockWidgetCreateQtWidget (ReferenceMaker &owner, IParamBlock2 &paramBlock, const MapID paramMapID, MSTR &rollupTitle, int &rollupFlags, int &rollupCategory, Class_ID &tabID)=0
 Creates a Qt widget to be associated with the given parameter map ID. More...
 

Member Function Documentation

virtual MaxSDK::QMaxParamBlockWidget* CreateQtWidget ( ReferenceMaker owner,
IParamBlock2 paramBlock,
const MapID  paramMapID,
MSTR rollupTitle,
int rollupFlags,
int rollupCategory,
Class_ID tabID 
)
pure virtual

Creates a Qt widget to be associated with the given parameter map ID.

This method is to be implemented by the plugin developer, if and only if the P_AUTO_UI_QT flag has been specific on a parameter block descriptor. It replaces the UI definition that exists in the parameter block descriptor for Win32 dialogs; it is responsible for building a Qt widget which defines the UI to be controlled by the parameter map with the given ID. This Qt widget will be hosted in a rollup window.

Parameters
ownerThe owner of the dialog. This will normally be the owner of the parameter block, but in the case of P_CLASS_PARAMS, where the parameter block doesn't have an owner, this will be the object for which the dialog is being displayed.
paramBlockThe parameter block to which the parameter map belongs.
paramMapIDThe ID of the parameter map, as specific in the parameter block descriptor.
[out]rollupTitleThe title to be displayed in the rollup's header.
[out]rollupFlagsOptional flags, such as APPENDROLL_CLOSED. The default input value is 0.
[out]rollupCategoryOptional value controlling the order in which rollups are positioned. The default input value is ROLLUP_CAT_STANDARD.
[out]tabIDOptional identifier for the tab in which the rollup is to be added. This is the ID used to create new tabs in implementations of ITabDialogObject::AddTabToDialog(). Note that tabs are currently only supported in the render settings dialog. The default input value is ClassID(); this value causes the widget to be added to the default/first tab.
Returns
An instance of a new Qt widget which will be hosted in the parameter map's rollup.
Remarks
The ownership of the Qt widget is transferred to the caller.
May return null if no dialog should be shown for the given parameter map.
See also
Qt in Parameter Maps and Parameter Blocks.