Changeset 04f017


Ignore:
Timestamp:
Oct 6, 2011, 3:06:13 PM (13 years ago)
Author:
Frederik Heber <heber@…>
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)
Message:

Removed teapotview.?pp again.

  • Functionality is contained in GLWorldView class now.
Location:
src/UIElements
Files:
2 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Makefile.am

    ra08d3c0 r04f017  
    191191  UIElements/Views/Qt4/QtMoleculeView.cpp \
    192192  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
    195194
    196195#  UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp \
     
    224223  UIElements/Views/Qt4/QtMoleculeView.hpp \
    225224  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
    228226
    229227#  UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp \
  • src/UIElements/Qt4/QtMainWindow.cpp

    ra08d3c0 r04f017  
    3535#include "Views/Qt4/QtMoleculeView.hpp"
    3636#include "Views/Qt4/QtStatusBar.hpp"
    37 #include "Views/Qt4/teapotview.hpp"
     37#include "Views/Qt4/Qt3D/GLWorldView.hpp"
    3838
    3939#include "CodePatterns/MemDebug.hpp"
     
    5555
    5656  moleculeDisplay = new QtMoleculeView();
    57   molecule3dDisplay = new TeapotView(this);
     57  molecule3dDisplay = new GLWorldView(this);
    5858  //setCentralWidget(molecule3dDisplay);
    5959  //molecule3dDisplay->setFocus();
  • src/UIElements/Qt4/QtMainWindow.hpp

    ra08d3c0 r04f017  
    2525class QtWorldView;
    2626class StringView;
    27 //class GLWorldView;
    28 class TeapotView;
     27class GLWorldView;
    2928class QtMoleculeView;
    3029class QtStatusBar;
     
    4544  QApplication *theApp;
    4645  QtWorldView *worldDisplay;
    47   TeapotView *molecule3dDisplay;
     46  GLWorldView *molecule3dDisplay;
    4847  QtMoleculeView *moleculeDisplay;
    4948  QtStatusBar *statusBar;
  • src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp

    ra08d3c0 r04f017  
    2121
    2222#include <Qt/qevent.h>
     23#include <Qt3D/qglbuilder.h>
     24#include <Qt3D/qglcube.h>
    2325
    2426//#include "GLWorldScene.hpp"
     
    2729
    2830GLWorldView::GLWorldView(QWidget *parent)
    29    : worldscene(NULL) //QGLView(parent),
     31   : QGLView(parent), worldscene(NULL)
    3032{
    3133//   worldscene = new GLWorldScene(this);
    3234
    33    //setOption(QGLView::ObjectPicking, true);
     35   setOption(QGLView::ObjectPicking, true);
    3436
    3537//   connect(worldscene, SIGNAL(changed()), this, SLOT(updateGL()));
    3638}
    3739
     40GLWorldView::~GLWorldView()
     41{
     42  delete worldscene;
     43}
     44
     45
    3846void GLWorldView::initializeGL(QGLPainter *painter)
    3947{
     48  QGLBuilder builder;
     49  builder << QGL::Faceted;
     50  builder << QGLCube();
     51  worldscene = builder.finalizedSceneNode();
    4052//   worldscene->initialize(this, painter);
    4153}
     
    4355void GLWorldView::paintGL(QGLPainter *painter)
    4456{
     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);
    4562//   worldscene->draw(painter);
    4663}
    4764
    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//
    5976
    6077//#include <GL/glu.h>
  • src/UIElements/Views/Qt4/Qt3D/GLWorldView.hpp

    ra08d3c0 r04f017  
    1414#endif
    1515
    16 #include <Qt/qwidget.h>
    17 //#include <Qt3D/qglview.h>
     16#include "qglview.h"
     17#include "qglteapot.h"
    1818
    19 class QKeyEvent;
    20 class GLWorldScene;
     19//class QKeyEvent;
     20//class GLWorldScene;
     21class QGLSceneNode;
    2122class QGLPainter;
    2223
     
    2526 *
    2627 */
    27 class GLWorldView : public QWidget // : public QGLView
     28class GLWorldView : public QGLView
    2829{
    2930   Q_OBJECT
    3031public:
    3132   GLWorldView(QWidget *parent=0);
     33   virtual ~GLWorldView();
    3234
    3335public slots:
     
    3638   void initializeGL(QGLPainter *painter);
    3739   void paintGL(QGLPainter *painter);
    38    void keyPressEvent(QKeyEvent *e);
     40   //void keyPressEvent(QKeyEvent *e);
    3941
    4042private:
    41    GLWorldScene *worldscene;
     43   //GLWorldScene *worldscene;
     44   QGLSceneNode *worldscene;
    4245};
    4346
Note: See TracChangeset for help on using the changeset viewer.