IDaylightSystem3 Class Reference
 
 
 
IDaylightSystem3 Class Reference

#include <IDaylightSystem.h>

Inheritance diagram for IDaylightSystem3:
IDaylightSystem2 IDaylightSystem FPMixinInterface FPInterface BaseInterface InterfaceServer MaxHeapOperators

Class Description

Extends IDaylightSystem2 with new functionality This interface can only be obtained from an already existent daylight system, from the base object of the daylight assembly:

 Object* daylightAssemblyObj = ...
 BaseInterface* bi = daylightAssemblyObj->GetInterface(IID_DAYLIGHT_SYSTEM3);
 IDaylightSystem3* ds = dynamic_cast<IDaylightSystem3*>(bi);

Public Member Functions

virtual void  GetAltAz (TimeValue t, float &altitude, float &azimuth)=0
  Get the alititude and the azimuth angles of the sun at that particular time.

Member Function Documentation

virtual void GetAltAz ( TimeValue  t,
float &  altitude,
float &  azimuth 
) [pure virtual]

Get the alititude and the azimuth angles of the sun at that particular time.

Parameters:
[in] t The time at which to get the alitude and azimuth of the sun.
[out] altitude The angle of the sun above the horizon. In radians, ranges from 0 at the horizon to PI/2 at the zenith.
[out] azimuth The angle of the sun about north. In radians, ranges from 0 at due north, PI/2 at due east, etc..