EMAN2
|
XYZProjector is an projector template for defining new projectors. More...
#include <projector_template.h>
Public Member Functions | |
EMData * | project3d (EMData *em) const |
Project an 3D image into a 2D image. More... | |
EMData * | backproject3d (EMData *em) const |
Back-project a 2D image into a 3D image. More... | |
string | get_name () const |
Get the projector's name. More... | |
string | get_desc () const |
TypeDict | get_param_types () const |
Add your projector parameter names and types in get_param_types(). More... | |
Public Member Functions inherited from EMAN::Projector | |
virtual | ~Projector () |
virtual Dict | get_params () const |
Get the projector parameters in a key/value dictionary. More... | |
void | set_params (const Dict &new_params) |
Set the projector parameters using a key/value dictionary. More... | |
Static Public Member Functions | |
static Projector * | NEW () |
Static Public Attributes | |
static const string | NAME = "xyz" |
Additional Inherited Members | |
Protected Attributes inherited from EMAN::Projector | |
Dict | params |
XYZProjector is an projector template for defining new projectors.
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.
|
inlinevirtual |
Implements EMAN::Projector.
Definition at line 60 of file projector_template.h.
|
inlinevirtual |
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.
|
inlinevirtual |
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().
|
inlinestatic |
Definition at line 65 of file projector_template.h.
Project an 3D image into a 2D image.
Implements EMAN::Projector.
Definition at line 39 of file projector_template.cpp.
|
static |
Definition at line 85 of file projector_template.h.
Referenced by get_name().