#include <FrameInstrument.hpp>
Public Member Functions | |
double | centerX () const |
double | centerY () const |
void | detect (PhotonPacket *pp) override |
double | fieldOfViewX () const |
double | fieldOfViewY () const |
int | numPixelsX () const |
int | numPixelsY () const |
![]() | |
double | azimuth () const |
Direction | bfkobs (const Position &bfr) const override |
Direction | bfky (const Position &bfr) const override |
void | determineSameObserverAsPreceding (const Instrument *precedingInstrument) override |
double | distance () const |
double | inclination () const |
double | roll () const |
![]() | |
virtual Direction | bfkobs (const Position &bfr) const =0 |
virtual Direction | bfky (const Position &bfr) const =0 |
virtual void | detect (PhotonPacket *pp)=0 |
virtual void | determineSameObserverAsPreceding (const Instrument *precedingInstrument)=0 |
void | flush () |
string | instrumentName () const |
const WavelengthGrid * | instrumentWavelengthGrid () const |
bool | isSameObserverAsPreceding () const |
string | itemName () const override |
int | numScatteringLevels () const |
bool | recordComponents () const |
bool | recordPolarization () const |
bool | recordStatistics () const |
WavelengthGrid * | wavelengthGrid () const |
void | write () |
![]() | |
template<class T > | |
T * | find (bool setup=true) const |
template<class T > | |
T * | interface (int levels=-999999, bool setup=true) const |
virtual string | itemName () const |
void | setup () |
string | typeAndName () const |
![]() | |
Item (const Item &)=delete | |
virtual | ~Item () |
void | addChild (Item *child) |
const vector< Item * > & | children () const |
virtual void | clearItemListProperty (const PropertyDef *property) |
void | destroyChild (Item *child) |
virtual bool | getBoolProperty (const PropertyDef *property) const |
virtual vector< double > | getDoubleListProperty (const PropertyDef *property) const |
virtual double | getDoubleProperty (const PropertyDef *property) const |
virtual string | getEnumProperty (const PropertyDef *property) const |
virtual int | getIntProperty (const PropertyDef *property) const |
virtual vector< Item * > | getItemListProperty (const PropertyDef *property) const |
virtual Item * | getItemProperty (const PropertyDef *property) const |
virtual string | getStringProperty (const PropertyDef *property) const |
int | getUtilityProperty (string name) const |
virtual void | insertIntoItemListProperty (const PropertyDef *property, int index, Item *item) |
Item & | operator= (const Item &)=delete |
Item * | parent () const |
virtual void | removeFromItemListProperty (const PropertyDef *property, int index) |
virtual void | setBoolProperty (const PropertyDef *property, bool value) |
virtual void | setDoubleListProperty (const PropertyDef *property, vector< double > value) |
virtual void | setDoubleProperty (const PropertyDef *property, double value) |
virtual void | setEnumProperty (const PropertyDef *property, string value) |
virtual void | setIntProperty (const PropertyDef *property, int value) |
virtual void | setItemProperty (const PropertyDef *property, Item *item) |
virtual void | setStringProperty (const PropertyDef *property, string value) |
void | setUtilityProperty (string name, int value) |
virtual string | type () const |
Protected Member Functions | |
FrameInstrument () | |
void | setupSelfBefore () override |
![]() | |
DistantInstrument () | |
void | setupSelfBefore () override |
![]() | |
Instrument () | |
~Instrument () | |
FluxRecorder * | instrumentFluxRecorder () |
void | setSameObserverAsPreceding () |
void | setupSelfAfter () override |
void | setupSelfBefore () override |
![]() | |
SimulationItem () | |
virtual bool | offersInterface (const std::type_info &interfaceTypeInfo) const |
virtual void | setupSelfAfter () |
virtual void | setupSelfBefore () |
![]() | |
Item () | |
Private Types | |
using | BaseType = DistantInstrument |
using | ItemType = FrameInstrument |
Private Member Functions | |
int | pixelOnDetector (const PhotonPacket *pp) const |
Friends | |
class | ItemRegistry |
A FrameInstrument object represents a distant instrument that records the surface brightness in every pixel of a given frame for each wavelength, and outputs an IFU data cube in a FITS file.
The instrument allows configuring the field of view and number of pixels in both directions of the observer plane. Photon packets arriving from a point that parallel projects outside of the field of view are ignored.
|
inlineprotected |
Default constructor for concrete Item subclass FrameInstrument : "a distant instrument that outputs the surface brightness in every pixel as a data cube" .
|
inline |
This function returns the value of the discoverable double property centerX : "the center of the frame in the horizontal direction" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "0" .
This property is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.
|
inline |
This function returns the value of the discoverable double property centerY : "the center of the frame in the vertical direction" .
This property represents a physical quantity of type "length" .
The default value for this property is given by the conditional value expression "0" .
This property is displayed only if the Boolean expression "Level2" evaluates to true after replacing the names by true or false depending on their presence.
|
overridevirtual |
This function simulates the detection of a photon packet by the instrument. It determines the projected position of the photon packet's last interaction site on the instrument frame and then calls the detect() function of the FluxRecorder instance associated with this instrument.
Implements Instrument.
|
inline |
This function returns the value of the discoverable double property fieldOfViewX : "the total field of view in the horizontal direction" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
inline |
This function returns the value of the discoverable double property fieldOfViewY : "the total field of view in the vertical direction" .
This property represents a physical quantity of type "length" .
The minimum value for this property is "]0" .
|
inline |
This function returns the value of the discoverable integer property numPixelsX : "the number of pixels in the horizontal direction" .
The minimum value for this property is "1" .
The maximum value for this property is "10000" .
The default value for this property is given by the conditional value expression "250" .
|
inline |
This function returns the value of the discoverable integer property numPixelsY : "the number of pixels in the vertical direction" .
The minimum value for this property is "1" .
The maximum value for this property is "10000" .
The default value for this property is given by the conditional value expression "250" .
|
private |
This private helper function returns the index of the spatial pixel on the detector that will be hit by a photon packet, or -1 if the photon packet does not hit the detector. Given the position
In other words, the originating position is rotated about the Z-axis over the azimuth angle
where
|
overrideprotectedvirtual |
This function configures the FluxRecorder instance associated with this instrument.
Reimplemented from DistantInstrument.
Reimplemented in FullInstrument.