Last change
on this file since 2096 was
2096,
checked in by ldelgass, 14 years ago
|
Normalize line endings, set eol-style to native on *.cpp, *.h files
|
-
Property svn:eol-style set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | /* |
---|
2 | * ---------------------------------------------------------------------- |
---|
3 | * Event.h: user event class for statistics purpose |
---|
4 | * |
---|
5 | * ====================================================================== |
---|
6 | * AUTHOR: Wei Qiao <qiaow@purdue.edu> |
---|
7 | * Purdue Rendering and Perceptualization Lab (PURPL) |
---|
8 | * |
---|
9 | * Copyright (c) 2004-2006 Purdue Research Foundation |
---|
10 | * |
---|
11 | * See the file "license.terms" for information on usage and |
---|
12 | * redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
13 | * ====================================================================== |
---|
14 | */ |
---|
15 | |
---|
16 | #ifndef _EVENT_H_ |
---|
17 | #define _EVENT_H_ |
---|
18 | |
---|
19 | #include <stdio.h> |
---|
20 | #include <fstream> |
---|
21 | |
---|
22 | enum EventType {EVENT_ROTATE, EVENT_MOVE, EVENT_OTHER}; |
---|
23 | |
---|
24 | class Event{ |
---|
25 | |
---|
26 | public: |
---|
27 | int type; |
---|
28 | float parameter[3]; //event parameters: rotate: x,y,z |
---|
29 | // move: x,y,z |
---|
30 | // other: nan |
---|
31 | float msec; //millisecond since the session started |
---|
32 | |
---|
33 | Event(); |
---|
34 | Event(int _type, float _param[3], float _time); |
---|
35 | ~Event(); |
---|
36 | void write(FILE* fd); |
---|
37 | }; |
---|
38 | |
---|
39 | |
---|
40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.