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)
std::vector< AtomEntry > AtomEntryList
std::vector< NodeEntryList > NodeEntryListList
float GetBlue() const
retrieve blue
std::vector< BondEntry > BondEntryList
std::vector< TraceProfileEntry > TraceProfile
std::vector< long > orphan_atom_list
RGBAColor & operator=(const Color &c)
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)
BondEntry(const mol::BondHandle &b, float r, AtomEntry *ae1, AtomEntry *ae2)
#define DLLEXPORT_OST_GFX
std::vector< SplineEntryList > SplineEntryListList
void DoBlurSnapshot(BondEntryList &bl)
boost::shared_ptr< NodeEntryListList > NodeEntryListListPtr
boost::shared_ptr< GfxView > GfxViewPtr
AtomEntry(const mol::AtomHandle &a, float r, float v, const Color &c)
std::vector< SplineEntry > SplineEntryList
std::vector< NodeEntry > NodeEntryList
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)
float GetRed() const
retrieve red
float GetAlpha() const
retrieve alpha
Color DLLEXPORT_OST_GFX RGBA(float r, float g, float b, float a)
RGBA color spec from floats (0.0-1.0)
TraceProfileEntry(const geom::Vec3 &v_, const geom::Vec3 &n_)
Three dimensional vector class, using Real precision.
float GetGreen() const
retrieve green
ImageStateConstModIPAlgorithm< ClearFnc > Clear
std::map< long, AtomEntry > AtomEntryMap
void DoRenderBlur(BondEntryList &bl, float bf1, float bf2)
RGBAColor(const Color &c)
RGBAColor(float r, float g, float b, float a=1.0)