Changeset 04f017
- Timestamp:
- Oct 6, 2011, 3:06:13 PM (13 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 907636
- Parents:
- a08d3c0
- git-author:
- Frederik Heber <heber@…> (08/26/11 14:54:28)
- git-committer:
- Frederik Heber <heber@…> (10/06/11 15:06:13)
- Location:
- src/UIElements
- Files:
-
- 2 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Makefile.am
ra08d3c0 r04f017 191 191 UIElements/Views/Qt4/QtMoleculeView.cpp \ 192 192 UIElements/Views/Qt4/QtStatusBar.cpp \ 193 UIElements/Views/Qt4/teapotview.cpp 194 # UIElements/Views/Qt4/Qt3D/GLWorldView.cpp 193 UIElements/Views/Qt4/Qt3D/GLWorldView.cpp 195 194 196 195 # UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp \ … … 224 223 UIElements/Views/Qt4/QtMoleculeView.hpp \ 225 224 UIElements/Views/Qt4/QtStatusBar.hpp \ 226 UIElements/Views/Qt4/teapotview.hpp 227 # UIElements/Views/Qt4/Qt3D/GLWorldView.hpp 225 UIElements/Views/Qt4/Qt3D/GLWorldView.hpp 228 226 229 227 # UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp \ -
src/UIElements/Qt4/QtMainWindow.cpp
ra08d3c0 r04f017 35 35 #include "Views/Qt4/QtMoleculeView.hpp" 36 36 #include "Views/Qt4/QtStatusBar.hpp" 37 #include "Views/Qt4/ teapotview.hpp"37 #include "Views/Qt4/Qt3D/GLWorldView.hpp" 38 38 39 39 #include "CodePatterns/MemDebug.hpp" … … 55 55 56 56 moleculeDisplay = new QtMoleculeView(); 57 molecule3dDisplay = new TeapotView(this);57 molecule3dDisplay = new GLWorldView(this); 58 58 //setCentralWidget(molecule3dDisplay); 59 59 //molecule3dDisplay->setFocus(); -
src/UIElements/Qt4/QtMainWindow.hpp
ra08d3c0 r04f017 25 25 class QtWorldView; 26 26 class StringView; 27 //class GLWorldView; 28 class TeapotView; 27 class GLWorldView; 29 28 class QtMoleculeView; 30 29 class QtStatusBar; … … 45 44 QApplication *theApp; 46 45 QtWorldView *worldDisplay; 47 TeapotView *molecule3dDisplay;46 GLWorldView *molecule3dDisplay; 48 47 QtMoleculeView *moleculeDisplay; 49 48 QtStatusBar *statusBar; -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp
ra08d3c0 r04f017 21 21 22 22 #include <Qt/qevent.h> 23 #include <Qt3D/qglbuilder.h> 24 #include <Qt3D/qglcube.h> 23 25 24 26 //#include "GLWorldScene.hpp" … … 27 29 28 30 GLWorldView::GLWorldView(QWidget *parent) 29 : worldscene(NULL) //QGLView(parent),31 : QGLView(parent), worldscene(NULL) 30 32 { 31 33 // worldscene = new GLWorldScene(this); 32 34 33 //setOption(QGLView::ObjectPicking, true);35 setOption(QGLView::ObjectPicking, true); 34 36 35 37 // connect(worldscene, SIGNAL(changed()), this, SLOT(updateGL())); 36 38 } 37 39 40 GLWorldView::~GLWorldView() 41 { 42 delete worldscene; 43 } 44 45 38 46 void GLWorldView::initializeGL(QGLPainter *painter) 39 47 { 48 QGLBuilder builder; 49 builder << QGL::Faceted; 50 builder << QGLCube(); 51 worldscene = builder.finalizedSceneNode(); 40 52 // worldscene->initialize(this, painter); 41 53 } … … 43 55 void GLWorldView::paintGL(QGLPainter *painter) 44 56 { 57 painter->setStandardEffect(QGL::LitMaterial); 58 painter->setFaceColor(QGL::AllFaces, QColor(170, 202, 0)); 59 60 painter->modelViewMatrix().rotate(45.0f, 1.0f, 1.0f, 1.0f); 61 worldscene->draw(painter); 45 62 // worldscene->draw(painter); 46 63 } 47 64 48 void GLWorldView::keyPressEvent(QKeyEvent *e)49 {50 if (e->key() == Qt::Key_Tab) {51 // The Tab key turns the ShowPicking option on and off,52 // which helps show what the pick buffer looks like.53 //setOption(QGLView::ShowPicking, ((options() & QGLView::ShowPicking) == 0));54 //updateGL();55 }56 //QGLView::keyPressEvent(e);57 }58 65 //void GLWorldView::keyPressEvent(QKeyEvent *e) 66 //{ 67 // if (e->key() == Qt::Key_Tab) { 68 // // The Tab key turns the ShowPicking option on and off, 69 // // which helps show what the pick buffer looks like. 70 // setOption(QGLView::ShowPicking, ((options() & QGLView::ShowPicking) == 0)); 71 // updateGL(); 72 // } 73 // QGLView::keyPressEvent(e); 74 //} 75 // 59 76 60 77 //#include <GL/glu.h> -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.hpp
ra08d3c0 r04f017 14 14 #endif 15 15 16 #include <Qt/qwidget.h>17 //#include <Qt3D/qglview.h> 16 #include "qglview.h" 17 #include "qglteapot.h" 18 18 19 class QKeyEvent; 20 class GLWorldScene; 19 //class QKeyEvent; 20 //class GLWorldScene; 21 class QGLSceneNode; 21 22 class QGLPainter; 22 23 … … 25 26 * 26 27 */ 27 class GLWorldView : public Q Widget // : public QGLView28 class GLWorldView : public QGLView 28 29 { 29 30 Q_OBJECT 30 31 public: 31 32 GLWorldView(QWidget *parent=0); 33 virtual ~GLWorldView(); 32 34 33 35 public slots: … … 36 38 void initializeGL(QGLPainter *painter); 37 39 void paintGL(QGLPainter *painter); 38 void keyPressEvent(QKeyEvent *e);40 //void keyPressEvent(QKeyEvent *e); 39 41 40 42 private: 41 GLWorldScene *worldscene; 43 //GLWorldScene *worldscene; 44 QGLSceneNode *worldscene; 42 45 }; 43 46
Note:
See TracChangeset
for help on using the changeset viewer.