Fork me on GitHub

source: svn/trunk/Utilities/frog/Prim_Line.h@ 996

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

removed old FROG utility

File size: 880 bytes
Line 
1#ifndef _FROG_Prim_LINE_H__
2#define _FROG_Prim_LINE_H__
3
4#include "Base.h"
5
6namespace FROG{
7
8class Prim_Line : public BaseColl_Id {
9public :
10 float P1X; float P1Y; float P1Z;
11 float P2X; float P2Y; float P2Z;
12
13 virtual unsigned int chunkId(){ return 43020;}
14 virtual bool isCompactible(){ return true; }
15
16 Prim_Line(){}
17 Prim_Line(
18 unsigned int detId,
19 float p1X, float p1Y, float p1Z,
20 float p2X, float p2Y, float p2Z):
21 BaseColl_Id(detId),
22 P1X(p1X), P1Y(p1Y), P1Z(p1Z),
23 P2X(p2X), P2Y(p2Y), P2Z(p2Z){}
24
25 virtual ByteBuffer writeData(){
26 ByteBuffer toReturn(28);
27 toReturn.putUInt(detId_);
28 toReturn.putFloat(P1X);
29 toReturn.putFloat(P1Y);
30 toReturn.putFloat(P1Z);
31 toReturn.putFloat(P2X);
32 toReturn.putFloat(P2Y);
33 toReturn.putFloat(P2Z);
34 return toReturn;
35 }
36};
37
38}//FROG Namespace
39#endif
40
Note: See TracBrowser for help on using the repository browser.