Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Views/Qt4/Qt3D/GLWorldView.hpp

    rce4126 r5a9f4c  
    5757signals:
    5858  void changed();
    59   void TimeChanged();
    6059  void atomInserted(const atomicNumber_t _id);
    6160  void atomRemoved(const atomicNumber_t _id);
     
    127126};
    128127
    129 
    130 
    131 //#include "CodePatterns/Observer/Observer.hpp"
    132 //#include "LinearAlgebra/Vector.hpp"
    133 //#include "changetypes.hpp"
    134 //
    135 //class atom;
    136 //class element;
    137 //class molecule;
    138 //
    139 //class GLMoleculeView : public QGLWidget, public Observer
    140 //{
    141 //    Q_OBJECT
    142 //
    143 //public:
    144 //
    145 //    GLMoleculeView( QWidget* parent);
    146 //    ~GLMoleculeView();
    147 //
    148 //public slots:
    149 //
    150 //    void    setXRotation( int degrees );
    151 //    void    setYRotation( int degrees );
    152 //    void    setZRotation( int degrees );
    153 //    void    setScale( int distance );
    154 //    void    setLightPosition( int *light );
    155 //    void    setLightDiffuse( int *light );
    156 //    void    setLightAmbient( int *light );
    157 //    void    createDialogLight();
    158 //    void    toggleMultiViewEnabled();
    159 //
    160 //    void    init( QLabel *ptr );
    161 //    void    initCoordinates(QLabel *ptr);
    162 //    void    createView();
    163 //    void    hearMoleculeSelected(molecule *mol);
    164 //    void    hearAtomSelected(molecule *mol, atom *Walker);
    165 //    void    hearMoleculeChanged(molecule *mol, enum ChangesinMolecule type);
    166 //    void    hearAtomChanged(molecule *mol, atom *Walker, enum ChangesinAtom type);
    167 //    void    hearElementChanged(element *Runner, enum ChangesinElement type);
    168 //    void    hearMoleculeAdded(molecule *mol);
    169 //    void    hearAtomAdded(molecule *mol, atom *Walker);
    170 //    void    hearMoleculeRemoved(molecule *mol);
    171 //    void    hearAtomRemoved(molecule *mol, atom *Walker);
    172 //
    173 //signals:
    174 //    void    notifyMoleculeSelected( molecule *mol );
    175 //    void    notifyAtomSelected( molecule *mol, atom *Walker );
    176 //    void    notifyMoleculeChanged( molecule *mol, enum ChangesinMolecule type );
    177 //    void    notifyAtomChanged( molecule *mol, atom *Walker, enum ChangesinAtom type );
    178 //    void    notifyElementChanged( element *Runner, enum ChangesinElement type );
    179 //    void    notifyMoleculeAdded( molecule *mol);
    180 //    void    notifyElementAdded( element *Runner);
    181 //    void    notifyAtomAdded( molecule *mol, atom *Walker );
    182 //    void    notifyMoleculeRemoved( molecule *mol );
    183 //    void    notifyAtomRemoved( molecule *mol, atom *Walker );
    184 //
    185 //protected:
    186 //
    187 //    void    initializeGL();
    188 //    void    paintGL();
    189 //    void    resizeGL( int w, int h );
    190 //    void    makeSphere(const Vector &x, double radius, const unsigned char color[3]);
    191 //    void    makeCylinder(const Vector &x, const Vector &y, double radius, double height, const unsigned char color[3]);
    192 //    void mousePressEvent(QMouseEvent* event);
    193 //    void mouseReleaseEvent(QMouseEvent* event);
    194 //
    195 //public:
    196 //
    197 //    /** Update function as we are an Observer.
    198 //     *
    199 //     * @param publisher ref to Observable
    200 //     */
    201 //    void update(Observable *publisher);
    202 //
    203 //    /**
    204 //     * This method is called when a special named change
    205 //     * of the Observable occured
    206 //     */
    207 //    void recieveNotification(Observable *publisher, Notification_ptr notification);
    208 //
    209 //    /**
    210 //     * This method is called when the observed object is destroyed.
    211 //     */
    212 //    void subjectKilled(Observable *publisher);
    213 //
    214 //
    215 //private:
    216 //
    217 //    typedef std::map< size_t, node > AtomNodeMap;
    218 //    typedef std::map< std::pair< size_t, size_t> , node > BondNodeMap;
    219 //    typedef std::map< size_t, QGLMaterial *> ElementMaterialMap;
    220 //
    221 //    ElementMaterialMap ElementNoMaterialMap;
    222 //    AtomNodeMap AtomsinSceneMap;
    223 //    BondNodeMap BondsinSceneMap;
    224 //
    225 //    QGLMaterial* getMaterial(size_t);
    226 //    QGLSceneNode* getAtom(size_t);
    227 //    QGLSceneNode* getBond(size_t, size_t);
    228 //
    229 //    // old stuff
    230 //
    231 //    GLuint object;  // call list for the scene to be rendered
    232 //    GLfloat xRot, yRot, zRot, scale;  // rotation angles and scaling (zoom)
    233 //    Vector position;  //!< position of observer
    234 //    Vector view;      //!< point along line of view
    235 //    Vector top;       //!< giving upwards direction
    236 //    Vector X,Y,Z;     //!< vectors defining the coordinate system
    237 //    int width;        //!< width of window
    238 //    int height;       //!< height of window
    239 //
    240 //  QLabel *StatusBar;  //!< pointer to status bar for messages
    241 //  QLabel *CoordinatesBar; //!< pointer to coordinates bar for view port
    242 //
    243 //  GLfloat LightPosition[4];        //!< Light Position
    244 //  GLfloat LightDiffuse[4];         //!< Diffuse Light Values
    245 //  GLfloat LightAmbient[4];        //!< Ambient Light Values
    246 //
    247 //  QPoint LeftButtonPos;     //!< mouse position on mousePressEvent for LeftButton
    248 //  QPoint MiddleButtonPos;   //!< mouse position on mousePressEvent for MidButton
    249 //  QPoint RightButtonPos;    //!< mouse position on mousePressEvent for RightButton
    250 //
    251 //  unsigned char SelectionColor[3] ; //!< highlight color
    252 //
    253 //  bool isSignaller;
    254 //
    255 //  bool MultiViewEnabled;    //!< if true, split screen into four parts with additional xy,xz,yz views
    256 //};
    257 
    258128#endif /* GLWORLDVIEW_HPP_ */
Note: See TracChangeset for help on using the changeset viewer.