The SKIRT project
advanced radiative transfer for astrophysics
Public Member Functions | Protected Member Functions | Private Types | Friends | List of all members
HammerAitoffProjection Class Reference

#include <HammerAitoffProjection.hpp>

Inheritance diagram for HammerAitoffProjection:
Inheritance graph
[legend]

Public Member Functions

virtual void fromGlobeToRectangle (double longitude, double latitude, double &x, double &y) const override
 
virtual bool fromRectangleToGlobe (double x, double y, double &longitude, double &latitude) const override
 
- Public Member Functions inherited from AllSkyProjection
virtual void fromGlobeToRectangle (double longitude, double latitude, double &x, double &y) const =0
 
virtual bool fromRectangleToGlobe (double x, double y, double &longitude, double &latitude) const =0
 
bool fromRectangleToSphere (double x, double y, double &inclination, double &azimuth) const
 
void fromSphereToRectangle (double inclination, double azimuth, double &x, double &y) const
 
- Public Member Functions inherited from SimulationItem
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
 
- Public Member Functions inherited from Item
 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 ItemgetItemProperty (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)
 
Itemoperator= (const Item &)=delete
 
Itemparent () 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

 HammerAitoffProjection ()
 
- Protected Member Functions inherited from AllSkyProjection
 AllSkyProjection ()
 
- Protected Member Functions inherited from SimulationItem
 SimulationItem ()
 
virtual bool offersInterface (const std::type_info &interfaceTypeInfo) const
 
virtual void setupSelfAfter ()
 
virtual void setupSelfBefore ()
 
- Protected Member Functions inherited from Item
 Item ()
 

Private Types

using BaseType = AllSkyProjection
 
using ItemType = HammerAitoffProjection
 

Friends

class ItemRegistry
 

Detailed Description

The HammerAitoffProjection class implements the Hammer-Aitoff all-sky projection mapping an arbitrary direction on the unit sphere to a point in a rectangular frame, and vice versa.

Constructor & Destructor Documentation

◆ HammerAitoffProjection()

HammerAitoffProjection::HammerAitoffProjection ( )
inlineprotected

Default constructor for concrete Item subclass HammerAitoffProjection : "the Hammer-Aitoff all-sky projection" .

Member Function Documentation

◆ fromGlobeToRectangle()

virtual void HammerAitoffProjection::fromGlobeToRectangle ( double  longitude,
double  latitude,
double &  x,
double &  y 
) const
overridevirtual

Performs the forward transformation from geographical to rectangular coordinates.

Implements AllSkyProjection.

◆ fromRectangleToGlobe()

virtual bool HammerAitoffProjection::fromRectangleToGlobe ( double  x,
double  y,
double &  longitude,
double &  latitude 
) const
overridevirtual

Performs the backward transformation from rectangular to geographical coordinates. If the specified rectangular coordinate values are outside of the possible range for this transform, the function returns false and the value of the output variables is undefined.

Implements AllSkyProjection.


The documentation for this class was generated from the following file: