Workspace 6.21.5
Public Member Functions | List of all members
AmbientLight Class Reference

Simple ambient light. More...

#include <Rendering/SceneComponents/Lights/ambientlight.h>

Inheritance diagram for AmbientLight:
[legend]

Public Member Functions

 AmbientLight ()
 
 AmbientLight (const AmbientLight &light)
 
 ~AmbientLight () override
 
AmbientLightclone () const override
 
AmbientLightoperator= (const AmbientLight &light)
 
bool visit (LightsProcessor &processor) override
 
- Public Member Functions inherited from Light
 Light (const QString &id="")
 
 ~Light () override
 
Lightclone () 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
 
SceneItemclone () const override=0
 
bool getEnabled () const
 
const QString & getId () const
 
const Mesh::BoundingBoxMinimalgetLocalBoundingBox () const
 
virtual Mesh::TransformMatrix getMatrixGlobal () const
 
virtual Mesh::TransformMatrix getMatrixLocal () const
 
const QString & getName () const
 
Mesh::TransformMatrix getParentMatrixGlobal () const
 
TransformgetParentTransform ()
 
void setEnabled (bool b)
 
void setId (const QString &itemId)
 
virtual void setLocalBoundingBox (const Mesh::BoundingBoxMinimal &bb)
 
void setName (const QString &name)
 
virtual TransformtoTransform ()
 
virtual const TransformtoTransform () 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 Clonableclone () const =0
 

Additional Inherited Members

- Protected Member Functions inherited from Light
 Light (const Light &light)
 
Lightoperator= (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
 
SceneItemoperator= (const SceneItem &item)
 
void setTransformModified (bool b)
 
- Protected Member Functions inherited from Observable
 Observable ()
 
 Observable (const Observable &)
 

Detailed Description

All properties for this class are provided by the Light base class. The AmbientLight class exists primarily to properly dispatch it to LightsProcessor instances with appropriate typing.

Constructor & Destructor Documentation

◆ AmbientLight() [1/2]

◆ AmbientLight() [2/2]

AmbientLight ( const AmbientLight light)

◆ ~AmbientLight()

~AmbientLight ( )
override

Member Function Documentation

◆ clone()

AmbientLight * clone ( ) const
overridevirtual
Returns
A clone of this item.

Subclasses must reimplement this function to return a clone of themselves.

Implements Light.

◆ operator=()

AmbientLight & operator= ( const AmbientLight light)

◆ visit()

bool visit ( LightsProcessor processor)
overridevirtual
Parameters
processorThe light processor visiting this light.

Light subclasses should reimplement this function to call processor.visit() and return the result of that call. This is the usual visitor pattern as used for other scene items and model processors.

Implements Light.