- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/Qt3D/GLWorldView.hpp
r592d42 r5a9f4c 126 126 }; 127 127 128 129 130 //#include "CodePatterns/Observer/Observer.hpp"131 //#include "LinearAlgebra/Vector.hpp"132 //#include "changetypes.hpp"133 //134 //class atom;135 //class element;136 //class molecule;137 //138 //class GLMoleculeView : public QGLWidget, public Observer139 //{140 // Q_OBJECT141 //142 //public:143 //144 // GLMoleculeView( QWidget* parent);145 // ~GLMoleculeView();146 //147 //public slots:148 //149 // void setXRotation( int degrees );150 // void setYRotation( int degrees );151 // void setZRotation( int degrees );152 // void setScale( int distance );153 // void setLightPosition( int *light );154 // void setLightDiffuse( int *light );155 // void setLightAmbient( int *light );156 // void createDialogLight();157 // void toggleMultiViewEnabled();158 //159 // void init( QLabel *ptr );160 // void initCoordinates(QLabel *ptr);161 // void createView();162 // void hearMoleculeSelected(molecule *mol);163 // void hearAtomSelected(molecule *mol, atom *Walker);164 // void hearMoleculeChanged(molecule *mol, enum ChangesinMolecule type);165 // void hearAtomChanged(molecule *mol, atom *Walker, enum ChangesinAtom type);166 // void hearElementChanged(element *Runner, enum ChangesinElement type);167 // void hearMoleculeAdded(molecule *mol);168 // void hearAtomAdded(molecule *mol, atom *Walker);169 // void hearMoleculeRemoved(molecule *mol);170 // void hearAtomRemoved(molecule *mol, atom *Walker);171 //172 //signals:173 // void notifyMoleculeSelected( molecule *mol );174 // void notifyAtomSelected( molecule *mol, atom *Walker );175 // void notifyMoleculeChanged( molecule *mol, enum ChangesinMolecule type );176 // void notifyAtomChanged( molecule *mol, atom *Walker, enum ChangesinAtom type );177 // void notifyElementChanged( element *Runner, enum ChangesinElement type );178 // void notifyMoleculeAdded( molecule *mol);179 // void notifyElementAdded( element *Runner);180 // void notifyAtomAdded( molecule *mol, atom *Walker );181 // void notifyMoleculeRemoved( molecule *mol );182 // void notifyAtomRemoved( molecule *mol, atom *Walker );183 //184 //protected:185 //186 // void initializeGL();187 // void paintGL();188 // void resizeGL( int w, int h );189 // void makeSphere(const Vector &x, double radius, const unsigned char color[3]);190 // void makeCylinder(const Vector &x, const Vector &y, double radius, double height, const unsigned char color[3]);191 // void mousePressEvent(QMouseEvent* event);192 // void mouseReleaseEvent(QMouseEvent* event);193 //194 //public:195 //196 // /** Update function as we are an Observer.197 // *198 // * @param publisher ref to Observable199 // */200 // void update(Observable *publisher);201 //202 // /**203 // * This method is called when a special named change204 // * of the Observable occured205 // */206 // void recieveNotification(Observable *publisher, Notification_ptr notification);207 //208 // /**209 // * This method is called when the observed object is destroyed.210 // */211 // void subjectKilled(Observable *publisher);212 //213 //214 //private:215 //216 // typedef std::map< size_t, node > AtomNodeMap;217 // typedef std::map< std::pair< size_t, size_t> , node > BondNodeMap;218 // typedef std::map< size_t, QGLMaterial *> ElementMaterialMap;219 //220 // ElementMaterialMap ElementNoMaterialMap;221 // AtomNodeMap AtomsinSceneMap;222 // BondNodeMap BondsinSceneMap;223 //224 // QGLMaterial* getMaterial(size_t);225 // QGLSceneNode* getAtom(size_t);226 // QGLSceneNode* getBond(size_t, size_t);227 //228 // // old stuff229 //230 // GLuint object; // call list for the scene to be rendered231 // GLfloat xRot, yRot, zRot, scale; // rotation angles and scaling (zoom)232 // Vector position; //!< position of observer233 // Vector view; //!< point along line of view234 // Vector top; //!< giving upwards direction235 // Vector X,Y,Z; //!< vectors defining the coordinate system236 // int width; //!< width of window237 // int height; //!< height of window238 //239 // QLabel *StatusBar; //!< pointer to status bar for messages240 // QLabel *CoordinatesBar; //!< pointer to coordinates bar for view port241 //242 // GLfloat LightPosition[4]; //!< Light Position243 // GLfloat LightDiffuse[4]; //!< Diffuse Light Values244 // GLfloat LightAmbient[4]; //!< Ambient Light Values245 //246 // QPoint LeftButtonPos; //!< mouse position on mousePressEvent for LeftButton247 // QPoint MiddleButtonPos; //!< mouse position on mousePressEvent for MidButton248 // QPoint RightButtonPos; //!< mouse position on mousePressEvent for RightButton249 //250 // unsigned char SelectionColor[3] ; //!< highlight color251 //252 // bool isSignaller;253 //254 // bool MultiViewEnabled; //!< if true, split screen into four parts with additional xy,xz,yz views255 //};256 257 128 #endif /* GLWORLDVIEW_HPP_ */
Note:
See TracChangeset
for help on using the changeset viewer.