void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(0.0,0.0,distance,0.0,0.0,0.0,0.0,1.0,0.0); glRotatef(-pitch,1.0,0.0,0.0); glRotatef(-yaw,0.0,1.0,0.0); ///////////////////////////////////////////////////////// ////////////////////////////////////////////////////// glPushMatrix(); { glRotatef(gDrawRotateAngle,0.0,1.0,0.0); glRotatef(gDrawRotateAngle,1.0,0.0,0.0); make_corner(corner_permu[0],corner_ori[0],W,O,G,K,K,K); make_corner(corner_permu[1],corner_ori[1],W,B,O,K,K,K); make_corner(corner_permu[2],corner_ori[2],W,R,B,K,K,K); make_corner(corner_permu[3],corner_ori[3],W,G,R,K,K,K); make_corner(corner_permu[4],corner_ori[4],Y,G,O,K,K,K); make_corner(corner_permu[5],corner_ori[5],Y,O,B,K,K,K); make_corner(corner_permu[6],corner_ori[6],Y,B,R,K,K,K); make_corner(corner_permu[7],corner_ori[7],Y,R,G,K,K,K); make_edge(edge_permu[0],edge_ori[0],W,O,K,K,K,K); make_edge(edge_permu[1],edge_ori[1],W,B,K,K,K,K); make_edge(edge_permu[2],edge_ori[2],W,R,K,K,K,K); make_edge(edge_permu[3],edge_ori[3],W,G,K,K,K,K); make_edge(edge_permu[4],edge_ori[4],O,G,K,K,K,K); make_edge(edge_permu[5],edge_ori[5],O,B,K,K,K,K); make_edge(edge_permu[6],edge_ori[6],R,B,K,K,K,K); make_edge(edge_permu[7],edge_ori[7],R,G,K,K,K,K); make_edge(edge_permu[8],edge_ori[8],Y,O,K,K,K,K); make_edge(edge_permu[9],edge_ori[9],Y,B,K,K,K,K); make_edge(edge_permu[10],edge_ori[10],Y,R,K,K,K,K); make_edge(edge_permu[11],edge_ori[11],Y,G,K,K,K,K); make_center(); } glPopMatrix(); glPopMatrix(); glutSwapBuffers(); }
void BtAboutDialog::init_sword_tab() { selectTab(2); setTabText("Sword" ); QString version( sword::SWVersion::currentVersion.getText()); QString content = make_br() + make_br(); content += make_center(make_bold("Sword Version " + version)); content += make_br(); content += "BibleTime makes use of the SWORD Project. The SWORD Project is the CrossWire Bible Society's free Bible software project. Its purpose is to create cross-platform open-source tools-- covered by the GNU General Public License-- that allow programmers and Bible societies to write new Bible software more quickly and easily."; content += make_br() + make_br(); content += "The SWORD Project" + make_br(); content += make_link("http://www.crosswire.org/sword/index.jsp","www.crosswire.org/sword/index.jsp"); setHtml(content); }
//---------- process full -------------// //given a certain SFP, return its' TM_score against other SFPs int ZoomIn_Align::Select_Single(int cur_SFP,int recur,double INI_CUT,double FIN_CUT,vector <SFP_Record> &SFP) { int ii,jj,winlen; int wsscore; double RMSD; SFP_Record sfp_rec; //init sfp_rec=SFP.at(cur_SFP); ii=sfp_rec.ii; jj=sfp_rec.jj; winlen=sfp_rec.winlen; //pivot if(make_center(ii,jj,winlen,rot_mat,mol1,mol2,moln1,moln2)<0.0)return -1; wsscore=ZoomIn_Add(recur,INI_CUT,FIN_CUT,SFP); AFP_Kill_NonLinear(AFP_Cor,AFP_Cor_temp,rot_mat); AFP_kabsch(rot_mat,RMSD,mol1,mol2,moln1,moln2,AFP_Cor); wsscore=(int)T_Similar(rot_mat,ali1,ali2); return wsscore; }
//------------- Select Best Pivot --------------// //given a certain SFP, return its' TM_score against other SFPs int CLEFAPS::Select_Single(int cur_SFP,int recur,double INI_CUT,double FIN_CUT,vector <SFP_Record> &SFP,double *ret_rot) { int ii,jj,winlen; double RMSD; int wsscore; //init ii=SFP[cur_SFP].ii; jj=SFP[cur_SFP].jj; winlen=SFP[cur_SFP].winlen; //pivot if(make_center(ii,jj,winlen,ret_rot,mol1,mol2,moln1,moln2)<0.0)return -1; if(ALI_CACHE==1)memset(Ali_cache,0,sizeof(int)*moln1); ZoomIn_Add(recur,INI_CUT,FIN_CUT,SFP,ret_rot); if(NonLinear==1)Kill_NonLinear(ret_rot); Final_Rot_Ali(ret_rot,RMSD,mol1,mol2,moln1,moln2,ali1,ali2); if(ALI_CACHE==1)memset(Ali_cache,0,sizeof(int)*moln1); wsscore=(int)T_Similar(ret_rot,ali1,ali2,mol1,mol2,moln1,moln2); return wsscore; }
void BtAboutDialog::init_bt_tab() { selectTab(0); setTabText("BibleTime" ); QString content; content = make_file_icon("bibletime"); content += " "; content += make_bold("BibleTime " + make_version()); content = make_center(content) + make_br(); content += tr("BibleTime is an easy to use but powerful Bible study tool."); content += make_br() + make_br(); content += tr("We are looking for developers and translators."); content += tr("If you would like to join our team, please send an email to [email protected]."); content += make_br() + make_br(); content += tr("(c)1999-2009, The BibleTime Team"); content += make_br(); content += make_link("http://www.bibletime.info","http://www.bibletime.info"); QString bibletime = make_html(make_head("") + make_body(content)); setHtml(bibletime); }
void BtAboutDialog::init_qt_tab() { selectTab(3); setTabText("Qt"); QString content; content += make_br() + make_br(); content += make_center(make_bold("Qt")); content += make_br(); content += tr("This program uses Qt Open Source Edition version "); content += qVersion(); content += make_br() + make_br(); content += tr("Qt Open Source Edition is intended for the development of Open Source applications."); content += tr("Qt is a C++ toolkit for cross-platform application development."); content += make_br() + make_br(); content += tr("Please see "); content += make_link("http://qtsoftware.com/company/model/","qtsoftware.com/company/model"); content += tr(" for an overview of Qt licensing."); QString qt = make_html(make_head("") + make_body(content)); setHtml(qt); }