1 |
jakw |
1 |
#ifndef PROJECTOR_H
|
|
|
2 |
#define PROJECTOR_H
|
|
|
3 |
|
|
|
4 |
#include <iostream>
|
|
|
5 |
#include <vector>
|
|
|
6 |
|
|
|
7 |
// Abstract Projector base class
|
|
|
8 |
class Projector {
|
|
|
9 |
public:
|
|
|
10 |
// Interface function
|
|
|
11 |
Projector(){}
|
|
|
12 |
// Define preset pattern sequence
|
|
|
13 |
virtual void setPattern(unsigned int patternNumber, const unsigned char *tex, unsigned int texWidth, unsigned int texHeight) = 0;
|
|
|
14 |
virtual void displayPattern(unsigned int patternNumber) = 0;
|
|
|
15 |
// Upload and display pattern on the fly
|
|
|
16 |
virtual void displayTexture(const unsigned char *tex, unsigned int width, unsigned int height) = 0;
|
|
|
17 |
// Monochrome color display
|
|
|
18 |
virtual void displayBlack() = 0;
|
|
|
19 |
virtual void displayWhite() = 0;
|
|
|
20 |
virtual void getScreenRes(unsigned int *nx, unsigned int *ny) = 0;
|
|
|
21 |
virtual ~Projector(){}
|
|
|
22 |
};
|
|
|
23 |
|
|
|
24 |
#endif
|