summaryrefslogtreecommitdiffstats
path: root/src/mmscene.h
blob: 8bfa74e3d303db49e6ff0ebd2335ec112e643835 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef MMSCENE_H
#define MMSCENE_H

#include "glitem.h"

class MMScene : public GLItem
{
    Q_OBJECT

public:
    MMScene(QQuickItem *parent = 0);
    ~MMScene();

protected:
    /**
     * @brief paintUnderQmlScene
     * Virtual function for painting under a QML scene. This function is called by paintBefore after
     * calling createGeometries and initializing and binding the renderer.
     * Overwrite in subclasses for painting geometries in m_points with the renderer.
     */
    virtual void paintUnderQmlScene();
    /**
     * @brief paintUnderQmlScene
     * Virtual function for painting on top of a QML scene. This function is called by paintAfter after
     * calling createGeometries and initializing and binding the renderer.
     * Overwrite in subclasses for painting geometries in m_points with the renderer.
     */
    virtual void paintOnTopOfQmlScene();
    /**
     * @brief setupGeometry puts the geometric data into the arrays (m_Vertices etc.) and sets geometryIsValid flag.
     */
    void setupGeometry();

    /**
     * @brief drawTriangles
     * Draws two triangles.
     */
    void drawTriangles();


};

#endif // MMSCENE_H