VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtLightModel Class Referenceabstract

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.

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

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 ()
 

Additional Inherited Members

- Public Attributes inherited from makVrv::DtModel
boost::signalslib::signal
< void(DtModel *)> 
signal_modelToBeDestroyed
 
boost::signalslib::signal
< void(DtModel *)> 
signal_modelChanged
 
boost::signalslib::signal
< bool(DtModel *, bool),
SlotReturnOR > 
signal_visibilityChangeRequested
 
boost::signalslib::signal
< void(DtModelInstance
*, DtModel *)> 
signal_modelInstanceCreated
 
boost::signalslib::signal
< void(DtModelInstance
*, DtModel *)> 
signal_modelInstanceToBeDestroyed
 
- Protected Types inherited from makVrv::DtModel
typedef std::vector
< ObjectTransform > 
TransformList
 
- Protected Member Functions inherited from makVrv::DtModel
virtual void addToScene (const DtUniqueID &sceneObjectId, DtModelSetId modelSet, int visualizerType)=0
 
virtual void addToSceneAsProp (const DtUniqueID &sceneObjectId)
 
virtual void removeFromScene ()=0
 
virtual void initializeModelInstance ()
 
void slot_modelInstanceChanged (DtModelInstance *instance)
 
virtual void waitAndClearLoadHandle ()
 
virtual void removedFromLoadQueue ()
 
virtual void setDoneBackgroundLoading ()
 
virtual void setActivelyBackgroundLoading ()
 
- Protected Attributes inherited from makVrv::DtModel
DtLoaderHandle * myInLoadQueueHandle
 
DtDe & myDe
 
const DtUniqueID myUniqueId
 
DtUniqueID myElementId
 
DtUniqueID myParentSceneObjectID
 
DtModelInstance * myBackgroundModelInstance
 
TransformList myTransforms
 
DtModelInstance * myModelInstance
 
DtModelSetId myModelSet
 
int myVisualizerType
 
bool myContributesToBound
 
bool myIsPropFlag
 
bool myColorBlendingEnabled
 
bool myVisibleFlag
 
float myBlendColor [4]
 
unsigned int mySensorMask
 
DtVector myPositionOffset
 
DtTaitBryan myOrientationOffset
 
std::string myModelDefinitionName
 
float myMinLastFrameDistance
 
bool myRequireModelInstance
 
- Static Protected Attributes inherited from makVrv::DtModel
static bool theInittedState
 

Constructor & Destructor Documentation

makVrv::DtLightModel::DtLightModel ( DtDe &  de,
DtUniqueID  id 
)
inline

CTOR.

virtual makVrv::DtLightModel::~DtLightModel ( )
inlinevirtual

DTOR.

makVrv::DtLightModel::DtLightModel ( )
delete

not allowed

makVrv::DtLightModel::DtLightModel ( const DtLightModel &  )
delete

not allowed

makVrv::DtLightModel::DtLightModel ( const DtLightModel &&  )
delete

not allowed

Member Function Documentation

DtLightModel& makVrv::DtLightModel::operator= ( const DtLightModel &  )
delete

not allowed

DtLightModel& makVrv::DtLightModel::operator= ( const DtLightModel &&  )
delete

not allowed

virtual void makVrv::DtLightModel::setOn ( bool  bOn)
pure virtual

Set whether the light is on or off.

Implemented in makVrv::DtOsgLightModel.

virtual bool makVrv::DtLightModel::isOn ( ) const
pure virtual

Get whether the light is on or off.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setLightType ( unsigned int  lightType)
pure virtual

Set the light type (directional, point, spotlight)

Implemented in makVrv::DtOsgLightModel.

virtual unsigned int makVrv::DtLightModel::lightType ( ) const
pure virtual

Get the light type.

Implemented in makVrv::DtOsgLightModel.

virtual const DtVector& makVrv::DtLightModel::lightPosition ( ) const
pure virtual

Get the position of the light.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setLightDirection ( const DtVector &  direction)
pure virtual

Set the direction of the light (for directional and spot lights)

Implemented in makVrv::DtOsgLightModel.

virtual const DtVector& makVrv::DtLightModel::lightDirection ( ) const
pure virtual

Get the direction of the light.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setDiffuseColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Set the diffuse color of the light.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setAmbientColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Set the ambient color of the light.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setSpecularColor ( float  r,
float  g,
float  b,
float  a 
)
pure virtual

Set the specular color of the light.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setRange ( float  range)
pure virtual

Set the range of the light (for point and spot lights)

Implemented in makVrv::DtOsgLightModel.

virtual float makVrv::DtLightModel::range ( ) const
pure virtual

Get the range of the light.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setAttenuation ( float  constant,
float  linear,
float  quadratic 
)
pure virtual

Set attenuation factors for the light.

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setSpotLightParameters ( float  innerAngleDegrees,
float  outerAngleDegrees,
float  falloff 
)
pure virtual

Set spotlight parameters (inner angle, outer angle, falloff)

Implemented in makVrv::DtOsgLightModel.

virtual void makVrv::DtLightModel::setSensorMask ( unsigned int  mask)
pure virtual

Set the sensor mask (which sensor modes the light is visible in)

Reimplemented from makVrv::DtModel.

Implemented in makVrv::DtOsgLightModel.

virtual unsigned int makVrv::DtLightModel::sensorMask ( ) const
pure virtual

Get the sensor mask.

Implemented in makVrv::DtOsgLightModel.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)