Ignore:
File:
1 edited

Legend:

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

    r2d5137 r7b93f9  
    7474   void setSelected(bool value);
    7575
     76   bool visible() const { return m_visible; }
     77   virtual void setVisible(bool value);
     78
    7679   void initStaticMaterials();
    77    void initialize(QGLView *view, QGLPainter *painter);
     80   virtual void initialize(QGLView *view, QGLPainter *painter);
    7881   virtual void draw(QGLPainter *painter, const QVector4D &cameraPlane);
    7982   void drawSelectionBox(QGLPainter *painter);
     
    9497   static void cleanMaterialMap();
    9598
     99   void updateMesh(QGLSceneNode *scene);
     100
    96101   typedef std::map< size_t, QGLMaterial *> ElementMaterialMap;
    97102   static ElementMaterialMap ElementNoMaterialMap;
     
    100105   enum{DETAIL_HIGHEST, DETAIL_HIGH, DETAIL_MEDIUM, DETAIL_LOW, DETAILTYPES_MAX} DetailType;
    101106
     107   static QGLSceneNode *meshEmpty[DETAILTYPES_MAX];
     108   static QGLSceneNode *meshSphere[DETAILTYPES_MAX];
     109   static QGLSceneNode *meshCylinder[DETAILTYPES_MAX];
     110
    102111protected:
    103112
     
    105114
    106115   QGLSceneNode *m_mesh[DETAILTYPES_MAX];
     116   enum enum_MeshFreeType {
     117     free_all,
     118     free_single,
     119     free_none
     120   } MeshFreeType;
    107121   QGLAbstractScene *m_scene;
    108122   QVector3D m_position;
     
    120134   bool m_hovering;
    121135   bool m_selected;
     136   bool m_visible;
    122137};
    123138
Note: See TracChangeset for help on using the changeset viewer.