Rev | Line | |
---|
[583] | 1 | #ifndef _FROG_EVENT_SIM_VERTEX_H__
|
---|
| 2 | #define _FROG_EVENT_SIM_VERTEX_H__
|
---|
| 3 |
|
---|
| 4 | #include "Base.h"
|
---|
| 5 |
|
---|
| 6 | namespace FROG{
|
---|
| 7 |
|
---|
| 8 | class Event_Sim_Vertex : public Base {
|
---|
| 9 | public :
|
---|
| 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.