EMAN2
|
A class one may inherit from to ensure that the responsibilities of being incorporated into an EMAN2::Factory are met. More...
#include <emobject.h>
Public Member Functions | |
FactoryBase () | |
virtual | ~FactoryBase () |
virtual string | get_name () const =0 |
Get the unique name of this class (especially for factory based instantiation access) More... | |
virtual string | get_desc () const =0 |
Get a clear, concise description of this class. More... | |
Dict | get_params () const |
get a copy of the parameters of this class More... | |
void | set_params (const Dict &new_params) |
Set new parameters. More... | |
void | set_param (const string key, const EMObject val) |
virtual TypeDict | get_param_types () const =0 |
void | insert_params (const Dict &new_params) |
Insert parameters. More... | |
Dict | copy_relevant_params (const FactoryBase *const that) const |
Protected Attributes | |
Dict | params |
This is the dictionary the stores the parameters of the object. More... | |
A class one may inherit from to ensure that the responsibilities of being incorporated into an EMAN2::Factory are met.
This class is abstract.
Definition at line 892 of file emobject.h.
|
inline |
Definition at line 895 of file emobject.h.
|
inlinevirtual |
Definition at line 896 of file emobject.h.
|
inline |
Definition at line 946 of file emobject.h.
References EMAN::Dict::copy_keys_in(), get_param_types(), and params.
Referenced by EMAN::OptimumOrientationGenerator::gen_orientations().
|
pure virtual |
Get a clear, concise description of this class.
Implemented in EMAN::XYZReconstructor, EMAN::FourierReconstructorSimple2D, EMAN::FourierReconstructor, EMAN::WienerFourierReconstructor, EMAN::FourierIterReconstructor, EMAN::BackProjectionReconstructor, EMAN::RealMedianReconstructor, EMAN::nn4Reconstructor, EMAN::nn4_rectReconstructor, EMAN::nnSSNR_Reconstructor, EMAN::nn4_ctfReconstructor, EMAN::nn4_ctfwReconstructor, EMAN::nn4_ctfwsReconstructor, EMAN::nn4_ctf_rectReconstructor, EMAN::nnSSNR_ctfReconstructor, EMAN::FourierInserter3DMode1, EMAN::FourierInserter3DMode2, EMAN::FourierInserter3DMode2l, EMAN::FourierInserter3DMode3, EMAN::FourierInserter3DMode5, EMAN::FourierInserter3DMode6, EMAN::FourierInserter3DMode7, EMAN::FourierInserter3DMode8, EMAN::FourierInserter3DMode9, EMAN::FourierInserter3DMode10, EMAN::FourierInserter3DMode11, EMAN::CSym, EMAN::DSym, EMAN::HSym, EMAN::TetrahedralSym, EMAN::OctahedralSym, EMAN::IcosahedralSym, EMAN::Icosahedral2Sym, EMAN::EmanOrientationGenerator, EMAN::SingleOrientationGenerator, EMAN::RandomOrientationGenerator, EMAN::EvenOrientationGenerator, EMAN::SaffOrientationGenerator, and EMAN::OptimumOrientationGenerator.
|
pure virtual |
Get the unique name of this class (especially for factory based instantiation access)
Implemented in EMAN::XYZReconstructor, EMAN::FourierReconstructorSimple2D, EMAN::FourierReconstructor, EMAN::WienerFourierReconstructor, EMAN::FourierIterReconstructor, EMAN::BackProjectionReconstructor, EMAN::RealMedianReconstructor, EMAN::nn4Reconstructor, EMAN::nn4_rectReconstructor, EMAN::nnSSNR_Reconstructor, EMAN::nn4_ctfReconstructor, EMAN::nn4_ctfwReconstructor, EMAN::nn4_ctfwsReconstructor, EMAN::nn4_ctf_rectReconstructor, EMAN::nnSSNR_ctfReconstructor, EMAN::FourierInserter3DMode1, EMAN::FourierInserter3DMode2, EMAN::FourierInserter3DMode2l, EMAN::FourierInserter3DMode3, EMAN::FourierInserter3DMode5, EMAN::FourierInserter3DMode6, EMAN::FourierInserter3DMode7, EMAN::FourierInserter3DMode8, EMAN::FourierInserter3DMode9, EMAN::FourierInserter3DMode10, EMAN::FourierInserter3DMode11, EMAN::CSym, EMAN::DSym, EMAN::HSym, EMAN::TetrahedralSym, EMAN::OctahedralSym, EMAN::IcosahedralSym, EMAN::Icosahedral2Sym, EMAN::EmanOrientationGenerator, EMAN::SingleOrientationGenerator, EMAN::RandomOrientationGenerator, EMAN::EvenOrientationGenerator, EMAN::SaffOrientationGenerator, and EMAN::OptimumOrientationGenerator.
Referenced by EMAN::PlatonicSym::get_delimiters().
|
pure virtual |
Implemented in EMAN::XYZReconstructor, EMAN::FourierReconstructorSimple2D, EMAN::FourierReconstructor, EMAN::FourierIterReconstructor, EMAN::BackProjectionReconstructor, EMAN::RealMedianReconstructor, EMAN::nn4Reconstructor, EMAN::nn4_rectReconstructor, EMAN::nnSSNR_Reconstructor, EMAN::nn4_ctfReconstructor, EMAN::nn4_ctfwReconstructor, EMAN::nn4_ctfwsReconstructor, EMAN::nn4_ctf_rectReconstructor, EMAN::nnSSNR_ctfReconstructor, EMAN::FourierPixelInserter3D, EMAN::CSym, EMAN::DSym, EMAN::HSym, EMAN::PlatonicSym, EMAN::OrientationGenerator, EMAN::EmanOrientationGenerator, EMAN::SingleOrientationGenerator, EMAN::RandomOrientationGenerator, EMAN::EvenOrientationGenerator, EMAN::SaffOrientationGenerator, and EMAN::OptimumOrientationGenerator.
Referenced by copy_relevant_params(), and insert_params().
|
inline |
get a copy of the parameters of this class
Definition at line 911 of file emobject.h.
References params.
Referenced by EMAN::SaffOrientationGenerator::gen_orientations(), and EMAN::SaffOrientationGenerator::get_orientations_tally().
|
inline |
Insert parameters.
Previously present parameters are replaced, new ones are inserted.
new_params | the parameters to insert |
Definition at line 931 of file emobject.h.
References EMAN::Dict::begin(), EMAN::Dict::end(), EMAN::TypeDict::find_type(), get_param_types(), InvalidParameterException, and params.
Referenced by set_params().
|
inline |
|
inline |
Set new parameters.
Old parameters are cleared
new_params | the new parameters |
Definition at line 916 of file emobject.h.
References EMAN::Dict::clear(), insert_params(), and params.
Referenced by EMAN::OptimumOrientationGenerator::gen_orientations().
|
mutableprotected |
This is the dictionary the stores the parameters of the object.
Definition at line 953 of file emobject.h.
Referenced by EMAN::OrientationGenerator::add_orientation(), EMAN::nn4Reconstructor::buildFFTVolume(), EMAN::nn4_rectReconstructor::buildFFTVolume(), EMAN::nnSSNR_Reconstructor::buildFFTVolume(), EMAN::nn4_ctfReconstructor::buildFFTVolume(), EMAN::nn4_ctfwReconstructor::buildFFTVolume(), EMAN::nn4_ctfwsReconstructor::buildFFTVolume(), EMAN::nn4_ctf_rectReconstructor::buildFFTVolume(), EMAN::nnSSNR_ctfReconstructor::buildFFTVolume(), EMAN::nnSSNR_Reconstructor::buildNorm2Volume(), EMAN::nnSSNR_ctfReconstructor::buildNorm2Volume(), EMAN::nnSSNR_ctfReconstructor::buildNorm3Volume(), EMAN::nn4Reconstructor::buildNormVolume(), EMAN::nn4_rectReconstructor::buildNormVolume(), EMAN::nnSSNR_Reconstructor::buildNormVolume(), EMAN::nn4_ctfReconstructor::buildNormVolume(), EMAN::nn4_ctfwReconstructor::buildNormVolume(), EMAN::nn4_ctfwsReconstructor::buildNormVolume(), EMAN::nn4_ctf_rectReconstructor::buildNormVolume(), EMAN::nnSSNR_ctfReconstructor::buildNormVolume(), copy_relevant_params(), EMAN::FourierReconstructor::do_compare_slice_work(), EMAN::WienerFourierReconstructor::do_compare_slice_work(), EMAN::WienerFourierReconstructor::do_insert_slice_work(), EMAN::FourierReconstructor::do_insert_slice_work(), EMAN::FourierReconstructor::finish(), EMAN::WienerFourierReconstructor::finish(), EMAN::FourierIterReconstructor::finish(), EMAN::BackProjectionReconstructor::finish(), EMAN::RealMedianReconstructor::finish(), EMAN::nnSSNR_Reconstructor::finish(), EMAN::nnSSNR_ctfReconstructor::finish(), EMAN::EmanOrientationGenerator::gen_orientations(), EMAN::SingleOrientationGenerator::gen_orientations(), EMAN::RandomOrientationGenerator::gen_orientations(), EMAN::EvenOrientationGenerator::gen_orientations(), EMAN::SaffOrientationGenerator::gen_orientations(), EMAN::OptimumOrientationGenerator::gen_orientations(), EMAN::CSym::get_asym_unit_points(), EMAN::DSym::get_asym_unit_points(), EMAN::HSym::get_asym_unit_points(), EMAN::CSym::get_asym_unit_triangles(), EMAN::DSym::get_asym_unit_triangles(), EMAN::CSym::get_delimiters(), EMAN::DSym::get_delimiters(), EMAN::HSym::get_delimiters(), EMAN::CSym::get_max_csym(), EMAN::DSym::get_max_csym(), EMAN::HSym::get_max_csym(), EMAN::CSym::get_nsym(), EMAN::DSym::get_nsym(), EMAN::HSym::get_nsym(), EMAN::EmanOrientationGenerator::get_orientations_tally(), EMAN::EvenOrientationGenerator::get_orientations_tally(), EMAN::SaffOrientationGenerator::get_orientations_tally(), EMAN::OptimumOrientationGenerator::get_orientations_tally(), get_params(), EMAN::CSym::get_sym(), EMAN::DSym::get_sym(), EMAN::HSym::get_sym(), EMAN::FourierPixelInserter3D::init(), insert_params(), EMAN::FourierReconstructor::insert_slice(), EMAN::FourierIterReconstructor::insert_slice(), EMAN::nn4_ctfReconstructor::insert_slice(), EMAN::nn4_ctfwReconstructor::insert_slice(), EMAN::nn4_ctfwsReconstructor::insert_slice(), EMAN::CSym::is_in_asym_unit(), EMAN::DSym::is_in_asym_unit(), EMAN::HSym::is_in_asym_unit(), EMAN::BackProjectionReconstructor::load_default_settings(), EMAN::FourierReconstructor::load_inserter(), EMAN::Reconstructor::operator[](), EMAN::Reconstructor::print_params(), set_param(), set_params(), EMAN::FourierReconstructorSimple2D::setup(), EMAN::FourierReconstructor::setup(), EMAN::FourierIterReconstructor::setup(), EMAN::BackProjectionReconstructor::setup(), EMAN::RealMedianReconstructor::setup(), EMAN::nn4Reconstructor::setup(), EMAN::nn4_rectReconstructor::setup(), EMAN::nnSSNR_Reconstructor::setup(), EMAN::nn4_ctfReconstructor::setup(), EMAN::nn4_ctfwReconstructor::setup(), EMAN::nn4_ctfwsReconstructor::setup(), EMAN::nn4_ctf_rectReconstructor::setup(), EMAN::nnSSNR_ctfReconstructor::setup(), EMAN::FourierReconstructor::setup_seed(), and EMAN::FourierReconstructor::setup_seedandweights().