19 #ifndef OST_MOL_COORD_SOURCE_HH
20 #define OST_MOL_COORD_SOURCE_HH
25 #include <boost/shared_ptr.hpp>
35 namespace ost {
namespace mol {
86 virtual void AddFrame(
const std::vector<geom::Vec3>& coords) = 0;
88 virtual void InsertFrame(
int pos,
const std::vector<geom::Vec3>& coords) = 0;
98 std::map<long,uint> atom_dict_;
99 float delta_,start_time_;
Three dimensional vector class, using Real precision.
CoordSourcePtr Extract(int start=0, int stop=-1, int step=1)
void SetMutable(bool flag)
geom::Vec3 GetAtomPos(uint frame, AtomHandle atom) const
void SetFrameCellSize(uint frame, const geom::Vec3 &size)
void CaptureInto(int pos)
void SetFrameDelta(float d)
virtual void AddFrame(const std::vector< geom::Vec3 > &coords)=0
void SetFramePositions(uint frame, const std::vector< geom::Vec3 > &clist)
CoordSource(const AtomHandleList &atoms)
EntityHandle GetEntity() const
float GetFrameDelta() const
virtual void InsertFrame(int pos, const std::vector< geom::Vec3 > &coords)=0
void SetStartTime(float t)
float GetStartTime() const
void CopyFrame(uint frame)
assign the coordinates in the given frame to the atoms
const AtomHandleList & GetAtomList() const
void ApplyTransform(const geom::Transform &tf)
virtual void AddFrame(const std::vector< geom::Vec3 > &coords, const geom::Vec3 &cell_size, const geom::Vec3 &cell_angles)=0
void SetAtomPos(uint frame, AtomHandle atom, const geom::Vec3 &pos)
virtual uint GetFrameCount() const =0
virtual CoordFramePtr GetFrame(uint frame_id) const =0
#define DLLEXPORT_OST_MOL
ImageStateConstModOPAlgorithm< TransformFnc > Transform
std::vector< AtomHandle > AtomHandleList
boost::shared_ptr< CoordSource > CoordSourcePtr
boost::shared_ptr< CoordFrame > CoordFramePtr