source: trunk/packages/vizservers/nanovis/Event.h @ 2831

Last change on this file since 2831 was 2798, checked in by ldelgass, 12 years ago

Add emacs mode magic line in preparation for indentation cleanup

  • Property svn:eol-style set to native
File size: 1.1 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-2006  Purdue Research Foundation
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
23enum EventType {EVENT_ROTATE, EVENT_MOVE, EVENT_OTHER};
24
25class Event{
26
27public:
28   int type;
29   float parameter[3];  //event parameters: rotate: x,y,z 
30                        //                  move: x,y,z
31                        //                  other: nan
32   float msec;          //millisecond since the session started
33       
34   Event();
35   Event(int _type, float _param[3], float _time);
36   ~Event();
37   void write(FILE* fd);
38};
39
40
41#endif
Note: See TracBrowser for help on using the repository browser.