Workspace 6.21.5
|
Defines a directional light which is a source at infinity with no edge fall-off or attentuation. More...
#include <Rendering/SceneComponents/Lights/directionallight.h>
Public Member Functions | |
DirectionalLight () | |
DirectionalLight (const DirectionalLight &light) | |
~DirectionalLight () override | |
DirectionalLight * | clone () const override |
DirectionalLight & | operator= (const DirectionalLight &light) |
bool | visit (LightsProcessor &processor) override |
Public Member Functions inherited from Light | |
Light (const QString &id="") | |
~Light () override | |
Light * | clone () const override=0 |
const QColor & | getColor () const |
double | getIntensity () const |
Mesh::Vector3d | getOrientation () const |
Mesh::Vector3d | getPosition () const |
void | setColor (const QColor &color) |
void | setIntensity (double d) |
virtual bool | visit (LightsProcessor &processor)=0 |
bool | visit (SceneProcessor &processor) override |
Public Member Functions inherited from SceneItem | |
~SceneItem () override | |
SceneItem * | clone () const override=0 |
bool | getEnabled () const |
const QString & | getId () const |
const Mesh::BoundingBoxMinimal & | getLocalBoundingBox () const |
virtual Mesh::TransformMatrix | getMatrixGlobal () const |
virtual Mesh::TransformMatrix | getMatrixLocal () const |
const QString & | getName () const |
Mesh::TransformMatrix | getParentMatrixGlobal () const |
Transform * | getParentTransform () |
void | setEnabled (bool b) |
void | setId (const QString &itemId) |
virtual void | setLocalBoundingBox (const Mesh::BoundingBoxMinimal &bb) |
void | setName (const QString &name) |
virtual Transform * | toTransform () |
virtual const Transform * | toTransform () const |
virtual void | updateGlobalMatrix () |
virtual bool | visit (SceneProcessor &processor)=0 |
Public Member Functions inherited from Observable | |
virtual | ~Observable () |
void | attachObserver (Observer &observer) |
void | destroy () |
void | detachObserver (Observer &observer) |
void | notifyEvent (const ObservableEvent &event) |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable ()=default |
virtual Clonable * | clone () const =0 |
Additional Inherited Members | |
Protected Member Functions inherited from Light | |
Light (const Light &light) | |
Light & | operator= (const Light &light) |
Protected Member Functions inherited from SceneItem | |
SceneItem (const QString &id) | |
SceneItem (const SceneItem &item) | |
virtual void | addToScene (Scene &scene, const QString &opIdPath="") |
bool | isTransformModified () const |
SceneItem & | operator= (const SceneItem &item) |
void | setTransformModified (bool b) |
Protected Member Functions inherited from Observable | |
Observable () | |
Observable (const Observable &) | |
Directional lights do not support attenuation and have no edge fall-off. They represent a light at infinity, but they do have a direction. If you want a light with edge fall-off and/or attentuation based on distance from the source of the light, use SpotLight instead.
DirectionalLight | ( | ) |
DirectionalLight | ( | const DirectionalLight & | light | ) |
|
override |
|
overridevirtual |
Subclasses must reimplement this function to return a clone of themselves.
Implements Light.
DirectionalLight & operator= | ( | const DirectionalLight & | light | ) |
|
overridevirtual |