36 |
36 |
37 void initialize(); |
37 void initialize(); |
38 void prepareVBO (int vbonum); |
38 void prepareVBO (int vbonum); |
39 GLuint vbo (int vbonum) const; |
39 GLuint vbo (int vbonum) const; |
40 int vboSize (int vbonum) const; |
40 int vboSize (int vbonum) const; |
41 void setSelectionModel(QItemSelectionModel* selectionModel); |
41 QItemSelectionModel* selectionModel() const; |
|
42 void setSelectionModel(QItemSelectionModel* _selectionModel); |
42 |
43 |
43 static int vboNumber (VboClass surface, VboSubclass complement); |
44 static int vboNumber (VboClass surface, VboSubclass complement); |
44 |
45 |
45 public slots: |
46 public slots: |
46 void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); |
47 void selectionChanged(const QItemSelection& selected, const QItemSelection& deselected); |
75 QSet<QPersistentModelIndex> m_staged; // Objects that need to be compiled |
76 QSet<QPersistentModelIndex> m_staged; // Objects that need to be compiled |
76 GLuint m_vbo[NumVbos]; |
77 GLuint m_vbo[NumVbos]; |
77 bool m_vboChanged[NumVbos] = {true}; |
78 bool m_vboChanged[NumVbos] = {true}; |
78 int m_vboSizes[NumVbos] = {0}; |
79 int m_vboSizes[NumVbos] = {0}; |
79 GLRenderer* m_renderer; |
80 GLRenderer* m_renderer; |
80 QItemSelectionModel* selectionModel = nullptr; |
81 QItemSelectionModel* _selectionModel = nullptr; |
81 |
82 |
82 private slots: |
83 private slots: |
83 void handleRowInsertion(const QModelIndex&, int first, int last); |
84 void handleRowInsertion(const QModelIndex&, int first, int last); |
84 void handleRowRemoval(const QModelIndex&, int first, int last); |
85 void handleRowRemoval(const QModelIndex&, int first, int last); |
85 void handleDataChange(const QModelIndex& topLeft, const QModelIndex &bottomRight); |
86 void handleDataChange(const QModelIndex& topLeft, const QModelIndex &bottomRight); |