19 #ifndef OST_COORD_GROUP_HH
20 #define OST_COORD_GROUP_HH
27 #include <boost/shared_array.hpp>
36 namespace ost {
namespace mol {
107 operator bool()
const;
122 void CheckValidity()
const;
Three dimensional vector class, using Real precision.
coordinate group, for trajectories and such
void Capture()
store current atom positions in new frame
void AddFrames(const CoordGroupHandle &cg)
void SetDelta(float d)
set time between each frame in ps
void AddFrame(const geom::Vec3List &clist, const geom::Vec3 &cell_size, const geom::Vec3 &cell_angles)
uint GetAtomCount() const
number of atoms per frame
geom::Vec3 GetAtomPos(uint frame, AtomHandle atom) const
retrieve an indidivial atom position in the given frame
CoordFramePtr GetFrame(uint frame) const
void SetFrameCellSize(uint frame, const geom::Vec3 &size)
set cell size for the given frame
void CaptureInto(int pos)
CoordFrame GetFrame2(uint frame)
CoordGroupHandle(CoordSourcePtr source)
used internally
void SetFramePositions(uint frame, const geom::Vec3List &clist)
assign positions to the given frame - order and count must match initial atomlist
void AddFrame(const geom::Vec3List &clist)
add frame
void Capture(uint frame)
store current atom positions in given frame (must exist)
EntityHandle GetEntity() const
return trajectories entity handle
geom::Vec3List GetFramePositions(uint frame)
get the positions of all the atoms in the given frame
float GetDelta() const
time in ps between frames, default 0.0
void SetStartTime(float t)
set start time in ps
float GetStartTime() const
start time in ps, default 0.0
uint GetFrameCount() const
number of frames
void CopyFrame(uint frame)
copy atom positions of given frame to stored atoms in entity
void ApplyTransform(const geom::Transform &tf)
apply in-place transform to each coordinate in each frame
bool IsValid() const
check for handle validity
CoordGroupHandle Filter(const EntityView &selected, int first=0, int last=-1, int stride=1) const
return a filtered coord group, containing only the atoms in the view
void SetAtomPos(uint frame, AtomHandle atom, const geom::Vec3 &pos)
set an indidivial atom position in the given frame
AtomHandleList GetAtomList() const
CoordGroupHandle()
create empty, invalid handle
#define DLLEXPORT_OST_MOL
ImageStateConstModOPAlgorithm< TransformFnc > Transform
std::vector< AtomHandle > AtomHandleList
DLLEXPORT_OST_MOL CoordGroupHandle CreateCoordGroup(const AtomHandleList &atoms)
boost::shared_ptr< CoordSource > CoordSourcePtr
boost::shared_ptr< CoordFrame > CoordFramePtr