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