#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 Transform3D &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.
|
Definition at line 38 of file reconstructor_template.cpp. Referenced by NEW().
|
|
Definition at line 42 of file reconstructor_template.cpp.
|
|
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 }
|
|
Get a clear, concise description of this class.
Implements EMAN::FactoryBase. Definition at line 70 of file reconstructor_template.h.
|
|
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 }
|
|
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 }
|
|
insert each image slice to the reconstructor. You may call this function multiple times. Definition at line 51 of file reconstructor_template.cpp.
|
|
Definition at line 75 of file reconstructor_template.h. References XYZReconstructor(). 00076 { 00077 return new XYZReconstructor(); 00078 }
|
|
initialize the reconstructor
Implements EMAN::Reconstructor. Definition at line 46 of file reconstructor_template.cpp.
|
|
Definition at line 100 of file reconstructor_template.h. Referenced by finish(). |
|
Definition at line 98 of file reconstructor_template.h. Referenced by get_name(). |
|
Definition at line 101 of file reconstructor_template.h. |
|
Definition at line 102 of file reconstructor_template.h. |
|
Definition at line 103 of file reconstructor_template.h. |