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)
Three dimensional vector class, using Real precision.
float GetRed() const
retrieve red
float GetAlpha() const
retrieve alpha
float GetBlue() const
retrieve blue
float GetGreen() const
retrieve green
void AddBond(const mol::BondHandle &bv)
void AddAtom(const mol::AtomView &av)
std::vector< long > orphan_atom_list
static SplineEntryList Generate(const SplineEntryList &entry_list, int nsub, uint color_blend_mode=0)
#define DLLEXPORT_OST_GFX
boost::shared_ptr< NodeEntryListList > NodeEntryListListPtr
std::vector< BondEntry > BondEntryList
std::vector< NodeEntry > NodeEntryList
std::map< long, AtomEntry > AtomEntryMap
void DoRenderBlur(BondEntryList &bl, float bf1, float bf2)
std::vector< TraceProfileEntry > TraceProfile
boost::shared_ptr< GfxView > GfxViewPtr
std::vector< AtomEntry > AtomEntryList
std::vector< NodeEntryList > NodeEntryListList
std::vector< SplineEntry > SplineEntryList
std::vector< SplineEntryList > SplineEntryListList
void DoBlurSnapshot(BondEntryList &bl)
Color DLLEXPORT_OST_GFX RGBA(float r, float g, float b, float a)
RGBA color spec from floats (0.0-1.0)
AtomEntry(const mol::AtomHandle &a, float r, float v, const Color &c)
BondEntry(const mol::BondHandle &b, float r, AtomEntry *ae1, AtomEntry *ae2)
RGBAColor(float r, float g, float b, float a=1.0)
RGBAColor(const Color &c)
RGBAColor & operator=(const Color &c)
SplineEntry(const geom::Vec3 &p, const geom::Vec3 &d, const geom::Vec3 &n, float r, const RGBAColor &c1, const RGBAColor &c2, unsigned int t, int i)
SplineEntry(const geom::Vec3 &p, const geom::Vec3 &d, const geom::Vec3 &n, float r, const Color &c1, const Color &c2, unsigned int t, int i)
TraceProfileEntry(const geom::Vec3 &v_, const geom::Vec3 &n_)