Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

EMAN::Icosahedral2Sym Class Reference

An encapsulation of icosahedral symmetry 222. More...

#include <symmetry.h>

Inheritance diagram for EMAN::Icosahedral2Sym:

Inheritance graph
[legend]
Collaboration diagram for EMAN::Icosahedral2Sym:

Collaboration graph
[legend]
List of all members.

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

Symmetry3DNEW ()
 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.
Icosahedral2Symoperator= (const Icosahedral2Sym &)
 Disallow assignment.

Detailed Description

An encapsulation of icosahedral symmetry 222.

Definition at line 919 of file symmetry.h.


Constructor & Destructor Documentation

EMAN::Icosahedral2Sym::Icosahedral2Sym  )  [inline]
 

Constructor calls PlatonicSym::init.

Definition at line 924 of file symmetry.h.

00924 { }

virtual EMAN::Icosahedral2Sym::~Icosahedral2Sym  )  [inline, virtual]
 

Definition at line 925 of file symmetry.h.

00925 { init(); }

EMAN::Icosahedral2Sym::Icosahedral2Sym const Icosahedral2Sym  )  [private]
 

Disallow copy construction.


Member Function Documentation

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.

Returns:
a clear desciption of this class

Implements EMAN::FactoryBase.

Definition at line 943 of file symmetry.h.

00943 { return "Icosahedral 2 symmetry support"; }

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.

Returns:
for icosahedral symmetry, this number is 2

Implements EMAN::Symmetry3D.

Definition at line 949 of file symmetry.h.

00949 { return 2; }

virtual string EMAN::Icosahedral2Sym::get_name  )  const [inline, virtual]
 

Return IcosahedralSym::NAME.

Returns:
the unique name of this class

Implements EMAN::FactoryBase.

Definition at line 938 of file symmetry.h.

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.

Returns:
60

Implements EMAN::Symmetry3D.

Definition at line 963 of file symmetry.h.

00963 { return 60; };

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.

Parameters:
n the symmetric operation number.
Returns:
a transform containing the correct rotational symmetry operation.

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 }

Symmetry3D* EMAN::Icosahedral2Sym::NEW  )  [inline, static]
 

Factory support function NEW.

Returns:
a newly instantiated class of this type

Definition at line 930 of file symmetry.h.

00931                 {
00932                         return new Icosahedral2Sym();
00933                 }

Icosahedral2Sym& EMAN::Icosahedral2Sym::operator= const Icosahedral2Sym  )  [private]
 

Disallow assignment.


Member Data Documentation

const string Icosahedral2Sym::NAME = "icos2" [static]
 

The name of this class - used to access it from factories etc. Should be "icos2".

Definition at line 46 of file symmetry.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Jun 11 13:49:47 2013 for EMAN2 by  doxygen 1.3.9.1