#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 | |
Symmetry3D * | NEW () |
Factory support function NEW. | |
Static Public Attributes | |
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.
|
Constructor calls PlatonicSym::init.
Definition at line 924 of file symmetry.h. 00924 { }
|
|
Definition at line 925 of file symmetry.h. 00925 { init(); }
|
|
Disallow copy construction.
|
|
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)
|
|
Get a description.
Implements EMAN::FactoryBase. Definition at line 943 of file symmetry.h. 00943 { return "Icosahedral 2 symmetry support"; }
|
|
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. 00949 { return 2; }
|
|
Return IcosahedralSym::NAME.
Implements EMAN::FactoryBase. Definition at line 938 of file symmetry.h. 00938 { return NAME; };
|
|
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. 00963 { return 60; };
|
|
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.
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 }
|
|
Factory support function NEW.
Definition at line 930 of file symmetry.h. 00931 { 00932 return new Icosahedral2Sym(); 00933 }
|
|
Disallow assignment.
|
|
The name of this class - used to access it from factories etc. Should be "icos2".
Definition at line 46 of file symmetry.cpp. |