void ControlPanel::ChangeModel( const char *filename ) { // init all the selection tabs based on the current model initSequenceChoices(); initBodypartChoices(); initBoneControllerChoices(); initSkinChoices(); setModelInfo(); SetCloseCaptionLanguageId( g_viewerSettings.cclanguageid, true ); g_viewerSettings.m_iEditAttachment = -1; g_viewerSettings.enableIK = true; g_viewerSettings.enableTargetIK = false; setSequence( models->GetActiveStudioModel()->GetSequence() ); setSpeed( g_viewerSettings.speedScale ); mx_setcwd (mx_getpath (filename)); g_pFlexPanel->initFlexes(); // centerView(); // CenterOnFace(); IFacePoserToolWindow::ModelChanged(); CExpClass *cl = expressions->GetActiveClass(); if ( cl ) { cl->SelectExpression( cl->GetSelectedExpression() ); } SetSuffix( va( " - %s.mdl", models->GetActiveModelName() ) ); redraw(); }
void SuffixTree<Symb,NSymb>::TransformForPPM(PPMParam param_) { param = param_; // compute counts of all nodes in the 'tree' SetCounts(); # ifdef SUFTREE_CDAWG_SIZE cout << "No. of nodes: " << GetNNodes() << endl; cout << "No. of edges to remove if the tree were turned into CDAWG: " << GetSizeCDAWG() << endl; # endif // cut off unnecessary branches //if(param.valid_count > 1.0) // Prune(ROOT, false); // set cumulative counts of nodes - field 'sum' // TODO: time - merge SetSums() and SetSuffix() SetSums(); // set 'suf' links SetSuffix(); }