#include <symmetry.h>
Inheritance diagram for EMAN::Icosahedral2Sym:
Public Member Functions | |
Icosahedral2Sym () | |
Constructor calls PlatonicSym::init. | |
virtual | ~Icosahedral2Sym () |
virtual string | get_name () const |
Return IcosahedralSym::NAME. | |
virtual string | get_desc () const |
Get a description. | |
virtual int | get_max_csym () const |
Gets the maximum symmetry of this object. | |
virtual Transform | get_sym (const int n) const |
This function provides access to the unique rotational symmetries of an icosahedron. | |
virtual int | get_nsym () const |
Gets the total number of unique roational symmetry operations associated with this symmetry For icosahedral symmetry, this is 60. | |
virtual float | get_az_alignment_offset () const |
Get the azimuth alignment offset required to ensure that orientations align correctly with symmetric axes of the icosahedron. | |
Static Public Member Functions | |
static Symmetry3D * | NEW () |
Factory support function NEW. | |
Static Public Attributes | |
static const string | NAME = "icos2" |
The name of this class - used to access it from factories etc. Should be "icos2". | |
Private Member Functions | |
Icosahedral2Sym (const Icosahedral2Sym &) | |
Disallow copy construction. | |
Icosahedral2Sym & | operator= (const Icosahedral2Sym &) |
Disallow assignment. |
Definition at line 919 of file symmetry.h.
EMAN::Icosahedral2Sym::Icosahedral2Sym | ( | ) | [inline] |
Constructor calls PlatonicSym::init.
Definition at line 924 of file symmetry.h.
Referenced by NEW().
virtual EMAN::Icosahedral2Sym::~Icosahedral2Sym | ( | ) | [inline, virtual] |
EMAN::Icosahedral2Sym::Icosahedral2Sym | ( | const Icosahedral2Sym & | ) | [private] |
Disallow copy construction.
float Icosahedral2Sym::get_az_alignment_offset | ( | ) | const [virtual] |
Get the azimuth alignment offset required to ensure that orientations align correctly with symmetric axes of the icosahedron.
This offset is directly related to the way the symmetric operations are generated by get_sym. All orientations generated as a result of using the delimiters supplied by this class should by offset by this azimuth to ensure proper alignment with tetrahedral objects in EMAN2
Reimplemented from EMAN::Symmetry3D.
Definition at line 1833 of file symmetry.cpp.
01833 { return 234.0; } // This offset positions a 3 fold axis on the positive x axis (??? copied from IcosahedralSym)
virtual string EMAN::Icosahedral2Sym::get_desc | ( | ) | const [inline, virtual] |
Get a description.
Implements EMAN::FactoryBase.
Definition at line 943 of file symmetry.h.
virtual int EMAN::Icosahedral2Sym::get_max_csym | ( | ) | const [inline, virtual] |
Gets the maximum symmetry of this object.
This is used by OrientationGenerators, and is probably not something a general user would utilize.
Implements EMAN::Symmetry3D.
Definition at line 949 of file symmetry.h.
virtual string EMAN::Icosahedral2Sym::get_name | ( | ) | const [inline, virtual] |
Return IcosahedralSym::NAME.
Implements EMAN::FactoryBase.
Definition at line 938 of file symmetry.h.
References NAME.
00938 { return NAME; };
virtual int EMAN::Icosahedral2Sym::get_nsym | ( | ) | const [inline, virtual] |
Gets the total number of unique roational symmetry operations associated with this symmetry For icosahedral symmetry, this is 60.
Implements EMAN::Symmetry3D.
Definition at line 963 of file symmetry.h.
Transform Icosahedral2Sym::get_sym | ( | const int | n | ) | const [virtual] |
This function provides access to the unique rotational symmetries of an icosahedron.
We have placed the icosahedral symmetry group with a face along the z-axis. In all, there are 60 (accessed by get_nysm) unique rotational symmetric operations for the icosahedron.
n | the symmetric operation number. |
Implements EMAN::Symmetry3D.
Definition at line 1835 of file symmetry.cpp.
References matrix().
01836 { 01837 static float matrices[60*9] = { 01838 1, 0, 0, 0, 1, 0, 0, 0, 1, 01839 0.30902, -0.80902, 0.5, 0.80902, 0.5, 0.30902, -0.5, 0.30902, 0.80902, 01840 -0.80902, -0.5, 0.30902, 0.5, -0.30902, 0.80902, -0.30902, 0.80902, 0.5, 01841 -0.80902, 0.5, -0.30902, -0.5, -0.30902, 0.80902, 0.30902, 0.80902, 0.5, 01842 0.30902, 0.80902, -0.5, -0.80902, 0.5, 0.30902, 0.5, 0.30902, 0.80902, 01843 -1, 0, 0, 0, -1, 0, 0, 0, 1, 01844 -0.30902, -0.80902, 0.5, 0.80902, -0.5, -0.30902, 0.5, 0.30902, 0.80902, 01845 0.30902, 0.80902, 0.5, -0.80902, 0.5, -0.30902, -0.5, -0.30902, 0.80902, 01846 -0.30902, 0.80902, 0.5, -0.80902, -0.5, 0.30902, 0.5, -0.30902, 0.80902, 01847 -0.5, 0.30902, 0.80902, 0.30902, -0.80902, 0.5, 0.80902, 0.5, 0.30902, 01848 0.5, -0.30902, 0.80902, -0.30902, 0.80902, 0.5, -0.80902, -0.5, 0.30902, 01849 0.80902, 0.5, 0.30902, -0.5, 0.30902, 0.80902, 0.30902, -0.80902, 0.5, 01850 0.80902, -0.5, -0.30902, 0.5, 0.30902, 0.80902, -0.30902, -0.80902, 0.5, 01851 0.5, 0.30902, -0.80902, 0.30902, 0.80902, 0.5, 0.80902, -0.5, 0.30902, 01852 -0.5, -0.30902, -0.80902, -0.30902, -0.80902, 0.5, -0.80902, 0.5, 0.30902, 01853 -0.30902, -0.80902, -0.5, 0.80902, -0.5, 0.30902, -0.5, -0.30902, 0.80902, 01854 0.30902, -0.80902, -0.5, 0.80902, 0.5, -0.30902, 0.5, -0.30902, 0.80902, 01855 -0.30902, 0.80902, -0.5, -0.80902, -0.5, -0.30902, -0.5, 0.30902, 0.80902, 01856 0.5, -0.30902, -0.80902, -0.30902, 0.80902, -0.5, 0.80902, 0.5, 0.30902, 01857 -0.5, 0.30902, -0.80902, 0.30902, -0.80902, -0.5, -0.80902, -0.5, 0.30902, 01858 -0.80902, -0.5, -0.30902, 0.5, -0.30902, -0.80902, 0.30902, -0.80902, 0.5, 01859 0.80902, 0.5, -0.30902, -0.5, 0.30902, -0.80902, -0.30902, 0.80902, 0.5, 01860 0.80902, -0.5, 0.30902, 0.5, 0.30902, -0.80902, 0.30902, 0.80902, 0.5, 01861 -0.80902, 0.5, 0.30902, -0.5, -0.30902, -0.80902, -0.30902, -0.80902, 0.5, 01862 -0.5, -0.30902, 0.80902, -0.30902, -0.80902, -0.5, 0.80902, -0.5, 0.30902, 01863 0.5, 0.30902, 0.80902, 0.30902, 0.80902, -0.5, -0.80902, 0.5, 0.30902, 01864 0, 0, 1, 1, 0, 0, 0, 1, 0, 01865 0, 1, 0, 0, 0, 1, 1, 0, 0, 01866 0, -1, 0, 0, 0, 1, -1, 0, 0, 01867 0, 0, -1, -1, 0, 0, 0, 1, 0, 01868 0, -1, 0, 0, 0, -1, 1, 0, 0, 01869 0, 1, 0, 0, 0, -1, -1, 0, 0, 01870 -0.80902, -0.5, 0.30902, -0.5, 0.30902, -0.80902, 0.30902, -0.80902, -0.5, 01871 0.80902, -0.5, -0.30902, -0.5, -0.30902, -0.80902, 0.30902, 0.80902, -0.5, 01872 0.5, 0.30902, -0.80902, -0.30902, -0.80902, -0.5, -0.80902, 0.5, -0.30902, 01873 -0.30902, -0.80902, -0.5, -0.80902, 0.5, -0.30902, 0.5, 0.30902, -0.80902, 01874 -0.80902, 0.5, -0.30902, 0.5, 0.30902, -0.80902, -0.30902, -0.80902, -0.5, 01875 -0.5, -0.30902, -0.80902, 0.30902, 0.80902, -0.5, 0.80902, -0.5, -0.30902, 01876 -0.5, 0.30902, -0.80902, -0.30902, 0.80902, 0.5, 0.80902, 0.5, -0.30902, 01877 0, 0, -1, 1, 0, 0, 0, -1, 0, 01878 -0.80902, 0.5, 0.30902, 0.5, 0.30902, 0.80902, 0.30902, 0.80902, -0.5, 01879 0.80902, 0.5, -0.30902, 0.5, -0.30902, 0.80902, 0.30902, -0.80902, -0.5, 01880 -0.30902, 0.80902, -0.5, 0.80902, 0.5, 0.30902, 0.5, -0.30902, -0.80902, 01881 0.5, -0.30902, -0.80902, 0.30902, -0.80902, 0.5, -0.80902, -0.5, -0.30902, 01882 -0.80902, -0.5, -0.30902, -0.5, 0.30902, 0.80902, -0.30902, 0.80902, -0.5, 01883 -0.30902, -0.80902, 0.5, -0.80902, 0.5, 0.30902, -0.5, -0.30902, -0.80902, 01884 -0.30902, 0.80902, 0.5, 0.80902, 0.5, -0.30902, -0.5, 0.30902, -0.80902, 01885 1, 0, 0, 0, -1, 0, 0, 0, -1, 01886 0.30902, 0.80902, -0.5, 0.80902, -0.5, -0.30902, -0.5, -0.30902, -0.80902, 01887 0.30902, -0.80902, -0.5, -0.80902, -0.5, 0.30902, -0.5, 0.30902, -0.80902, 01888 -1, 0, 0, 0, 1, 0, 0, 0, -1, 01889 0.80902, 0.5, 0.30902, 0.5, -0.30902, -0.80902, -0.30902, 0.80902, -0.5, 01890 0.30902, -0.80902, 0.5, -0.80902, -0.5, -0.30902, 0.5, -0.30902, -0.80902, 01891 -0.5, 0.30902, 0.80902, -0.30902, 0.80902, -0.5, -0.80902, -0.5, -0.30902, 01892 0, 0, 1, -1, 0, 0, 0, -1, 0, 01893 0.5, -0.30902, 0.80902, 0.30902, -0.80902, -0.5, 0.80902, 0.5, -0.30902, 01894 0.30902, 0.80902, 0.5, 0.80902, -0.5, 0.30902, 0.5, 0.30902, -0.80902, 01895 0.80902, -0.5, 0.30902, -0.5, -0.30902, 0.80902, -0.30902, -0.80902, -0.5, 01896 -0.5, -0.30902, 0.80902, 0.30902, 0.80902, 0.5, -0.80902, 0.5, -0.30902, 01897 0.5, 0.30902, 0.80902, -0.30902, -0.80902, 0.5, 0.80902, -0.5, -0.30902 01898 }; 01899 01900 int idx = n % 60; 01901 01902 std::vector<float> matrix(12, 0); 01903 for (int r = 0; r < 3; ++r) { 01904 for (int c = 0; c < 3; ++c) { 01905 matrix[r*4 + c] = matrices[idx*9 + r*3 + c]; 01906 } 01907 } 01908 01909 Transform t3d(matrix); 01910 return t3d; 01911 }
static Symmetry3D* EMAN::Icosahedral2Sym::NEW | ( | ) | [inline, static] |
Factory support function NEW.
Definition at line 930 of file symmetry.h.
References Icosahedral2Sym().
00931 { 00932 return new Icosahedral2Sym(); 00933 }
Icosahedral2Sym& EMAN::Icosahedral2Sym::operator= | ( | const Icosahedral2Sym & | ) | [private] |
Disallow assignment.
const string Icosahedral2Sym::NAME = "icos2" [static] |
The name of this class - used to access it from factories etc. Should be "icos2".
Definition at line 974 of file symmetry.h.
Referenced by get_name().