Re: [odin-devel] slice refocusing pulse
develop, simulate and run magnetic resonance sequences
Brought to you by:
wodan
|
From: Thies J. <th...@jo...> - 2009-03-28 18:41:34
|
> I was more thinking about overriding the methods, so they would do > the right thing. At least for some of the inherited interface this can be > done. For example, setting duration, would automatically recompute the > gradient shape and hardware-permitting will allow this, otherwise, would > generate an error. > The same could be done with the gradient amplitude. The other methods are > much more tedious. Unfortunately, this is not so easy because SeqPulsarReph is just a container which gets its elements from SeqPulsar. An easier way to use a different gradient pulse with the same integral is to use SeqPulsar::get_reph_gradintegral() and then to create a custom gradient, e.g. using SeqGradTrapez, with this integral. > Anyway, my understanding is that at the moment, the gradient amplitude is > taken from the slice-select gradient and cannot be changed. Am I right? Yes, it is taken from and calculated in SeqPulsar. > Of course, it is a object-oriented programming question, but how would one > hide inherited interface? I think one can make the virtual function private (and empty) to prohibit direct access. However, it can still be accessesed via a reference/pointer to the base class... Best wishes, Thies |