-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAssignment.h
36 lines (24 loc) · 849 Bytes
/
Assignment.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
#ifndef ASSIGNMENT_H
#define ASSIGNMENT_H
#include <string>
#include <sstream>
#include "chai3d.h"
using namespace chai3d;
class Assignment
{
public:
Assignment() : m_isInitialized(false) { }
virtual ~Assignment() { }
virtual std::string getName() const = 0;
virtual void initialize(chai3d:: cWorld* world, cCamera* camera, GLFWwindow*) = 0;
virtual void updateGraphics() = 0;
virtual void updateHaptics(cGenericHapticDevice* hapticDevice, double timeStep, double totalTime) = 0;
volatile inline bool isInitialized() const { return m_isInitialized; }
virtual void setInitialized(bool value) { m_isInitialized = value; }
virtual void changeMode(size_t) = 0;
virtual void setFileName() = 0;
cVector3d hapticDevicePosition;
protected:
volatile bool m_isInitialized;
};
#endif // ASSIGNMENT_H