11 #pragma warning( push )
12 #pragma warning( disable : 4251 )
69 virtual void setOn(
bool bOn);
71 virtual bool isOn(
void)
const;
75 virtual void setLightType(
LightType lightType);
85 virtual void setSensorMask(
unsigned int sensorMask);
90 virtual unsigned int sensorMask()
const;
98 virtual void setSpecularColor(
const DtColorValue& color);
109 virtual void setPosition(
const Vector3_64& vPosition);
110 virtual const Vector3_64& position(
void)
const;
113 virtual void setDirection(
const Vector3_64& vDirection);
114 virtual const Vector3_64& direction(
void)
const;
117 virtual void setRange(
float32 fRange);
119 virtual float32 range(
void)
const;
120 virtual float32 squaredRange(
void)
const;
127 virtual float32 constantAttenuation(
void)
const;
128 virtual float32 linearAttenuation(
void)
const;
129 virtual float32 quadraticAttenuation(
void)
const;
131 virtual void getAttenuation(
float32 attenuations[3])
const;
136 virtual void setSpotLightParameters(
const DtDegrees& fInnerAngleDegrees
141 virtual void setSpotLightAngles(
const DtDegrees& fInnerAngleDegrees,
const DtDegrees& fOuterAngleDegrees);
142 virtual void spotLightAngles(
DtDegrees& fInnerAngleDegrees,
DtDegrees& fOuterAngleDegrees);
144 virtual DtDegrees innerAngle(
void)
const;
145 virtual DtDegrees outerAngle(
void)
const;
146 virtual float32 falloff(
void)
const;
156 virtual void setOctreeNode(
void* pUserData);
158 virtual void* octreeNode()
const;
171 virtual bool isInitted()
const;
175 virtual void setLightSourceTypeId(
unsigned int lightSourceTypeId);
178 virtual unsigned int lightSourceTypeId()
const;
181 virtual void printDetails(
void)
const;
184 virtual void setUserValue(
float64 val);
187 virtual float64 userValue(
void)
const;
190 static const std::string& reservedBindingKey(
void);
199 virtual void getArbitraryBasisPoints(
float distance, std::array<Vector3_64, 4>& point)
const;
201 virtual float getAngleFactor()
const;
207 virtual void UpdateBounds(
void);
274 #pragma warning( pop )
bool mybIsOn
Definition: DtLight.h:238
float32 myfConstantAttenuation
Definition: DtLight.h:227
float32 myfFallOff
Decrease in illumination between a spotlight's inner cone and the outer edge of the outer cone...
Definition: DtLight.h:236
LightManager class which allows creation/deletion of lights.
Definition: DtLightManager.h:30
Screen space light data, set up per frame and re-used multiple times while adding lights to light buc...
Definition: DtLightScreenSpaceData.h:53
DtReusableMemoryVector< DtLight *, DtLightPointerInitializer > LightReusableVector
Definition: DtLight.h:270
unsigned int myLightSourceTypeId
Definition: DtLight.h:252
float32 myfRange
Definition: DtLight.h:224
DtDegrees myfOuterAngle
Angle defining the outer edge of the spotlight's outer cone. Points outside this cone are not lit by ...
Definition: DtLight.h:234
Class to store a set of keys mapping to a set of any objects.
Vector3_64 myVecPosition
Applicable only to point lights and spot lights.
Definition: DtLight.h:220
LightGroup myLightGroup
For switching on and off lights Is this light node under the DtOsgRenderer::propsRoot or under DtOsgR...
Definition: DtLight.h:249
DtColorValue myAmbientColor
Definition: DtLight.h:215
AxisAlignedBoundingBox_64 myWorldAABB
Definition: DtLight.h:244
#define FORWARD_DECLARE_DIFFERENT_SUFFIX(T, U)
Definition: DtForwardDeclare.h:31
float32 myfSquaredRange
Definition: DtLight.h:225
double float64
Definition: DtCommonTypes.h:34
void * myOctreeNode
Definition: DtLight.h:242
DtDegrees myfInnerAngle
Angle of a spotlight's inner cone - that is, the fully illuminated spotlight cone.
Definition: DtLight.h:232
static const std::string theStrReservedBinding
Definition: DtLight.h:256
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points.
Axis Aligned Bounding Box class.
LightType myLightType
Definition: DtLight.h:211
LightType
Definition: DtLight.h:30
float32 myfLinearAttenuation
Definition: DtLight.h:228
DtColorValue myDiffuseColor
Definition: DtLight.h:216
float float32
Definition: DtCommonTypes.h:33
unsigned int mySensorMask
Definition: DtLight.h:213
DtColorValue mySpecularColor
Definition: DtLight.h:217
DtUserObjectBindings myUserObjectBindings
Definition: DtLight.h:241
float32 myfQuadraticAttenuation
Definition: DtLight.h:229
Contains makVrv::DtReusableMemoryVector class.
Class for generic lights This holds per-light data such as range, attenuation factors, colors, etc.
Definition: DtLight.h:48
#define DT_DLL_VRVGRAPHICSUTILS
Definition: vrvGraphicsUtils.h:18
bool mybIsInitted
init bit to keep track if it's really safe to add to the octtree
Definition: DtLight.h:240
Definition: DtLight.h:260
Vector3_64 myVecDirection
Applicable only to directional lights.
Definition: DtLight.h:222
Helpers to easily define forward declarations.
void operator()(DtLight *&light)
Definition: DtLight.h:263
float64 myUserValue
Definition: DtLight.h:254
Template for Color values in [0,1] range.
Definition: DtColorValue.h:20
Class to store a set of keys mapping to a set of any objects.
Definition: DtUserObjectBindings.h:23
LightGroup
Definition: DtLight.h:37
DtLightManager * myLightManager
Definition: DtLight.h:250