-
-
Notifications
You must be signed in to change notification settings - Fork 557
/
Copy pathheightmapgriddrawer.h
42 lines (31 loc) · 902 Bytes
/
heightmapgriddrawer.h
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
// This file is a part of "grblControl" application.
// Copyright 2015 Hayrullin Denis Ravilevich
#ifndef HEIGHTMAPGRIDDRAWER_H
#define HEIGHTMAPGRIDDRAWER_H
#include <QObject>
#include <QAbstractTableModel>
#include "shaderdrawable.h"
class HeightMapGridDrawer : public ShaderDrawable
{
public:
HeightMapGridDrawer();
QPointF gridSize() const;
void setGridSize(const QPointF &gridSize);
QRectF borderRect() const;
void setBorderRect(const QRectF &borderRect);
double zTop() const;
void setZTop(double zTop);
double zBottom() const;
void setZBottom(double zBottom);
QAbstractTableModel *model() const;
void setModel(QAbstractTableModel *model);
protected:
bool updateData();
private:
QPointF m_gridSize;
QRectF m_borderRect;
double m_zTop;
double m_zBottom;
QAbstractTableModel *m_model;
};
#endif // HEIGHTMAPGRIDDRAWER_H