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:
1000 bytes
|
Line | |
---|
1 | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ |
---|
2 | /* |
---|
3 | * ---------------------------------------------------------------------- |
---|
4 | * Event.cpp: 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 | #include <memory.h> |
---|
17 | |
---|
18 | #include "Event.h" |
---|
19 | |
---|
20 | Event::Event() |
---|
21 | { |
---|
22 | } |
---|
23 | |
---|
24 | Event::~Event() |
---|
25 | { |
---|
26 | } |
---|
27 | |
---|
28 | Event::Event(int _type, float _param[3], float _time) : |
---|
29 | type(_type), |
---|
30 | msec(_time) |
---|
31 | { |
---|
32 | memcpy(parameter, _param, 3*sizeof(float)); |
---|
33 | } |
---|
34 | |
---|
35 | void Event::write(FILE *fd) |
---|
36 | { |
---|
37 | fprintf(fd, "%d %f %f %f %g\n", type, parameter[0], parameter[1], parameter[2], msec); |
---|
38 | } |
---|
39 | |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.