|
Omnidome
Fulldome Mapping Software Toolkit
|
A light with position and phong shader attributes. More...
#include <Light.h>


Public Member Functions | |
| Light (const Tracker &_tracker=Tracker(), qreal const &_intensity=1.0) | |
| Light (const Tracker &_tracker, const QColor &_ambient, const QColor &_diffuse, const QColor &_specular, const qreal &_intensity=1.0) | |
| void | setup (GLuint _index=GL_LIGHT0) |
| Setup light in OpenGL. More... | |
| QColor | ambient () const |
| Return color for ambient. More... | |
| void | setAmbient (QColor) |
| Set new ambient color. More... | |
| QColor | diffuse () const |
| Return diffuse color. More... | |
| void | setDiffuse (QColor) |
| Set new diffuse color. More... | |
| QColor | specular () const |
| Return specular color. More... | |
| void | setSpecular (QColor) |
| Set new specular color. More... | |
| qreal | intensity () const |
| Return intensity value. More... | |
| void | setIntensity (qreal) |
| Set new intensity value. More... | |
| void | fromStream (QDataStream &) |
| Deserialize from stream. More... | |
| void | toStream (QDataStream &) const |
| Serialize to stream. More... | |
Public Member Functions inherited from omni::visual::Tracker | |
| Tracker () | |
| Tracker (const QVector3D &_center, const PolarVec &_direction) | |
| void | track (float _longitude, float _latitude, float _radius) |
| QVector3D | eye () const |
| get tracker position More... | |
| void | setEye (const QVector3D &_pos) |
| Set eye position. More... | |
| void | setCenter (QVector3D const &) |
| Set center position. More... | |
| QVector3D & | center () |
| Return center position. More... | |
| QVector3D const & | center () const |
| Return center position (const version) More... | |
| void | setDirection (PolarVec const &) |
| Set direction from polar vector. More... | |
| void | setDistance (float _t) |
| Set direction with a certain distance. More... | |
| PolarVec & | direction () |
| Return direction as polar vector. More... | |
| PolarVec const & | direction () const |
| Return direction as polar vector (const version) More... | |
| void | limitDistance (float _minDist, float _maxDist) |
| Keep distance in limits. More... | |
Private Types | |
| typedef std::array< GLfloat, 4 > | param_type |
Private Member Functions | |
| param_type | colorParam (QColor) const |
| param_type | eye4 () const |
Private Attributes | |
| QColor | ambient_ |
| QColor | diffuse_ |
| QColor | specular_ |
| qreal | intensity_ |
Friends | |
| bool | operator== (Light const &, Light const &) |
| Test for equality. ScreenSetup is ignored. More... | |
A light with position and phong shader attributes.
|
private |
| omni::visual::Light::Light | ( | const Tracker & | _tracker, |
| const QColor & | _ambient, | ||
| const QColor & | _diffuse, | ||
| const QColor & | _specular, | ||
| const qreal & | _intensity = 1.0 |
||
| ) |
| QColor omni::visual::Light::ambient | ( | ) | const |
Return color for ambient.
|
private |
| QColor omni::visual::Light::diffuse | ( | ) | const |
Return diffuse color.
|
private |
|
virtual |
Deserialize from stream.
Reimplemented from omni::visual::Tracker.
| qreal omni::visual::Light::intensity | ( | ) | const |
Return intensity value.
| void omni::visual::Light::setAmbient | ( | QColor | _ambient | ) |
Set new ambient color.
| void omni::visual::Light::setDiffuse | ( | QColor | _diffuse | ) |
Set new diffuse color.
| void omni::visual::Light::setIntensity | ( | qreal | _intensity | ) |
Set new intensity value.
| void omni::visual::Light::setSpecular | ( | QColor | _specular | ) |
Set new specular color.
| void omni::visual::Light::setup | ( | GLuint | _index = GL_LIGHT0 | ) |
Setup light in OpenGL.
| QColor omni::visual::Light::specular | ( | ) | const |
Return specular color.
|
virtual |
Serialize to stream.
Reimplemented from omni::visual::Tracker.
Test for equality. ScreenSetup is ignored.
|
private |
|
private |
|
private |
|
private |
1.8.6