11#pragma warning( push )
12#pragma warning( disable : 4251 )
72 virtual bool isOn(
void)
const;
270#pragma warning( pop )
Axis Aligned Bounding Box class.
Helpers to easily define forward declarations.
#define FORWARD_DECLARE_DIFFERENT_SUFFIX(T, U)
Definition DtForwardDeclare.h:31
Contains makVrv::DtReusableMemoryVector class.
Class to store a set of keys mapping to a set of any objects.
Template for Color values in [0,1] range.
Definition DtColorValue.h:25
Class for generic lights This holds per-light data such as range, attenuation factors,...
Definition DtLight.h:50
virtual float32 squaredRange(void) const
Vector3_64 myVecPosition
Applicable only to point lights and spot lights.
Definition DtLight.h:217
virtual void setSensorMask(unsigned int sensorMask)
virtual const Vector3_64 & direction(void) const
DtLightManager * myLightManager
Definition DtLight.h:248
virtual const DtColorValue & ambientColor(void) const
Get ambient, diffuse, specular properties.
virtual float32 range(void) const
DtColorValue myAmbientColor
Definition DtLight.h:212
virtual void getArbitraryBasisVectors(Vector3_64 &vBasis0, Vector3_64 &vBasis1) const
Calculate two arbitrary basis vectors for the light direction.
virtual void * octreeNode() const
virtual float64 userValue(void) const
arbitrary value on this light (like user data)
Vector3_64 myVecDirection
Applicable only to directional lights.
Definition DtLight.h:219
virtual const Vector3_64 & position(void) const
float32 myfConstantAttenuation
Definition DtLight.h:224
virtual DtDegrees innerAngle(void) const
DtLight & operator=(const DtLight &rhs)
assignment
AxisAlignedBoundingBox_64 myWorldAABB
Definition DtLight.h:242
virtual void getArbitraryBasisPoints(float distance, std::array< Vector3_64, 4 > &point) const
Calculate basis points along arbitrary basis vectors with given distance.
DtLight()=delete
not allowed
virtual unsigned int sensorMask() const
virtual Vector3_64 getSpotCenter() const
Return the center of the distant side of the spotlight cone.
virtual void setPosition(const Vector3_64 &vPosition)
Only relevant to Point and Spot Lights.
bool myIsReserved
Is this a reserved light?
Definition DtLight.h:239
virtual float getAngleFactor() const
Calculate angle multiplicative factor (see comment in C++).
virtual void spotLightAngles(DtDegrees &fInnerAngleDegrees, DtDegrees &fOuterAngleDegrees)
LightType myLightType
Definition DtLight.h:208
virtual LightGroup lightGroup() const
Which group is this light under (prop, terrain, none).
bool mybIsInitted
init bit to keep track if it's really safe to add to the octtree
Definition DtLight.h:237
DtLight(DtLightManager *lightManager)
CTOR.
virtual float32 falloff(void) const
virtual LightType lightType(void) const
virtual void setSpotLightParameters(const DtDegrees &fInnerAngleDegrees, const DtDegrees &fOuterAngleDegrees, float32 fFalloff)
Spot Light properties.
virtual void setLightSourceTypeId(unsigned int lightSourceTypeId)
DtLight(const DtLight &rhs)=delete
not allowed
unsigned int myLightSourceTypeId
Definition DtLight.h:250
virtual void setAttenuation(float32 fConstant, float32 fLinear, float32 fQuadratic)
Attenuation properties.
virtual void setAmbientColor(const DtColorValue &color)
Set ambient, diffuse, specular properties.
void * myOctreeNode
Definition DtLight.h:240
float32 myfFallOff
Decrease in illumination between a spotlight's inner cone and the outer edge of the outer cone.
Definition DtLight.h:233
DtColorValue myDiffuseColor
Definition DtLight.h:213
virtual bool isOn(void) const
DtColorValue mySpecularColor
Definition DtLight.h:214
virtual void setOn(bool bOn)
Turn light on or off.
virtual const DtColorValue & diffuseColor(void) const
virtual void UpdateBounds(void)
update bounds
virtual void setLightType(LightType lightType)
LightGroup myLightGroup
Definition DtLight.h:247
DtDegrees myfOuterAngle
Angle defining the outer edge of the spotlight's outer cone. Points outside this cone are not lit by ...
Definition DtLight.h:231
float32 myfRange
Definition DtLight.h:221
virtual void setSpecularColor(const DtColorValue &color)
float64 myUserValue
Definition DtLight.h:252
virtual void setLightGroup(LightGroup group)
Set the group this light belongs to (props, terrain, none).
float32 myfQuadraticAttenuation
Definition DtLight.h:226
float32 myfLinearAttenuation
Definition DtLight.h:225
virtual float32 constantAttenuation(void) const
virtual const AxisAlignedBoundingBox_64 & worldAABB(void) const
Get the world AABB.
virtual void setOctreeNode(void *pUserData)
octree Data
virtual void setDirection(const Vector3_64 &vDirection)
Only relevant to Directional and Spot Lights.
unsigned int mySensorMask
Definition DtLight.h:210
virtual DtDegrees outerAngle(void) const
virtual void setSpotLightAngles(const DtDegrees &fInnerAngleDegrees, const DtDegrees &fOuterAngleDegrees)
virtual void printDetails(void) const
print details
float32 myfSquaredRange
Definition DtLight.h:222
virtual const DtColorValue & specularColor(void) const
virtual void getAttenuation(float32 attenuations[3]) const
virtual void setRange(float32 fRange)
Range and Squared Range.
virtual bool isInitted() const
initialized?
virtual void setDiffuseColor(const DtColorValue &color)
friend class DtLightScreenSpaceData
Definition DtLight.h:191
virtual bool reserved(void) const
bool mybIsOn
Definition DtLight.h:235
DtDegrees myfInnerAngle
Angle of a spotlight's inner cone - that is, the fully illuminated spotlight cone.
Definition DtLight.h:229
virtual float32 quadraticAttenuation(void) const
virtual float32 linearAttenuation(void) const
virtual unsigned int lightSourceTypeId() const
get the light source type id
virtual void setReserved(bool val)
reserved?
virtual void setUserValue(float64 val)
arbitrary value on this light (like user data)
LightManager class which allows creation/deletion of lights.
Definition DtLightManager.h:33
Definition DtReusableMemoryVector.h:32
Contains DtCreateSensorFieldOfViewCommand and DtCreateSensorFieldOfViewCommandCreator class declarati...
Definition DtGridLinesSettingsRecord.h:16
DtVector3< float64 > Vector3_64
Definition DtVector3.h:412
float float32
Definition DtCommonTypes.h:33
LightType
Definition DtLight.h:32
@ LT_POINT
Definition DtLight.h:34
@ LT_DIRECTIONAL
Definition DtLight.h:33
@ LT_SPOTLIGHT
Definition DtLight.h:35
DtAxisAlignedBoundingBox< float64 > AxisAlignedBoundingBox_64
Definition DtAxisAlignedBoundingBox.h:103
double float64
Definition DtCommonTypes.h:34
DtReusableMemoryVector< DtLight *, DtLightPointerInitializer > LightReusableVector
Definition DtLight.h:266
LightGroup
Definition DtLight.h:39
@ LG_UNKNOWN
Definition DtLight.h:40
@ LG_TERRAIN
Definition DtLight.h:42
@ LG_PROPS
Definition DtLight.h:41
void operator()(DtLight *&light)
Definition DtLight.h:259
#define DT_DLL_VRVGRAPHICSUTILS
Definition vrvGraphicsUtils.h:18