![]() |
VR-Forces Developer's Guide
|
DtLightModel is the model interface for light sources. This provides a vrvCore interface to control DtLight objects from the vrvGraphicsUtils project. The actual light creation and management is handled by DtGraphicsLightModel in vrvGraphics.

Public Member Functions | |
| DtLightModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtLightModel () |
| virtual void | setOn (bool bOn)=0 |
| virtual bool | isOn () const =0 |
| virtual void | setLightType (unsigned int lightType)=0 |
| virtual unsigned int | lightType () const =0 |
| virtual const DtVector & | lightPosition () const =0 |
| virtual void | setLightDirection (const DtVector &direction)=0 |
| virtual const DtVector & | lightDirection () const =0 |
| virtual void | setDiffuseColor (float r, float g, float b, float a)=0 |
| virtual void | setAmbientColor (float r, float g, float b, float a)=0 |
| virtual void | setSpecularColor (float r, float g, float b, float a)=0 |
| virtual void | setRange (float range)=0 |
| virtual float | range () const =0 |
| virtual void | setAttenuation (float constant, float linear, float quadratic)=0 |
| virtual void | setSpotLightParameters (float innerAngleDegrees, float outerAngleDegrees, float falloff)=0 |
| virtual void | setSensorMask (unsigned int mask)=0 |
| virtual unsigned int | sensorMask () const =0 |
| DtLightModel ()=delete | |
| DtLightModel (const DtLightModel &)=delete | |
| DtLightModel (const DtLightModel &&)=delete | |
| DtLightModel & | operator= (const DtLightModel &)=delete |
| DtLightModel & | operator= (const DtLightModel &&)=delete |
Public Member Functions inherited from makVrv::DtModel | |
| DtModel (DtDe &de, DtUniqueID id) | |
| virtual | ~DtModel () |
| virtual DtModelInstance * | createModelInstance (const std::string &modelDefName, bool realize) |
| virtual DtModelInstance * | createModelInstance (const DtModelDefinition &definition, bool realize) |
| virtual void | setModelDefinition (const std::string &str) |
| virtual const std::string & | modelDefinitionName () |
| virtual void | saveModelToFile (const std::string &filename) |
| virtual const std::string & | className () const |
| virtual DtUniqueID | uniqueId () const |
| unsigned int | transformSize () const |
| virtual void | setPosition (int vtx, const DtVector &position) |
| virtual const DtVector & | position (int vtx=0) const |
| virtual void | removePosition (int vtx) |
| virtual void | setPositionOffset (const DtVector &positionOffset) |
| virtual const DtVector & | positionOffset () const |
| virtual void | setOrientation (int vtx, const DtTaitBryan &orientation) |
| virtual void | setPositionAndOrientation (int vtx, const DtVector &positionOffset, const DtTaitBryan &orientation) |
| virtual const DtTaitBryan & | orientation (int vtx=0) const |
| virtual void | setOrientationOffset (const DtTaitBryan &orientationOffset) |
| virtual const DtTaitBryan & | orientationOffset () const |
| virtual void | enableColorBlending (bool b) |
| virtual void | setBlendColor (float r, float g, float b, float a) |
| virtual void | getBlendColor (float &r, float &g, float &b, float &a) |
| virtual bool | colorBlendingEnabled () const |
| virtual void | setColor (float r, float g, float b, float a) |
| virtual void | enableLighting (bool l) |
| virtual DtModelSetId | modelSet () const |
| const DtVector & | boundingBoxExtents () const |
| void | getBoundingBoxExtents (double &x, double &y, double &z) const |
| const DtVector & | boundingBoxCenter () const |
| virtual void | getBoundingBoxCenter (double &x, double &y, double &z) const |
| virtual void | getBoundingBoxComponents (DtVector &minimum, DtVector &maximum) |
| void | setContributesToBound (bool trueOrFalse) |
| bool | contributesToBound () const |
| DtDe & | de () |
| virtual void | setModelInstance (DtModelInstance *modelInstance) |
| virtual void | promoteBackgroundModelInstance (const DtModelDefinition &defintion) |
| virtual void | setVisible (bool isVisible) |
| virtual bool | visible () const |
| virtual unsigned int | getSensorMask () const |
| DtUniqueID | sceneObjectId () const |
| virtual void | addedToSceneObjectAsProp (const DtUniqueID &sceneObj) |
| virtual void | addedToSceneObject (const DtUniqueID &sceneObj, DtModelSetId modelSet, int visualizerType) |
| virtual void | setElementId (DtElementID id) |
| virtual void | removedFromSceneObject () |
| virtual void | setIsSupportModel (bool isSupport)=0 |
| virtual void | setSolid (bool isSolid) |
| virtual bool | isProp () |
| virtual void | updateMinLastFrameDistance (float distance) |
| virtual void | resetLastFrameDistance () |
| virtual float | minLastFrameDistance () const |
| virtual DtModelInstance * | modelInstance () |
| virtual const DtModelInstance * | modelInstance () const |
| int | visualizerType () const |
| virtual bool | supportsMultithreadedLoad () |
| virtual void | backgroundLoad (DtBackgroundLoadContext &context) |
| virtual void | foregroundLoad () |
| virtual bool | isActivelyBackgroundLoading () |
| virtual DtLoaderHandle * | getLoadQueueHandle () |
|
inline |
CTOR.
|
inlinevirtual |
DTOR.
|
delete |
not allowed
|
delete |
not allowed
|
delete |
not allowed
|
delete |
not allowed
|
delete |
not allowed
|
pure virtual |
Set whether the light is on or off.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Get whether the light is on or off.
Implemented in makVrv::DtOsgLightModel.
Set the light type (directional, point, spotlight)
Implemented in makVrv::DtOsgLightModel.
Get the light type.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Get the position of the light.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Set the direction of the light (for directional and spot lights)
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Get the direction of the light.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Set the diffuse color of the light.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Set the ambient color of the light.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Set the specular color of the light.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Set the range of the light (for point and spot lights)
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Get the range of the light.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Set attenuation factors for the light.
Implemented in makVrv::DtOsgLightModel.
|
pure virtual |
Set spotlight parameters (inner angle, outer angle, falloff)
Implemented in makVrv::DtOsgLightModel.
Set the sensor mask (which sensor modes the light is visible in)
Reimplemented from makVrv::DtModel.
Implemented in makVrv::DtOsgLightModel.
Get the sensor mask.
Implemented in makVrv::DtOsgLightModel.