This class allows the definition of a window skydome background.
More...
#include <Aspect_SkydomeBackground.hxx>
|
| Aspect_SkydomeBackground () |
| Creates a window skydome background. By default skydome is initialized with sun at its zenith (0.0, 1.0, 0.0), average clody (0.2), zero time parameter, zero fogginess, 512x512 texture size. More...
|
|
| Aspect_SkydomeBackground (const gp_Dir &theSunDirection, Standard_ShortReal theCloudiness, Standard_ShortReal theTime, Standard_ShortReal theFogginess, Standard_Integer theSize) |
| Creates a window skydome background with given parameters. More...
|
|
| ~Aspect_SkydomeBackground () |
| Destructor. More...
|
|
const gp_Dir & | SunDirection () const |
| Get sun direction. By default this value is (0, 1, 0) Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction. More...
|
|
Standard_ShortReal | Cloudiness () const |
| Get cloud intensity. By default this value is 0.2 0.0 means no clouds at all and 1.0 - high clody. More...
|
|
Standard_ShortReal | TimeParameter () const |
| Get time of cloud simulation. By default this value is 0.0 This value might be tweaked to slightly change appearance of clouds. More...
|
|
Standard_ShortReal | Fogginess () const |
| Get fog intensity. By default this value is 0.0 0.0 means no fog and 1.0 - high fogginess. More...
|
|
Standard_Integer | Size () const |
| Get size of cubemap. By default this value is 512. More...
|
|
void | SetSunDirection (const gp_Dir &theSunDirection) |
| Set sun direction. By default this value is (0, 1, 0) Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction. More...
|
|
void | SetCloudiness (Standard_ShortReal theCloudiness) |
| Set cloud intensity. By default this value is 0.2 0.0 means no clouds at all and 1.0 - high clody. More...
|
|
void | SetTimeParameter (Standard_ShortReal theTime) |
| Set time of cloud simulation. By default this value is 0.0 This value might be tweaked to slightly change appearance of clouds. More...
|
|
void | SetFogginess (Standard_ShortReal theFogginess) |
| Set fog intensity. By default this value is 0.0 0.0 means no fog and 1.0 - high fogginess. More...
|
|
void | SetSize (Standard_Integer theSize) |
| Set size of cubemap. By default this value is 512. More...
|
|
void | DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const |
| Dumps the content of me into the stream. More...
|
|
This class allows the definition of a window skydome background.
◆ Aspect_SkydomeBackground() [1/2]
Aspect_SkydomeBackground::Aspect_SkydomeBackground |
( |
| ) |
|
Creates a window skydome background. By default skydome is initialized with sun at its zenith (0.0, 1.0, 0.0), average clody (0.2), zero time parameter, zero fogginess, 512x512 texture size.
◆ Aspect_SkydomeBackground() [2/2]
Creates a window skydome background with given parameters.
- Parameters
-
[in] | theSunDirection | direction to the sun (moon). Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction. |
[in] | theCloudiness | cloud intensity, 0.0 means no clouds at all and 1.0 - high clody. |
[in] | theTime | time parameter of simulation. Might be tweaked to slightly change appearance. |
[in] | theFogginess | fog intensity, 0.0 means no fog and 1.0 - high fogginess |
[in] | theSize | size of cubemap side in pixels. |
◆ ~Aspect_SkydomeBackground()
Aspect_SkydomeBackground::~Aspect_SkydomeBackground |
( |
| ) |
|
◆ Cloudiness()
Get cloud intensity. By default this value is 0.2 0.0 means no clouds at all and 1.0 - high clody.
◆ DumpJson()
Dumps the content of me into the stream.
◆ Fogginess()
Get fog intensity. By default this value is 0.0 0.0 means no fog and 1.0 - high fogginess.
◆ SetCloudiness()
Set cloud intensity. By default this value is 0.2 0.0 means no clouds at all and 1.0 - high clody.
◆ SetFogginess()
Set fog intensity. By default this value is 0.0 0.0 means no fog and 1.0 - high fogginess.
◆ SetSize()
Set size of cubemap. By default this value is 512.
◆ SetSunDirection()
void Aspect_SkydomeBackground::SetSunDirection |
( |
const gp_Dir & |
theSunDirection | ) |
|
|
inline |
Set sun direction. By default this value is (0, 1, 0) Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction.
◆ SetTimeParameter()
Set time of cloud simulation. By default this value is 0.0 This value might be tweaked to slightly change appearance of clouds.
◆ Size()
Get size of cubemap. By default this value is 512.
◆ SunDirection()
const gp_Dir& Aspect_SkydomeBackground::SunDirection |
( |
| ) |
const |
|
inline |
Get sun direction. By default this value is (0, 1, 0) Sun direction with negative Y component represents moon with (-X, -Y, -Z) direction.
◆ TimeParameter()
Get time of cloud simulation. By default this value is 0.0 This value might be tweaked to slightly change appearance of clouds.
The documentation for this class was generated from the following file: