Forward solution computation worker. More...
#include <compute_fwd.h>
Public Member Functions | |
| ComputeFwd (std::shared_ptr< ComputeFwdSettings > pSettings) | |
| virtual | ~ComputeFwd () |
| std::unique_ptr< MNELIB::MNEForwardSolution > | calculateFwd () |
| bool | updateHeadPos (const FIFFLIB::FiffCoordTrans &transDevHead, MNELIB::MNEForwardSolution &fwd) |
Forward solution computation worker.
Implements the forward solution computation.
ComputeFwd is a worker/factory that takes ComputeFwdSettings, initialises all required data structures (coil definitions, BEM model, source spaces, …) and performs the actual forward calculation. The computed MNEForwardSolution is returned by calculateFwd() and updateHeadPos().
Definition at line 104 of file compute_fwd.h.
|
explicit |
Constructs a ComputeFwd and initialises all data structures needed for the forward computation according to pSettings.
| [in] | pSettings | Shared pointer to the forward computation settings. |
Definition at line 80 of file compute_fwd.cpp.
|
virtual |
Destructor.
Definition at line 92 of file compute_fwd.cpp.
| std::unique_ptr< MNEForwardSolution > ComputeFwd::calculateFwd | ( | ) |
Perform the forward calculation.
Definition at line 532 of file compute_fwd.cpp.
| bool ComputeFwd::updateHeadPos | ( | const FIFFLIB::FiffCoordTrans & | transDevHead, |
| MNELIB::MNEForwardSolution & | fwd ) |
Update the head position with a new device-to-head transform and recompute the MEG portion of the forward solution.
| [in] | transDevHead | The updated device-to-head coordinate transform. |
| [in,out] | fwd | The forward solution to update in place. |
Definition at line 632 of file compute_fwd.cpp.