|
Last change
on this file since 88bb6b was 85c36d, checked in by Frederik Heber <heber@…>, 13 years ago |
|
cached shapes in GLWorldScene + cleaner ShapeRegistry notifications
|
-
Property mode
set to
100644
|
|
File size:
856 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * GLMoleculeObject_shape.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Aug 3, 2012
|
|---|
| 5 | * Author: ankele
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef GLMOLECULEOBJECT_SHAPE_HPP_
|
|---|
| 9 | #define GLMOLECULEOBJECT_SHAPE_HPP_
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 | // include config.h
|
|---|
| 13 | #ifdef HAVE_CONFIG_H
|
|---|
| 14 | #include <config.h>
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 | #include <QtCore/qobject.h>
|
|---|
| 19 |
|
|---|
| 20 | #include <Qt3D/qglpainter.h>
|
|---|
| 21 | #include <Qt3D/qglabstractscene.h>
|
|---|
| 22 |
|
|---|
| 23 | #include "GLMoleculeObject.hpp"
|
|---|
| 24 |
|
|---|
| 25 | class Shape;
|
|---|
| 26 |
|
|---|
| 27 | /** This class represents a triangulated Shape.
|
|---|
| 28 | *
|
|---|
| 29 | */
|
|---|
| 30 | class GLMoleculeObject_shape : public GLMoleculeObject
|
|---|
| 31 | {
|
|---|
| 32 | Q_OBJECT
|
|---|
| 33 | public:
|
|---|
| 34 | explicit GLMoleculeObject_shape(Shape &shape, QObject *parent=0);
|
|---|
| 35 | virtual ~GLMoleculeObject_shape();
|
|---|
| 36 |
|
|---|
| 37 | virtual void draw(QGLPainter *painter, const QVector4D &cameraPlane);
|
|---|
| 38 | void enable(bool enabled);
|
|---|
| 39 | Shape *getShape(){ return &m_shape; }
|
|---|
| 40 |
|
|---|
| 41 | private:
|
|---|
| 42 |
|
|---|
| 43 | Shape &m_shape;
|
|---|
| 44 | bool m_enabled;
|
|---|
| 45 | };
|
|---|
| 46 |
|
|---|
| 47 | #endif /* GLMOLECULEOBJECT_SHAPE_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.