MCPcopy Create free account
hub / github.com/assimp/assimp / OnSetupNormalView

Method OnSetupNormalView

tools/assimp_view/Display.cpp:882–910  ·  view source on GitHub ↗

-------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

880}
881//-------------------------------------------------------------------------------
882int CDisplay::OnSetupNormalView()
883{
884 if (VIEWMODE_NODE == m_iViewMode)
885 {
886 ShowNormalUIComponents();
887 }
888
889 // now ... change the meaning of the statistics fields back
890 SetWindowText(GetDlgItem(g_hDlg,IDC_NUMVERTS),"Vertices:");
891 SetWindowText(GetDlgItem(g_hDlg,IDC_NUMNODES),"Nodes:");
892 SetWindowText(GetDlgItem(g_hDlg,IDC_NUMFACES),"Faces:");
893 SetWindowText(GetDlgItem(g_hDlg,IDC_NUMSHADERS),"Shaders:");
894 SetWindowText(GetDlgItem(g_hDlg,IDC_NUMMATS),"Materials:");
895 SetWindowText(GetDlgItem(g_hDlg,IDC_NUMMESHES),"Meshes:");
896 SetWindowText(GetDlgItem(g_hDlg,IDC_LOADTIME),"Loading Time:");
897
898 FillDefaultStatistics();
899 SetViewMode(VIEWMODE_FULL);
900
901 // for debugging
902 m_pcCurrentMaterial = nullptr;
903 m_pcCurrentTexture = nullptr;
904 m_pcCurrentNode = nullptr;
905
906 // redraw the color fields in the UI --- their purpose has possibly changed
907 UpdateColorFieldsInUI();
908 UpdateWindow(g_hDlg);
909 return 1;
910}
911//-------------------------------------------------------------------------------
912int CDisplay::OnSetupNodeView(NodeInfo* pcNew)
913{

Callers

nothing calls this directly

Calls 2

ShowNormalUIComponentsFunction · 0.85
UpdateColorFieldsInUIFunction · 0.85

Tested by

no test coverage detected