24 class DtOsgLightManager;
49 virtual void setPosition(
int vtx,
const DtVector& position )
override;
50 virtual void setOrientation(
int vtx,
const DtTaitBryan& orientation )
override;
53 virtual void setOn(
bool bOn)
override;
56 virtual bool isOn()
const override;
62 virtual void setLightType(
unsigned int lightType)
override;
65 virtual unsigned int lightType()
const override;
68 virtual const DtVector& lightPosition()
const override;
71 virtual void setLightDirection(
const DtVector& direction)
override;
74 virtual const DtVector& lightDirection()
const override;
77 virtual void setDiffuseColor(
float r,
float g,
float b,
float a)
override;
80 virtual void setAmbientColor(
float r,
float g,
float b,
float a)
override;
83 virtual void setSpecularColor(
float r,
float g,
float b,
float a)
override;
86 virtual void setRange(
float range)
override;
89 virtual float range()
const override;
92 virtual void setAttenuation(
float constant,
float linear,
float quadratic)
override;
95 virtual void setSpotLightParameters(
float innerAngleDegrees,
float outerAngleDegrees,
float falloff)
override;
98 virtual void setSensorMask(
unsigned int mask)
override;
101 virtual unsigned int sensorMask()
const override;
104 virtual void addToScene(
const DtUniqueID& sceneObjectId,
DtModelSetId modelSet,
int visualizerType)
override;
107 virtual void removeFromScene()
override;
115 virtual void setIsSupportModel(
bool isSupport )
override;
unsigned int mySensorMask
Definition: DtOsgLightModel.h:124
DtLight * light() const
Get the underlying DtLight object.
Definition: DtOsgLightModel.h:110
DtColorValue myAmbientColor
Definition: DtOsgLightModel.h:135
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtVector myLightDirection
Definition: DtOsgLightModel.h:121
DtOsgLightManager & myOsgLightManager
Definition: DtOsgLightModel.h:117
DtLightModel is the model interface for light sources. This provides a vrvCore interface to control D...
Definition: DtLightModel.h:21
DtVector myLightPosition
Definition: DtOsgLightModel.h:120
DtColorValue myDiffuseColor
Definition: DtOsgLightModel.h:134
float mySpotFalloff
Definition: DtOsgLightModel.h:133
DtColorValue mySpecularColor
Definition: DtOsgLightModel.h:136
DtOsgLightModel is the concrete implementation of DtLightModel. This class creates and manages a DtLi...
Definition: DtOsgLightModel.h:29
DtLight * myLight
Definition: DtOsgLightModel.h:119
LightType
Definition: DtLight.h:31
DtOsgLightManager receives LightSource nodes from the DtOsgCullVisitor, and collects them all here wh...
Definition: DtOsgLightManager.h:54
unsigned int myLightTypeId
Definition: DtOsgLightModel.h:123
float myAttenuationQuadratic
Definition: DtOsgLightModel.h:129
float mySpotInnerAngleDegrees
Definition: DtOsgLightModel.h:131
float myRange
Definition: DtOsgLightModel.h:125
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
LightType myLightType
Definition: DtOsgLightModel.h:122
float myAttenuationConstant
Definition: DtOsgLightModel.h:127
Class for generic lights This holds per-light data such as range, attenuation factors, colors, etc.
Definition: DtLight.h:49
float mySpotOuterAngleDegrees
Definition: DtOsgLightModel.h:132
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
float myAttenuationLinear
Definition: DtOsgLightModel.h:128
DtModelSetId
Definition: DtModelSetEnums.h:19
Template for Color values in [0,1] range.
Definition: DtColorValue.h:24
Contains declaration of DtLightModel.
bool myLightIsOn
Definition: DtOsgLightModel.h:138