Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef WINDOW_H
- #define WINDOW_H
- #include <QtCore/QList>
- #include <QtCore/QPoint>
- #include <Qt3DRender/QWindow>
- class QWheelEvent;
- class QWidget;
- namespace Qt3DCore
- {
- class QAspectEngine;
- class QCamera;
- class QEntity;
- }
- namespace Qt3DInput
- {
- class QInputAspect;
- }
- class Window : public Qt3DRender::QWindow
- {
- Q_OBJECT
- public:
- Window();
- ~Window();
- bool initialise();
- QWidget* widget();
- protected slots:
- void wheelEvent( QWheelEvent* event );
- void poorMansZoom( float factor );
- void pan( const QPoint& pt );
- private:
- Qt3DCore::QAspectEngine* _Engine;
- Qt3DInput::QInputAspect* _Input;
- Qt3DCore::QCamera* _Camera;
- Qt3DCore::QEntity* _RootEntity;
- QList< Qt3DCore::QEntity* > _SphereEntities;
- QWidget* _Widget;
- bool _PanEngaged;
- QPoint _OriginPan;
- };
- #endif // WINDOW_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement