#include <projector_template.h>
Inheritance diagram for EMAN::XYZProjector:
Public Member Functions | |
EMData * | project3d (EMData *em) const |
Project an 3D image into a 2D image. | |
EMData * | backproject3d (EMData *em) const |
Back-project a 2D image into a 3D image. | |
string | get_name () const |
Get the projector's name. | |
string | get_desc () const |
TypeDict | get_param_types () const |
Add your projector parameter names and types in get_param_types(). | |
Static Public Member Functions | |
static Projector * | NEW () |
Static Public Attributes | |
static const string | NAME = "xyz" |
Please add your own code at the proper place.
1) Replace all 'XYZ' with your new projector name. 2) Define the projector parameter names and types in get_param_types(). 3) Implement the projector in XYZProjector::project3d().
Definition at line 48 of file projector_template.h.
Back-project a 2D image into a 3D image.
Implements EMAN::Projector.
Definition at line 43 of file projector_template.cpp.
string EMAN::XYZProjector::get_desc | ( | ) | const [inline, virtual] |
string EMAN::XYZProjector::get_name | ( | ) | const [inline, virtual] |
Get the projector's name.
Each projector is indentified by unique name.
Implements EMAN::Projector.
Definition at line 55 of file projector_template.h.
References NAME.
00056 { 00057 return NAME; 00058 }
TypeDict EMAN::XYZProjector::get_param_types | ( | ) | const [inline, virtual] |
Add your projector parameter names and types in get_param_types().
For available parameter types, please refer class EMObject.
As an example, XYZProjector has 2 parameters: float param1; int param2;
Reimplemented from EMAN::Projector.
Definition at line 77 of file projector_template.h.
References EMAN::EMObject::FLOAT, EMAN::EMObject::INT, and EMAN::TypeDict::put().
00078 { 00079 TypeDict d; 00080 d.put("param1", EMObject::FLOAT); 00081 d.put("param2", EMObject::INT); 00082 return d; 00083 }
static Projector* EMAN::XYZProjector::NEW | ( | ) | [inline, static] |
Project an 3D image into a 2D image.
Implements EMAN::Projector.
Definition at line 39 of file projector_template.cpp.
const string XYZProjector::NAME = "xyz" [static] |