-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathETCShapes.h
74 lines (47 loc) · 1014 Bytes
/
ETCShapes.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#pragma once
#include "Material.h"
#include "VectorN.h"
#include <GL/glut.h>
#include "SolidShape3D.h"
#include "SolidSphere.h"
class Line {
public:
Line() { point1[0] = 0; point1[1] = 0; point2[0] = 0; point2[1] = 0; }
Line(const VectorN<float, 2> p1, const VectorN<float,2> p2);
void setPoints(float* p1, float* p2);
void draw();
protected:
VectorN<float, 2> point1;
VectorN<float, 2> point2;
//Material mtl;
};
class Arrow :public SolidShape3D {
public:
Arrow();
Arrow(VectorN<float, 3> c);
VectorN<float, 3> getCenter();
void setAngle(int a);
int getAngle();
void draw() const;
protected:
VectorN<float, 3> center;
int angle;
};
class Isvisited_Remove {
public:
Isvisited_Remove();
Isvisited_Remove(bool r);
void setvisited(bool r);
bool operator()(SolidSphere sph);
private:
bool isvisited_r;
};
class Isvisited_Drop{
public:
Isvisited_Drop();
Isvisited_Drop(bool r);
void setvisited(bool r);
bool operator()(SolidSphere sph);
private:
bool isvisited_d;
};