Jpp 19.3.0
the software that should make you happy
|
Inteface for source morphology simulation. More...
#include <JMorphology.hh>
Public Member Functions | |
virtual | ~JMorphology () |
Virtual destructor. | |
const JSourceLocation & | getSourceLocation () const |
Get source location. | |
virtual std::istream & | read (std::istream &in)=0 |
Read source morphology from input stream. | |
virtual std::ostream & | write (std::ostream &out) const =0 |
Write source morphology to output stream. | |
virtual JSourceLocation | get () const =0 |
Get location on sky. | |
operator JAngle3D () const | |
Type conversion operator. | |
double | getDeclination () const |
Get declination. | |
double | getRightAscension () const |
Get right ascension. | |
double | getDot (const JSourceLocation &location) const |
Dot product. | |
void | set (const angle_type_deg &angle) |
Convert angle. | |
bool | equals (const angle_type &angle, const double precision=std::numeric_limits< double >::min()) const |
Check equality. | |
Static Public Member Functions | |
static std::istream & | read (std::istream &in, JSourceLocation &source) |
Read source location in degrees from input stream. | |
static std::ostream & | write (std::ostream &out, const JSourceLocation &source) |
Write source location in degrees to output stream. | |
Protected Attributes | |
double | _theta_ |
double | _phi_ |
Inteface for source morphology simulation.
Note that all input angles are in degrees.
Definition at line 43 of file JMorphology.hh.
|
inlinevirtual |
|
inline |
Get source location.
Definition at line 58 of file JMorphology.hh.
|
inlinestatic |
Read source location in degrees from input stream.
in | input stream |
source | source |
Definition at line 71 of file JMorphology.hh.
|
inlinestatic |
Write source location in degrees to output stream.
out | output stream |
source | source |
Definition at line 90 of file JMorphology.hh.
|
pure virtual |
Read source morphology from input stream.
in | input stream |
Implemented in JASTRONOMY::JMorphologyBinary, JASTRONOMY::JMorphologyGauss2D, JASTRONOMY::JMorphologyGauss, JASTRONOMY::JMorphologyHistogram, and JASTRONOMY::JMorphologyPoint.
|
pure virtual |
Write source morphology to output stream.
out | output stream |
Implemented in JASTRONOMY::JMorphologyBinary, JASTRONOMY::JMorphologyGauss2D, JASTRONOMY::JMorphologyGauss, JASTRONOMY::JMorphologyHistogram, and JASTRONOMY::JMorphologyPoint.
|
pure virtual |
Get location on sky.
Implemented in JASTRONOMY::JMorphologyBinary, JASTRONOMY::JMorphologyGauss2D, JASTRONOMY::JMorphologyGauss, JASTRONOMY::JMorphologyHistogram, and JASTRONOMY::JMorphologyPoint.
|
inlineinherited |
Type conversion operator.
Definition at line 496 of file JAstronomy.hh.
|
inlineinherited |
Get declination.
Definition at line 502 of file JAstronomy.hh.
|
inlineinherited |
Get right ascension.
Definition at line 503 of file JAstronomy.hh.
|
inlineinherited |
Dot product.
location | source location |
Definition at line 512 of file JAstronomy.hh.
|
inlineinherited |
Convert angle.
angle | angle [rad] |
Definition at line 293 of file JAstronomy.hh.
|
inlineinherited |
Check equality.
angle | pair of angles |
precision | precision |
Definition at line 194 of file JAstronomy.hh.
|
protectedinherited |
Definition at line 250 of file JAstronomy.hh.
|
protectedinherited |
Definition at line 251 of file JAstronomy.hh.