| Bsoft 2.0.5 Bernard's software package

model_transform.h
Go to the documentation of this file.
1
9 #include "rwmodel.h"
10 #include "Transform.h"
11 #include <vector>
12
13 // Function prototypes
14 long model_center(Bmodel* model);
15 long model_shift(Bmodel* model, Vector3<double> shift);
16 long models_shift(Bmodel* model, Vector3<double> shift);
17 long model_scale(Bmodel* model, Vector3<double> scale, Vector3<double> origin);
18 long models_scale(Bmodel* model, Vector3<double> scale, Vector3<double> origin);
19 long model_reflect(Bmodel* model, Vector3<double> normal, Vector3<double> origin);
20 long models_reflect(Bmodel* model, Vector3<double> normal, Vector3<double> origin);
21 double model_reflect_and_compare(Bmodel* model, Vector3<double> normal, Vector3<double> origin);
22 long model_rotate(Bmodel* model, Matrix3 mat);
23 long model_rotate(Bmodel* model, Matrix3 mat, Vector3<double> origin);
24 long model_rotate(Bmodel* model, Matrix3 mat, Vector3<double> origin, Vector3<double> shift);
25 long model_rotate(Bmodel* model, View view);
26 long model_rotate(Bmodel* model, View view, Vector3<double> origin, Vector3<double> shift);
27 long model_rotate(Bmodel* model, Transform t);
28 double model_rotate_and_compare(Bmodel* model, Transform t);
29 long model_adjust_for_binning(Bmodel* model, Vector3<long> bin);
30 long model_align_to_guide(Bmodel* model, Bmodel* guide);
31 Transform model_find_transform(Bmodel* model, Bmodel* refmod);
32
model_adjust_for_binning
long model_adjust_for_binning(Bmodel *model, Vector3< long > bin)
A binned model list is converted back to the unbinned version.
Definition: model_transform.cpp:416
model_find_transform
Transform model_find_transform(Bmodel *model, Bmodel *refmod)
A model is fitted to a reference model.
Definition: model_transform.cpp:470
model_reflect_and_compare
double model_reflect_and_compare(Bmodel *model, Vector3< double > normal, Vector3< double > origin)
Copies and reflects the model and compares it with the original.
Definition: model_transform.cpp:192
Matrix3
Definition: Matrix3.h:17
Transform.h
Class for a generalized transform object.
model_reflect
long model_reflect(Bmodel *model, Vector3< double > normal, Vector3< double > origin)
Reflects the model through a mirror plane.
Definition: model_transform.cpp:143
Transform
Definition: Transform.h:24
models_scale
long models_scale(Bmodel *model, Vector3< double > scale, Vector3< double > origin)
Scales a model.
Definition: model_transform.cpp:117
model_shift
long model_shift(Bmodel *model, Vector3< double > shift)
Shifts a model.
Definition: model_transform.cpp:43
models_reflect
long models_reflect(Bmodel *model, Vector3< double > normal, Vector3< double > origin)
Reflects the model through a mirror plane.
Definition: model_transform.cpp:171
model_rotate
long model_rotate(Bmodel *model, Matrix3 mat)
Rotates the model.
Definition: model_transform.cpp:238
model
Bmodel * model
Definition: bshow.cpp:32
rwmodel.h
Header file for reading and writing atomic model files.
model_rotate_and_compare
double model_rotate_and_compare(Bmodel *model, Transform t)
Copies and rotates the model and compares it with the original.
Definition: model_transform.cpp:369
Vector3< double >
View
Definition: View.h:26
model_center
long model_center(Bmodel *model)
Shifts one models to its center of mass.
Definition: model_transform.cpp:27
model_scale
long model_scale(Bmodel *model, Vector3< double > scale, Vector3< double > origin)
Scales a model.
Definition: model_transform.cpp:87
Bmodel
Definition: rwmodel.h:119
model_align_to_guide
long model_align_to_guide(Bmodel *model, Bmodel *guide)
A model is oriented to coincide with a guide model.
Definition: model_transform.cpp:443
models_shift
long models_shift(Bmodel *model, Vector3< double > shift)
Shifts all models.
Definition: model_transform.cpp:66