Fork me on GitHub

source: svn/trunk/Utilities/frog/Event_Sim_Vertex.h@ 706

Last change on this file since 706 was 583, checked in by cp3-support, 13 years ago

FROG 3.0

File size: 705 bytes
RevLine 
[583]1#ifndef _FROG_EVENT_SIM_VERTEX_H__
2#define _FROG_EVENT_SIM_VERTEX_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Event_Sim_Vertex : public Base {
9public :
10 float x; float y; float z; int parentTrack_id;
11
12 virtual unsigned int chunkId(){ return 11020;}
13 virtual bool isCompactible(){ return true; }
14
15 Event_Sim_Vertex(){}
16 Event_Sim_Vertex(
17 float x_,float y_, float z_, int parentTrack_id_):
18 x(x_), y(y_), z(z_),parentTrack_id(parentTrack_id_){};
19
20 virtual ByteBuffer writeData(){
21 ByteBuffer toReturn(16);
22 toReturn.putFloat(x);
23 toReturn.putFloat(y);
24 toReturn.putFloat(z);
25 toReturn.putInt(parentTrack_id);
26 return toReturn;
27 }
28};
29
30}//FROG Namespace
31#endif
Note: See TracBrowser for help on using the repository browser.