VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtSharedLightingRenderSettings Class Reference

The shared lighting render settings. More...

Inheritance diagram for makVrv::DtSharedLightingRenderSettings:
Inheritance graph
[legend]

Public Member Functions

virtual ~DtSharedLightingRenderSettings ()
 DTOR.
Setting Getters & Setters
float lightingEmissionScale () const
 Get / Set scale factor for emissive textures.
void setLightingEmissionScale (float setting)
float lightingDiffuseScale () const
 Get / Set scale factor for diffuse light.
void setLightingDiffuseScale (float setting)
float lightingAmbientScale () const
 Get / Set scale factor for ambient light.
void setLightingAmbientScale (float setting)
float globalAmbientValue () const
void setGlobalAmbientValue (float ambientValue)
bool useGlobalAmbient () const
void setUseGlobalAmbient (bool useGlobalAmbient)
float globalDiffuseValue () const
void setGlobalDiffuseValue (float diffuseValue)
bool useGlobalDiffuse () const
void setUseGlobalDiffuse (bool useGlobalDiffuse)
bool perPixelLightingEnabled () const
void setPerPixelLightingEnabled (bool setting)
Settings record / backup methods
void setFromRecord (const makArchives::DtLightingRenderSettingsRecord &rec)
 Restore the settings from a record.
void getRecord (makArchives::DtLightingRenderSettingsRecord &rec) const
 Get the settings as a record.
virtual const
DtLightingRenderSettingsBackup
settingsBackup () const
 Accessor for the settings backup (const).
virtual
DtLightingRenderSettingsBackup
settingsBackup ()
 Accessor for the settings backup.
virtual void backup ()
 Called to back up the settings.
- Public Member Functions inherited from makVrv::DtSharedSettings
 DtSharedSettings (const DtSharedSettingsManager &manager)
 CTOR.
virtual ~DtSharedSettings ()
 DTOR.
boost::shared_mutex & mutex ()
 Get the mutex for the settings object.
SafetyKey safeToEmitSignals ()
 Create a safety key for the function, see above example.
void setCurrentWriteLock (boost::unique_lock< boost::shared_mutex > *currentWriteLock)
 No need to call, set by the DtWriteSettingLock object.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static std::string className ()
 The class name for this settings object.

Protected Member Functions

 DtSharedLightingRenderSettings (DtSharedSettingsManager &manager)
 Protected CTOR (Use DtReadSettingsLock and DtWriteSettingsLock).

Protected Attributes

float myLightingEmissionScale
float myLightingDiffuseScale
float myLightingAmbientScale
float myGlobalAmbientValue
bool myUseGlobalAmbient
float myGlobalDiffuseValue
bool myUseGlobalDiffuse
bool myPerPixelLightingEnabled
DtLightingRenderSettingsBackupmySettingsBackup

Friends

class DtReadSettingsLock< DtSharedLightingRenderSettings >
 Use the DtReadSettingsLock to read the object.
class DtWriteSettingsLock< DtSharedLightingRenderSettings >
 Use the DtWriteSettingsLock to write to the object.

Detailed Description

The shared lighting render settings.

Constructor & Destructor Documentation

virtual makVrv::DtSharedLightingRenderSettings::~DtSharedLightingRenderSettings ( )
virtual

DTOR.

makVrv::DtSharedLightingRenderSettings::DtSharedLightingRenderSettings ( DtSharedSettingsManager manager)
protected

Protected CTOR (Use DtReadSettingsLock and DtWriteSettingsLock).

Member Function Documentation

float makVrv::DtSharedLightingRenderSettings::lightingEmissionScale ( ) const

Get / Set scale factor for emissive textures.

void makVrv::DtSharedLightingRenderSettings::setLightingEmissionScale ( float  setting)
float makVrv::DtSharedLightingRenderSettings::lightingDiffuseScale ( ) const

Get / Set scale factor for diffuse light.

void makVrv::DtSharedLightingRenderSettings::setLightingDiffuseScale ( float  setting)
float makVrv::DtSharedLightingRenderSettings::lightingAmbientScale ( ) const

Get / Set scale factor for ambient light.

void makVrv::DtSharedLightingRenderSettings::setLightingAmbientScale ( float  setting)
float makVrv::DtSharedLightingRenderSettings::globalAmbientValue ( ) const
void makVrv::DtSharedLightingRenderSettings::setGlobalAmbientValue ( float  ambientValue)
bool makVrv::DtSharedLightingRenderSettings::useGlobalAmbient ( ) const
void makVrv::DtSharedLightingRenderSettings::setUseGlobalAmbient ( bool  useGlobalAmbient)
float makVrv::DtSharedLightingRenderSettings::globalDiffuseValue ( ) const
void makVrv::DtSharedLightingRenderSettings::setGlobalDiffuseValue ( float  diffuseValue)
bool makVrv::DtSharedLightingRenderSettings::useGlobalDiffuse ( ) const
void makVrv::DtSharedLightingRenderSettings::setUseGlobalDiffuse ( bool  useGlobalDiffuse)
bool makVrv::DtSharedLightingRenderSettings::perPixelLightingEnabled ( ) const
void makVrv::DtSharedLightingRenderSettings::setPerPixelLightingEnabled ( bool  setting)
void makVrv::DtSharedLightingRenderSettings::setFromRecord ( const makArchives::DtLightingRenderSettingsRecord rec)

Restore the settings from a record.

void makVrv::DtSharedLightingRenderSettings::getRecord ( makArchives::DtLightingRenderSettingsRecord rec) const

Get the settings as a record.

virtual const DtLightingRenderSettingsBackup* makVrv::DtSharedLightingRenderSettings::settingsBackup ( ) const
virtual

Accessor for the settings backup (const).

Reimplemented from makVrv::DtSharedSettings.

virtual DtLightingRenderSettingsBackup* makVrv::DtSharedLightingRenderSettings::settingsBackup ( )
virtual

Accessor for the settings backup.

Reimplemented from makVrv::DtSharedSettings.

virtual void makVrv::DtSharedLightingRenderSettings::backup ( )
virtual

Called to back up the settings.

Reimplemented from makVrv::DtSharedSettings.

static std::string makVrv::DtSharedLightingRenderSettings::className ( )
static

The class name for this settings object.

Friends And Related Function Documentation

Use the DtReadSettingsLock to read the object.

Use the DtWriteSettingsLock to write to the object.

Member Data Documentation

float makVrv::DtSharedLightingRenderSettings::myLightingEmissionScale
protected
float makVrv::DtSharedLightingRenderSettings::myLightingDiffuseScale
protected
float makVrv::DtSharedLightingRenderSettings::myLightingAmbientScale
protected
float makVrv::DtSharedLightingRenderSettings::myGlobalAmbientValue
protected
bool makVrv::DtSharedLightingRenderSettings::myUseGlobalAmbient
protected
float makVrv::DtSharedLightingRenderSettings::myGlobalDiffuseValue
protected
bool makVrv::DtSharedLightingRenderSettings::myUseGlobalDiffuse
protected
bool makVrv::DtSharedLightingRenderSettings::myPerPixelLightingEnabled
protected
DtLightingRenderSettingsBackup* makVrv::DtSharedLightingRenderSettings::mySettingsBackup
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)