#include <symmetry.h>
Inheritance diagram for EMAN::OctahedralSym:
Public Member Functions | |
OctahedralSym () | |
Constructor calls PlatonicSym::init. | |
virtual | ~OctahedralSym () |
virtual string | get_name () const |
Return OctahedralSym::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 octahedron. | |
virtual int | get_nsym () const |
Gets the total number of unique roational symmetry operations associated with this symmetry For octahedral symmetry this is 24. | |
Static Public Member Functions | |
static Symmetry3D * | NEW () |
Factory support function NEW. | |
Static Public Attributes | |
static const string | NAME = "oct" |
The name of this class - used to access it from factories etc. Should be "oct". | |
Private Member Functions | |
OctahedralSym (const OctahedralSym &) | |
Disallow copy construction. | |
OctahedralSym & | operator= (const OctahedralSym &) |
Disallow assignment. |
"A cube has m=3, n=4, F=6 E=12=nF/2, V=8=nF/m,since vertices shared by 3 squares; It is composed of 6 squares. An octahedron has m=4, n=3, F=8 E=12=nF/2, V=6=nF/m,since vertices shared by 4 triangles"
Definition at line 781 of file symmetry.h.
|
Constructor calls PlatonicSym::init.
Definition at line 786 of file symmetry.h. References EMAN::PlatonicSym::init(). Referenced by NEW(). 00786 {init();}
|
|
Definition at line 787 of file symmetry.h.
|
|
Disallow copy construction.
|
|
Get a description.
Implements EMAN::FactoryBase. Definition at line 805 of file symmetry.h.
|
|
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 811 of file symmetry.h.
|
|
Return OctahedralSym::NAME.
Implements EMAN::FactoryBase. Definition at line 800 of file symmetry.h. References NAME. 00800 { return NAME; };
|
|
Gets the total number of unique roational symmetry operations associated with this symmetry For octahedral symmetry this is 24.
Implements EMAN::Symmetry3D. Definition at line 836 of file symmetry.h.
|
|
This function provides access to the unique rotational symmetries of an octahedron. We have placed the octahedral symmetry group with a face along the z-axis. In all, there are 24 (accessed by get_nysm) unique rotational symmetric operations for the octahedron. In the terminology defined Append A (titled Symmetry Elements) in the manuscript Baldwin and Penczek, 2007. The Transform Class in SPARX and EMAN2. JSB 157(250-261), Doctor Phil has this to say: "B^4=A^3=1; BABA=1; implies AA=BAB, ABA=B^3 , AB^2A = BBBABBB and 20 words with at most a single A 1 B BB BBB A BA AB BBA BAB ABB BBBA BBAB BABB ABBB BBBAB BBABB BABBB BBBABB BBABBB BBBABBB also ABBBA is distinct yields 4 more words ABBBA BABBBA BBABBBA BBBABBBA for a total of 24 words Note A BBB A BBB A reduces to BBABB and B A BBB A is the same as A BBB A BBB etc."
Implements EMAN::Symmetry3D. Definition at line 1767 of file symmetry.cpp. 01768 { 01769 // These rotations courtesy of Phil Baldwin 01770 // We have placed the OCT symmetry group with a face along the z-axis 01771 static double lvl0=0.; 01772 static double lvl1=90.; 01773 static double lvl2=180.; 01774 01775 static double OCT[72] = {// This is with a face of a cube along z 01776 0,lvl0,0, 0,lvl0,90, 0,lvl0,180, 0,lvl0,270, 01777 0,lvl1,0, 0,lvl1,90, 0,lvl1,180, 0,lvl1,270, 01778 90,lvl1,0, 90,lvl1,90, 90,lvl1,180, 90,lvl1,270, 01779 180,lvl1,0, 180,lvl1,90, 180,lvl1,180, 180,lvl1,270, 01780 270,lvl1,0, 270,lvl1,90, 270,lvl1,180, 270,lvl1,270, 01781 0,lvl2,0, 0,lvl2,90, 0,lvl2,180, 0,lvl2,270 01782 }; 01783 01784 int idx = n % 24; 01785 // Transform3D ret; 01786 // ret.set_rotation((float)OCT[idx * 3 ],(float)OCT[idx * 3 + 1], (float)OCT[idx * 3 + 2] ); 01787 Dict d("type","eman"); 01788 d["az"] = (float)OCT[idx * 3 ]; 01789 d["alt"] = (float)OCT[idx * 3 + 1]; 01790 d["phi"] = (float)OCT[idx * 3 + 2]; 01791 return Transform(d); 01792 01793 }
|
|
Factory support function NEW.
Definition at line 792 of file symmetry.h. References OctahedralSym(). 00793 { 00794 return new OctahedralSym(); 00795 }
|
|
Disallow assignment.
|
|
The name of this class - used to access it from factories etc. Should be "oct".
Definition at line 836 of file symmetry.h. Referenced by EMAN::PlatonicSym::get_delimiters(), and get_name(). |