当前位置: 首页>>代码示例>>C++>>正文


C++ MeshObject::GetSceneDesc方法代码示例

本文整理汇总了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();

//.........这里部分代码省略.........
开发者ID:objuan,项目名称:anima_sdk,代码行数:101,代码来源:MeshObjUI.cpp


注:本文中的MeshObject::GetSceneDesc方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。