#include <reconstructor_template.h>
Inheritance diagram for EMAN::XYZReconstructor:


Public Member Functions | |
| XYZReconstructor () | |
| ~XYZReconstructor () | |
| void | setup () |
| initialize the reconstructor | |
| int | insert_slice (const EMData *const slice, const Transform &euler, float weight) |
| insert each image slice to the reconstructor. | |
| EMData * | finish (bool doift) |
| finish reconstruction and return the complete model. | |
| string | get_name () const |
| Get the unique name of this class (especially for factory based instantiation access). | |
| string | get_desc () const |
| Get a clear, concise description of this class. | |
| TypeDict | get_param_types () const |
| Add your reconstructor parameter names and types in get_param_types(). | |
Static Public Member Functions | |
| static Reconstructor * | NEW () |
Static Public Attributes | |
| static const string | NAME = "xyz" |
Private Attributes | |
| EMData * | image |
| int | nx |
| int | ny |
| int | nz |
Please add your own code at the proper place.
1) Replace all 'XYZ' with your new reconstructor name. 2) Define the reconstructor parameter names and types in get_param_types(). 3) Implement the reconstructor in setup(), insert_slice(), and finish();
Definition at line 47 of file reconstructor_template.h.
| XYZReconstructor::XYZReconstructor | ( | ) |
| XYZReconstructor::~XYZReconstructor | ( | ) |
| EMData * XYZReconstructor::finish | ( | bool | doift | ) | [virtual] |
finish reconstruction and return the complete model.
Reimplemented from EMAN::Reconstructor.
Definition at line 56 of file reconstructor_template.cpp.
References image.
00057 { 00058 return image; 00059 }
| string EMAN::XYZReconstructor::get_desc | ( | ) | const [inline, virtual] |
Get a clear, concise description of this class.
Implements EMAN::FactoryBase.
Definition at line 70 of file reconstructor_template.h.
| string EMAN::XYZReconstructor::get_name | ( | ) | const [inline, virtual] |
Get the unique name of this class (especially for factory based instantiation access).
Implements EMAN::FactoryBase.
Definition at line 66 of file reconstructor_template.h.
References NAME.
00067 { 00068 return NAME; 00069 }
| TypeDict EMAN::XYZReconstructor::get_param_types | ( | ) | const [inline, virtual] |
Add your reconstructor parameter names and types in get_param_types().
For available parameter types, please refer class EMObject.
As an example, XYZReconstructor has 3 parameters: int size; float patratio; vector<float> snr;
Implements EMAN::FactoryBase.
Definition at line 89 of file reconstructor_template.h.
References EMAN::EMObject::FLOAT, EMAN::EMObject::FLOATARRAY, EMAN::EMObject::INT, and EMAN::TypeDict::put().
00090 { 00091 TypeDict d; 00092 d.put("size", EMObject::INT); 00093 d.put("padratio", EMObject::FLOAT); 00094 d.put("snr", EMObject::FLOATARRAY); 00095 return d; 00096 }
| int XYZReconstructor::insert_slice | ( | const EMData *const | slice, | |
| const Transform & | euler, | |||
| float | weight | |||
| ) | [virtual] |
insert each image slice to the reconstructor.
You may call this function multiple times.
Reimplemented from EMAN::Reconstructor.
Definition at line 51 of file reconstructor_template.cpp.
| static Reconstructor* EMAN::XYZReconstructor::NEW | ( | ) | [inline, static] |
Definition at line 75 of file reconstructor_template.h.
References XYZReconstructor().
00076 { 00077 return new XYZReconstructor(); 00078 }
| void XYZReconstructor::setup | ( | ) | [virtual] |
initialize the reconstructor
Implements EMAN::Reconstructor.
Definition at line 46 of file reconstructor_template.cpp.
EMData* EMAN::XYZReconstructor::image [private] |
const string XYZReconstructor::NAME = "xyz" [static] |
int EMAN::XYZReconstructor::nx [private] |
Definition at line 101 of file reconstructor_template.h.
int EMAN::XYZReconstructor::ny [private] |
Definition at line 102 of file reconstructor_template.h.
int EMAN::XYZReconstructor::nz [private] |
Definition at line 103 of file reconstructor_template.h.
1.4.7