本文整理汇总了C++中MeshObject::GetSceneDesc方法的典型用法代码示例。如果您正苦于以下问题:C++ MeshObject::GetSceneDesc方法的具体用法?C++ MeshObject::GetSceneDesc怎么用?C++ MeshObject::GetSceneDesc使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MeshObject
的用法示例。
在下文中一共展示了MeshObject::GetSceneDesc方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DlgProc
INT_PTR DlgProc(TimeValue t, IParamMap2 *map, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg)
{
case WM_INITDIALOG:
meshObj = (MeshObject*)map->GetParamBlock()->GetOwner();
//node = meshObj->GetNode();
if (meshObj!=NULL)
{
//QString name = QFileInfo(meshObj->animaPath).fileName();
hwndLbl = GetDlgItem(hWnd, IDC_FILE_NAME);
if(hwndLbl!=NULL)
{
hwndLblFileName = hwndLbl;
UpdateFileNameInfo();
//LPARAM a = (LPARAM)name.toAscii().data();
//SendMessage(hwndLbl, WM_SETTEXT, 0, (LPARAM) a);
}
QString sceneDesc=meshObj->GetSceneDesc();
hwndLbl = GetDlgItem(hWnd, IDC_STATIC_SCENE_INFO);
if (hwndLbl!=NULL)
{
hwndLblInfo = hwndLbl;
UpdateLabelInfo();
//LPARAM a1 = (LPARAM)sceneDesc.toAscii().data();
////SendMessage(hwndLblInfo, WM_SETTEXT, 0, (LPARAM) a1);
//char bb[10];
//strcpy(bb,"jkjhjh\0");
//SendMessage(hwndLblInfo, WM_SETTEXT, 0, (LPARAM) bb);
}
}
// load the shader dropdown
////hwndCombo = GetDlgItem(hWnd, IDC_COMBO_PRESET);
////SendMessage(hwndCombo, CB_RESETCONTENT, 0L, 0L);
////meshObj = (MeshObject*)map->GetParamBlock()->GetOwner();
////index = 0;
////Anima::ModelExporter::GetModelExporterRenderTypeList(Anima::ModelExporterType::MAX,0,render_list);
////i=0;
////foreach(Anima::ModelExporterRenderType type , render_list)
////{
//// QString &dsc = Anima::ModelExporter::GetRenderTypeDesc(type);
//// LPARAM a = (LPARAM)dsc.toAscii().data();
////// int n = SendMessage(hwndCombo, CB_ADDSTRING, 0L, a );
//// int n = ComboBox_InsertString(hwndCombo,-1,a);
//// SendMessage(hwndCombo, CB_SETITEMDATA, n, i);
//// if (type == meshObj->current_render_type)
//// index = i;
//// i++;
////}
//// //EnableWindow(GetDlgItem(hWnd, IDC_MTLID_NAMES_COMBO), false);
//// //p=10;
//// //SendMessage(hwndCombo, CB_SETMINVISIBLE, (WPARAM)p, 0);
//// SendMessage(hwndCombo, CB_SETCURSEL, (WPARAM)index, 0);
return TRUE;
case WM_COMMAND:
switch (LOWORD(wParam))
{
case IDC_BUTTON_FILE_BROWSE:
case IDC_BUTTON_RELOAD:
case IDC_BUTTON_REBUILD:
HANDLE_MSG(hWnd,WM_COMMAND,OnDlgCommand);
break;
case IDC_COMBO_PRESET:
switch( HIWORD(wParam) )
{
HANDLE_MSG(hWnd,WM_COMMAND,OnDlgCommand);
//case WM_COMMAND:
// // push
// wndCombo = GetDlgItem(hWnd, IDC_COMBO_PRESET);
// break;
case CBN_DROPDOWN:
{
return TRUE;
}
case CBN_SELCHANGE: { // select a new item from the combo box
// /* int sel = (int)SendMessage((HWND)lParam, CB_GETITEMDATA, SendMessage((HWND)lParam, CB_GETCURSEL, 0, 0), 0);
// if(sel>=0)
// {
// meshObj = (MeshObject*)map->GetParamBlock()->GetOwner();
// pRollup = meshObj->ip->GetCommandPanelRollup();
//.........这里部分代码省略.........