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