Bsoft  2.1.0
Bernard's software package
mol_transform.h
Go to the documentation of this file.
1 
9 #include "Matrix3.h"
10 #include "Transform.h"
11 #include "View.h"
12 #include "rwmolecule.h"
13 
14 // Function prototypes
15 int molgroup_coor_shift(Bmolgroup* molgroup, Vector3<double> shift);
17 int molgroup_coor_rotate(Bmolgroup* molgroup, Transform t);
25 int molgroup_coor_invert(Bmolgroup* molgroup, Vector3<double> point);
26 int molgroup_resolve_pbc(Bmolgroup* molgroup);
30  Matrix3 mat, Vector3<double> shift);
34 
molgroup_rotate_from_view
Bmolgroup * molgroup_rotate_from_view(Bmolgroup *molgroup, View view, Vector3< double > origin, Vector3< double > trans)
Rotates a molecule group from a specified view and translates it afterwards.
Definition: mol_transform.cpp:203
molgroup_shift_to_center_of_mass
int molgroup_shift_to_center_of_mass(Bmolgroup *molgroup)
Translates a set of coordinates to the center of mass.
Definition: mol_transform.cpp:625
molgroup_coor_invert
int molgroup_coor_invert(Bmolgroup *molgroup, Vector3< double > point)
Inverts the coordinates of a molecule through a given point.
Definition: mol_transform.cpp:419
molgroup_rotate_to_view
Bmolgroup * molgroup_rotate_to_view(Bmolgroup *molgroup, View view, Vector3< double > origin, Vector3< double > trans)
Rotates a molecule group to a specified view and translates it afterwards.
Definition: mol_transform.cpp:180
Vector3< double >
Matrix3.h
3x3 Matrix manipulation functions
View
Definition: View.h:26
molgroup_place_at_coordinates
int molgroup_place_at_coordinates(Bmolgroup *molgroup, Vector3< double > location)
Translates a set of coordinates to a defined center-of-mass.
Definition: mol_transform.cpp:666
mol_coor_shift
int mol_coor_shift(Bmolecule *mol, Vector3< double > shift)
Translates a molecule.
Definition: mol_transform.cpp:56
molgroup_coor_rotate
int molgroup_coor_rotate(Bmolgroup *molgroup, Transform t)
Rotates and translates a molecule group.
Definition: mol_transform.cpp:87
mol_rotate_to_view
Bmolecule * mol_rotate_to_view(Bmolecule *mol, View view, Vector3< double > origin, Vector3< double > trans)
Rotates a molecule to a specified view and translates it afterwards.
Definition: mol_transform.cpp:258
mol_coor_rotate
int mol_coor_rotate(Bmolecule *mol, Transform t)
Rotates and translates a molecule.
Definition: mol_transform.cpp:131
Matrix3
Definition: Matrix3.h:18
mol_shift_to_center_of_mass
int mol_shift_to_center_of_mass(Bmolecule *mol)
Translates a set of coordinates to the center of mass.
Definition: mol_transform.cpp:645
rwmolecule.h
Header file for reading reflection files.
Bmolecule
Definition: rwmolecule.h:107
molgroup_coor_shift
int molgroup_coor_shift(Bmolgroup *molgroup, Vector3< double > shift)
Translates a molecule group.
Definition: mol_transform.cpp:28
mol_rotate_from_view
Bmolecule * mol_rotate_from_view(Bmolecule *mol, View view, Vector3< double > origin, Vector3< double > trans)
Rotates a molecule from a specified view and translates it afterwards.
Definition: mol_transform.cpp:281
Transform.h
Class for a generalized transform object.
View.h
View object.
molgroup_coor_shift_rotate_PBC
int molgroup_coor_shift_rotate_PBC(Bmolgroup *molgroup, Vector3< double > origin, Matrix3 mat, Vector3< double > shift)
Translates and rotates a molecule within a periodic box.
Definition: mol_transform.cpp:581
molgroup_coor_shift_PBC
int molgroup_coor_shift_PBC(Bmolgroup *molgroup, Vector3< double > shift)
Translates a molecule within a periodic box.
Definition: mol_transform.cpp:544
Bmolgroup
Definition: rwmolecule.h:170
molgroup_pack_in_periodic_box
int molgroup_pack_in_periodic_box(Bmolgroup *molgroup)
Distributes coordinates across periodic box boundaries.
Definition: mol_transform.cpp:513
Transform
Definition: Transform.h:24
mol_coor_transform
int mol_coor_transform(Bmolecule *mol, Transform t)
Rotates and translates a molecule.
Definition: mol_transform.cpp:378
molgroup_resolve_pbc
int molgroup_resolve_pbc(Bmolgroup *molgroup)
Recombines coordinates split across periodic box boundaries.
Definition: mol_transform.cpp:450
molgroup_coor_transform
int molgroup_coor_transform(Bmolgroup *molgroup, Transform t)
Rotates and translates a molecule group.
Definition: mol_transform.cpp:332