19 #ifndef OST_GFX_ENTITY_DETAIL_HH
20 #define OST_GFX_ENTITY_DETAIL_HH
25 #include <boost/shared_ptr.hpp>
40 namespace ost {
namespace gfx {
namespace impl {
60 operator float* () {
return rgba;}
61 operator const float* ()
const {
return rgba;}
69 atom(a), color(c), radius(r), vdwr(v)
85 bond(b),atom1(ae1),atom2(ae2),radius(r),
86 pp1(ae1 ? ae1->atom.GetPos() : geom::Vec3()),
87 pp2(ae2 ? ae2->atom.GetPos() : geom::Vec3())
141 position(0.0,0.0,0.0),
142 direction(0.0,0.0,1.0),
144 color1(1.0,1.0,1.0,1.0),
145 color2(1.0,1.0,1.0,1.0),
164 unsigned int t,
int i):
165 position(p),direction(d),normal(n),color1(c1),color2(c2),rad(r),type(t),
166 type1(t),type2(t),frac(0.0),running_length(0.0),v0(),v1(),v2(),nflip(false),id(i)
174 unsigned int t,
int i):
175 position(p),direction(d),normal(n),color1(c1),color2(c2),rad(r),type(t),
176 type1(t),type2(t),frac(0.0),running_length(0.0),v0(),v1(),v2(),nflip(false),id(i)