-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCBase4618.h
48 lines (41 loc) · 1.1 KB
/
CBase4618.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
/**
* @file CBase4618.h
* @brief Declaration of the CBase4618 class.
*
* This file contains the declaration of the CBase4618 base class for creating apps.
*
* @author Faniel Yemane
*/
#pragma once
#include "CControl.h"
/**
* @class CBase4618
* @brief A base class for a simple graphics application.
*
* This class provides a basic framework for a graphics application, including a control
* object for user input and a canvas for drawing.
*/
class CBase4618 {
protected:
CControl _control; ///< The control object for user input.
cv::Mat _canvas; ///< The canvas for drawing.
public:
/**
* @brief Destructor for CBase4618.
*/
virtual ~CBase4618() {}
/**
* @brief Pure virtual function for updating the application state.
*/
virtual void update() = 0;
/**
* @brief Pure virtual function for rendering the application.
*/
virtual void draw() = 0;
/**
* @brief Runs the graphics application.
*
* This function initializes the application and enters the main loop.
*/
void run();
};