- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject.hpp
r2d5137 r7b93f9 74 74 void setSelected(bool value); 75 75 76 bool visible() const { return m_visible; } 77 virtual void setVisible(bool value); 78 76 79 void initStaticMaterials(); 77 v oid initialize(QGLView *view, QGLPainter *painter);80 virtual void initialize(QGLView *view, QGLPainter *painter); 78 81 virtual void draw(QGLPainter *painter, const QVector4D &cameraPlane); 79 82 void drawSelectionBox(QGLPainter *painter); … … 94 97 static void cleanMaterialMap(); 95 98 99 void updateMesh(QGLSceneNode *scene); 100 96 101 typedef std::map< size_t, QGLMaterial *> ElementMaterialMap; 97 102 static ElementMaterialMap ElementNoMaterialMap; … … 100 105 enum{DETAIL_HIGHEST, DETAIL_HIGH, DETAIL_MEDIUM, DETAIL_LOW, DETAILTYPES_MAX} DetailType; 101 106 107 static QGLSceneNode *meshEmpty[DETAILTYPES_MAX]; 108 static QGLSceneNode *meshSphere[DETAILTYPES_MAX]; 109 static QGLSceneNode *meshCylinder[DETAILTYPES_MAX]; 110 102 111 protected: 103 112 … … 105 114 106 115 QGLSceneNode *m_mesh[DETAILTYPES_MAX]; 116 enum enum_MeshFreeType { 117 free_all, 118 free_single, 119 free_none 120 } MeshFreeType; 107 121 QGLAbstractScene *m_scene; 108 122 QVector3D m_position; … … 120 134 bool m_hovering; 121 135 bool m_selected; 136 bool m_visible; 122 137 }; 123 138
Note:
See TracChangeset
for help on using the changeset viewer.