-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCameraControlButton.h
39 lines (28 loc) · 1.03 KB
/
CameraControlButton.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
/*
* CameraControlButton.h
* Created by Zachary Ferguson
* Header for the CameraControlButton class, a child class of the Fl_Button
* class for setting the camera to a preset position.
*/
#ifndef CAMERACONTROLBUTTON_H
#define CAMERACONTROLBUTTON_H
#include <FL/Fl_Button.h>
enum CameraPosition { RIGHT, LEFT, FRONT, BACK, ABOVE, BELOW };
class CameraControlButton : public Fl_Button
{
private:
/* This CameraControlButton's viewing position value. */
CameraPosition position;
public:
/* Constructor for creating a new CameraControlGroup. */
/* Requires the x,y coordinates of the new CameraControlGroup. */
CameraControlButton(int x, int y, int h, int w, const char* label,
CameraPosition position);
/* Destructor for this CameraControlGroup. */
virtual ~CameraControlButton();
/* Sets the current camera position to the given one. */
void setCameraPosition(CameraPosition position);
/* Returns the current camera position for this CameraControlButton. */
CameraPosition getCameraPosition();
};
#endif