-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathiphone.h~
113 lines (99 loc) · 3.05 KB
/
iphone.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#ifndef IPHONE_H
#define IPHONE_H
/*!\file iphone.h
*
* \brief Contains Iphone image and location.
*
* \author Chad Martin
*
* A Iphone image and location of where to paint.
*/
#include <QImage>
#include <QRect>
/*! \brief A Iphone image and location of where to paint.*/
class Iphone
{
// Defining Public Functions (Methods)
public:
/*! \brief Class Constructor - loads image, moves to specified location.
* Precondition: A new instance of game was created.
* Postcondition: A new Iphone image is loaded and ready to be painted.*/
Iphone();
/*! \brief Class Destructor - Does Nothing*/
~Iphone();
/*! \brief Sets the location of the Iphone.
* Precondition: A Iphone object was created.
* Postcondition: Location is set for the Iphone.*/
void setPosition();
/*! \brief Returns rect of Iphone.
* Precondition: Instance of Game called a paint event.
* Postcondition: The Qrect of the Iphone is returned.
* \return The rect of Iphone.*/
QRect getRect();
/*! \brief Returns image of Iphone.
* Precondition: Instance of Game called a paint event.
* Postcondition: The image of the Iphone will be painted on the screen.
* \return Image of Iphone.*/
QImage & getImage();
// Defining Protected Variables
protected:
/*! \brief The QImage of Iphone.*/
QImage image;
/*! \brief The QRect of Iphone.*/
QRect rect;
};
/** @mainpage package templates
*
* @authors Documentation Task Force
*
* @section intro Introduction
* This package provides code templates for use by GLAST developers.
* All header files for external access are located in the templates directory,
* as it is customary to put external public header files in the packageName
* directory. Header files that are not meant for external access reside in
* the src directory. Source files are located in the src directory. Files
* related to loading sharable libraries are located in the src/Dll directory.
* There are 3 examples:
*
* - User-Defined generic C++ class
* -# templates/ClassTemplate.h
* -# src/ClassTemplate.cxx
* - User-Defined Gaudi Algorithm
* -# src/ExampleAlg.cxx
* -# src/Dll/templates_dll.cxx
* -# src/Dll/templates_load.cxx
* - User-Defined Gaudi Service
* -# templates/IExampleSvc.h
* -# templates/ExampleSvc.h
* -# src/ExampleSvc.cxx
* -# src/Dll/templates_dll.cxx
* -# src/Dll/templates_load.cxx
*
*
* Also note the existence of the following directories:
* - cmt
* -# Contains the requirements file
* - doc
* -# Contains the release.notes file
*
*
* As you prepare to develop code for GLAST SAS, please be sure you are aware
* of our current
* <A HREF="http://www-glast.slac.stanford.edu/software/CodeHowTo/codeStandards.html"> Coding Standards </A>
*
*
* If using the code in this package as an example - please modify the comments
* as appropriate for your own specific code.
*
* <hr>
* @section notes release.notes
* release.notes
* <hr>
* @section requirements requirements
* @verbinclude requirements
* <hr>
* @todo [optionally include text about more work to be done]
* @todo Give each todo item its own line
*
*/
#endif