Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F10881745
Prim_Cube.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
Prim_Cube.h
View Options
#ifndef _FROG_Prim_CUBE_H__
#define _FROG_Prim_CUBE_H__
#include
"Base.h"
namespace
FROG
{
class
Prim_Cube
:
public
BaseColl_Id
{
public
:
float
PosX
;
float
PosY
;
float
PosZ
;
float
WidthX
;
float
WidthY
;
float
WidthZ
;
float
LengthX
;
float
LengthY
;
float
LengthZ
;
float
ThickX
;
float
ThickY
;
float
ThickZ
;
virtual
unsigned
int
chunkId
(){
return
41020
;}
virtual
bool
isCompactible
(){
return
true
;
}
Prim_Cube
(){}
Prim_Cube
(
unsigned
int
detId
,
float
posX
,
float
posY
,
float
posZ
,
float
widthX
,
float
widthY
,
float
widthZ
,
float
lengthX
,
float
lengthY
,
float
lengthZ
,
float
thickX
,
float
thickY
,
float
thickZ
)
:
BaseColl_Id
(
detId
),
PosX
(
posX
),
PosY
(
posY
),
PosZ
(
posZ
),
WidthX
(
widthX
),
WidthY
(
widthY
),
WidthZ
(
widthZ
),
LengthX
(
lengthX
),
LengthY
(
lengthY
),
LengthZ
(
lengthZ
),
ThickX
(
thickX
),
ThickY
(
thickY
),
ThickZ
(
thickZ
){}
virtual
ByteBuffer
writeData
(){
ByteBuffer
toReturn
(
52
);
toReturn
.
putUInt
(
detId_
);
toReturn
.
putFloat
(
PosX
);
toReturn
.
putFloat
(
PosY
);
toReturn
.
putFloat
(
PosZ
);
toReturn
.
putFloat
(
WidthX
);
toReturn
.
putFloat
(
WidthY
);
toReturn
.
putFloat
(
WidthZ
);
toReturn
.
putFloat
(
LengthX
);
toReturn
.
putFloat
(
LengthY
);
toReturn
.
putFloat
(
LengthZ
);
toReturn
.
putFloat
(
ThickX
);
toReturn
.
putFloat
(
ThickY
);
toReturn
.
putFloat
(
ThickZ
);
return
toReturn
;
}
};
}
//FROG Namespace
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, May 3, 6:47 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4983138
Default Alt Text
Prim_Cube.h (1 KB)
Attached To
rFROGSVN frogsvn
Event Timeline
Log In to Comment