#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 | |
Projector * | NEW () |
Static Public Attributes | |
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. 00044 {
00045 return 0;
00046 }
|
|
Implements EMAN::Projector. Definition at line 60 of file projector_template.h. 00061 { 00062 return "XYZ Description"; 00063 }
|
|
Get the projector's name. Each projector is indentified by unique name.
Implements EMAN::Projector. Definition at line 55 of file projector_template.h. 00056 {
00057 return NAME;
00058 }
|
|
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::TypeDict::put(). 00078 { 00079 TypeDict d; 00080 d.put("param1", EMObject::FLOAT); 00081 d.put("param2", EMObject::INT); 00082 return d; 00083 }
|
|
Definition at line 65 of file projector_template.h. 00066 { 00067 return new XYZProjector(); 00068 }
|
|
Project an 3D image into a 2D image.
Implements EMAN::Projector. Definition at line 39 of file projector_template.cpp. 00040 {
00041 return 0;
00042 }
|
|
Definition at line 37 of file projector_template.cpp. |