-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathitem.h
38 lines (30 loc) · 990 Bytes
/
item.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
/**
* Copyright 2017, Barashev Ivan - All Rights Reserved.
* Website: www.aivanf.com
* This is proprietary software. Unauthorized commercial use of this code via any medium is strictly prohibited.
* When use the code, you must give appropriate credit, provide a link to this license, and indicate if changes were made.
* The work is provided "as is". You may not hold the author liable.
*/
#ifndef ITEM_H
#define ITEM_H
#include "model.h"
class Viewer;
/// Item is a scene object, it is linked with a model and has some own geometric attributes.
class Item {
public:
Item();
Item(Model* m);
Item(Model* m, float x, float y, float z);
Model *mdl;
/// My position
float mx, my, mz;
/// Rotation
int rx, ry, rz;
/// True position - transformed My
float tx, ty, tz;
/// ID
int id;
void drawUsual(QMatrix4x4 mod, QPainter &painter, Viewer *v);
void drawZbuf(QMatrix4x4 mod, QPainter &painter, Viewer *v);
};
#endif // ITEM_H