FlightGear next
FGLight Class Reference

#include <light.hxx>

Inherits SGSubsystem.

Public Member Functions

 FGLight ()=default
 
virtual ~FGLight ()=default
 
void bind () override
 
void init () override
 
void reinit () override
 
void unbind () override
 
void update (double dt) override
 
double get_sun_angle () const
 
void set_sun_angle (double a)
 
double get_sun_rotation () const
 
void set_sun_rotation (double r)
 
double get_sun_lon () const
 
void set_sun_lon (double l)
 
double get_sun_lat () const
 
void set_sun_lat (double l)
 
SGVec4f & sun_vec ()
 
SGVec4f & sun_vec_inv ()
 
double get_moon_angle () const
 
void set_moon_angle (double a)
 
double get_moon_rotation () const
 
void set_moon_rotation (double r)
 
double get_moon_lon () const
 
void set_moon_lon (double l)
 
double get_moon_gc_lat () const
 
void set_moon_gc_lat (double l)
 
const SGVec4f & moon_vec () const
 
const SGVec4f & moon_vec_inv () const
 

Static Public Member Functions

static const char * staticSubsystemClassId ()
 

Detailed Description

Definition at line 16 of file light.hxx.

Constructor & Destructor Documentation

◆ FGLight()

FGLight::FGLight ( )
default

◆ ~FGLight()

virtual FGLight::~FGLight ( )
virtualdefault

Member Function Documentation

◆ bind()

void FGLight::bind ( )
override

Definition at line 34 of file light.cxx.

◆ get_moon_angle()

double FGLight::get_moon_angle ( ) const
inline

Definition at line 102 of file light.hxx.

◆ get_moon_gc_lat()

double FGLight::get_moon_gc_lat ( ) const
inline

Definition at line 111 of file light.hxx.

◆ get_moon_lon()

double FGLight::get_moon_lon ( ) const
inline

Definition at line 108 of file light.hxx.

◆ get_moon_rotation()

double FGLight::get_moon_rotation ( ) const
inline

Definition at line 105 of file light.hxx.

◆ get_sun_angle()

double FGLight::get_sun_angle ( ) const
inline

Definition at line 84 of file light.hxx.

◆ get_sun_lat()

double FGLight::get_sun_lat ( ) const
inline

Definition at line 93 of file light.hxx.

◆ get_sun_lon()

double FGLight::get_sun_lon ( ) const
inline

Definition at line 90 of file light.hxx.

◆ get_sun_rotation()

double FGLight::get_sun_rotation ( ) const
inline

Definition at line 87 of file light.hxx.

◆ init()

void FGLight::init ( )
override

Definition at line 21 of file light.cxx.

◆ moon_vec()

const SGVec4f & FGLight::moon_vec ( ) const
inline

Definition at line 114 of file light.hxx.

◆ moon_vec_inv()

const SGVec4f & FGLight::moon_vec_inv ( ) const
inline

Definition at line 115 of file light.hxx.

◆ reinit()

void FGLight::reinit ( )
override

Definition at line 28 of file light.cxx.

◆ set_moon_angle()

void FGLight::set_moon_angle ( double a)
inline

Definition at line 103 of file light.hxx.

◆ set_moon_gc_lat()

void FGLight::set_moon_gc_lat ( double l)
inline

Definition at line 112 of file light.hxx.

◆ set_moon_lon()

void FGLight::set_moon_lon ( double l)
inline

Definition at line 109 of file light.hxx.

◆ set_moon_rotation()

void FGLight::set_moon_rotation ( double r)
inline

Definition at line 106 of file light.hxx.

◆ set_sun_angle()

void FGLight::set_sun_angle ( double a)
inline

Definition at line 85 of file light.hxx.

◆ set_sun_lat()

void FGLight::set_sun_lat ( double l)
inline

Definition at line 94 of file light.hxx.

◆ set_sun_lon()

void FGLight::set_sun_lon ( double l)
inline

Definition at line 91 of file light.hxx.

◆ set_sun_rotation()

void FGLight::set_sun_rotation ( double r)
inline

Definition at line 88 of file light.hxx.

◆ staticSubsystemClassId()

static const char * FGLight::staticSubsystemClassId ( )
inlinestatic

Definition at line 79 of file light.hxx.

◆ sun_vec()

SGVec4f & FGLight::sun_vec ( )
inline

Definition at line 96 of file light.hxx.

◆ sun_vec_inv()

SGVec4f & FGLight::sun_vec_inv ( )
inline

Definition at line 97 of file light.hxx.

◆ unbind()

void FGLight::unbind ( )
override

Definition at line 54 of file light.cxx.

◆ update()

void FGLight::update ( double dt)
override

Definition at line 61 of file light.cxx.


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