Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::SpotLight Class Reference

Spot Light. More...

#include <OSGSpotLight.h>

Inheritance diagram for osg::SpotLight:

osg::SpotLightBase osg::PointLight osg::PointLightBase osg::Light osg::LightBase osg::NodeCore osg::AttachmentContainer osg::FieldContainer List of all members.

Public Types

typedef SpotLightPtr Ptr
enum  { DirectionFieldId = Inherited::NextFieldId, SpotExponentFieldId = DirectionFieldId + 1, SpotCutOffFieldId = SpotExponentFieldId + 1, NextFieldId = SpotCutOffFieldId + 1 }

Public Member Functions

Set
*void setAmbient (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setAmbient (const Color4f &col)
 Set the value of the Light::_sfAmbient field.
void setDiffuse (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setDiffuse (const Color4f &col)
 Set the value of the Light::_sfDiffuse field.
void setSpecular (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setSpecular (const Color4f &col)
 Set the value of the Light::_sfSpecular field.
Chunk
*LightChunkPtr getChunk (void)
Field Get
*SFColor4fgetSFAmbient (void)
 Get the Light::_sfAmbient field.
SFColor4fgetSFDiffuse (void)
 Get the Light::_sfDiffuse field.
SFColor4fgetSFSpecular (void)
 Get the Light::_sfSpecular field.
SFNodePtrgetSFBeacon (void)
 Get the Light::_sfBeacon field.
SFBoolgetSFOn (void)
 Get the Light::_sfOn field.
SFReal32getSFConstantAttenuation (void)
 Get the Light::_sfConstantAttenuation field.
SFReal32getSFLinearAttenuation (void)
 Get the Light::_sfLinearAttenuation field.
SFReal32getSFQuadraticAttenuation (void)
 Get the Light::_sfQuadraticAttenuation field.
Color4fgetAmbient (void)
 Get the value of the Light::_sfAmbient field.
const Color4fgetAmbient (void) const
 Get the value of the Light::_sfAmbient field.
Color4fgetDiffuse (void)
 Get the value of the Light::_sfDiffuse field.
const Color4fgetDiffuse (void) const
 Get the value of the Light::_sfDiffuse field.
Color4fgetSpecular (void)
 Get the value of the Light::_sfSpecular field.
const Color4fgetSpecular (void) const
 Get the value of the Light::_sfSpecular field.
NodePtrgetBeacon (void)
 Get the value of the Light::_sfBeacon field.
const NodePtrgetBeacon (void) const
 Get the value of the Light::_sfBeacon field.
bool & getOn (void)
 Get the value of the Light::_sfOn field.
const bool & getOn (void) const
 Get the value of the Light::_sfOn field.
Real32getConstantAttenuation (void)
 Get the value of the Light::_sfConstantAttenuation field.
const Real32getConstantAttenuation (void) const
 Get the value of the Light::_sfConstantAttenuation field.
Real32getLinearAttenuation (void)
 Get the value of the Light::_sfLinearAttenuation field.
const Real32getLinearAttenuation (void) const
 Get the value of the Light::_sfLinearAttenuation field.
Real32getQuadraticAttenuation (void)
 Get the value of the Light::_sfQuadraticAttenuation field.
const Real32getQuadraticAttenuation (void) const
 Get the value of the Light::_sfQuadraticAttenuation field.
Field Set
void setBeacon (const NodePtr &value)
 Set the value of the Light::_sfBeacon field.
void setOn (const bool &value)
 Set the value of the Light::_sfOn field.
void setConstantAttenuation (const Real32 &value)
 Set the value of the Light::_sfConstantAttenuation field.
void setLinearAttenuation (const Real32 &value)
 Set the value of the Light::_sfLinearAttenuation field.
void setQuadraticAttenuation (const Real32 &value)
 Set the value of the Light::_sfQuadraticAttenuation field.
Parents
*MFNodePtrgetParents (void)
const MFNodePtrgetParents (void) const
MFNodePtrgetMFParents (void)
Volume
*virtual void invalidateVolume (void)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Parents
*MFNodePtrgetParents (void)
const MFNodePtrgetParents (void) const
MFNodePtrgetMFParents (void)
Volume
*virtual void invalidateVolume (void)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Access Fields
*void setPosition (Real32 rX, Real32 rY, Real32 rZ)
void setPosition (const Pnt3f &pos)
 Set the value of the PointLight::_sfPosition field.
void setAttenuation (Real32 rConstant, Real32 rLinear, Real32 rQuadratic)
Field Get
*SFPnt3fgetSFPosition (void)
 Get the PointLight::_sfPosition field.
Pnt3fgetPosition (void)
 Get the value of the PointLight::_sfPosition field.
const Pnt3fgetPosition (void) const
 Get the value of the PointLight::_sfPosition field.
Set
*void setAmbient (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setAmbient (const Color4f &col)
 Set the value of the Light::_sfAmbient field.
void setDiffuse (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setDiffuse (const Color4f &col)
 Set the value of the Light::_sfDiffuse field.
void setSpecular (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setSpecular (const Color4f &col)
 Set the value of the Light::_sfSpecular field.
Chunk
*LightChunkPtr getChunk (void)
Field Get
*SFColor4fgetSFAmbient (void)
 Get the Light::_sfAmbient field.
SFColor4fgetSFDiffuse (void)
 Get the Light::_sfDiffuse field.
SFColor4fgetSFSpecular (void)
 Get the Light::_sfSpecular field.
SFNodePtrgetSFBeacon (void)
 Get the Light::_sfBeacon field.
SFBoolgetSFOn (void)
 Get the Light::_sfOn field.
SFReal32getSFConstantAttenuation (void)
 Get the Light::_sfConstantAttenuation field.
SFReal32getSFLinearAttenuation (void)
 Get the Light::_sfLinearAttenuation field.
SFReal32getSFQuadraticAttenuation (void)
 Get the Light::_sfQuadraticAttenuation field.
Color4fgetAmbient (void)
 Get the value of the Light::_sfAmbient field.
const Color4fgetAmbient (void) const
 Get the value of the Light::_sfAmbient field.
Color4fgetDiffuse (void)
 Get the value of the Light::_sfDiffuse field.
const Color4fgetDiffuse (void) const
 Get the value of the Light::_sfDiffuse field.
Color4fgetSpecular (void)
 Get the value of the Light::_sfSpecular field.
const Color4fgetSpecular (void) const
 Get the value of the Light::_sfSpecular field.
NodePtrgetBeacon (void)
 Get the value of the Light::_sfBeacon field.
const NodePtrgetBeacon (void) const
 Get the value of the Light::_sfBeacon field.
bool & getOn (void)
 Get the value of the Light::_sfOn field.
const bool & getOn (void) const
 Get the value of the Light::_sfOn field.
Real32getConstantAttenuation (void)
 Get the value of the Light::_sfConstantAttenuation field.
const Real32getConstantAttenuation (void) const
 Get the value of the Light::_sfConstantAttenuation field.
Real32getLinearAttenuation (void)
 Get the value of the Light::_sfLinearAttenuation field.
const Real32getLinearAttenuation (void) const
 Get the value of the Light::_sfLinearAttenuation field.
Real32getQuadraticAttenuation (void)
 Get the value of the Light::_sfQuadraticAttenuation field.
const Real32getQuadraticAttenuation (void) const
 Get the value of the Light::_sfQuadraticAttenuation field.
Field Set
void setBeacon (const NodePtr &value)
 Set the value of the Light::_sfBeacon field.
void setOn (const bool &value)
 Set the value of the Light::_sfOn field.
void setConstantAttenuation (const Real32 &value)
 Set the value of the Light::_sfConstantAttenuation field.
void setLinearAttenuation (const Real32 &value)
 Set the value of the Light::_sfLinearAttenuation field.
void setQuadraticAttenuation (const Real32 &value)
 Set the value of the Light::_sfQuadraticAttenuation field.
Parents
*MFNodePtrgetParents (void)
const MFNodePtrgetParents (void) const
MFNodePtrgetMFParents (void)
Volume
*virtual void invalidateVolume (void)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)
Set
*void setSpotDirection (Real32 rX, Real32 rY, Real32 rZ)
void setSpotCutOffDeg (Real32 angle)
Get
*Real32 getSpotCutOffDeg (void)
Sync
*virtual void changed (BitVector whichField, UInt32 origin)
Chunk
*virtual void makeChunk (void)
Dump
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFVec3fgetSFDirection (void)
 Get the SpotLight::_sfDirection field.
SFReal32getSFSpotExponent (void)
 Get the SpotLight::_sfSpotExponent field.
SFReal32getSFSpotCutOff (void)
 Get the SpotLight::_sfSpotCutOff field.
Vec3fgetDirection (void)
 Get the value of the SpotLight::_sfDirection field.
const Vec3fgetDirection (void) const
 Get the value of the SpotLight::_sfDirection field.
Real32getSpotExponent (void)
 Get the value of the SpotLight::_sfSpotExponent field.
const Real32getSpotExponent (void) const
 Get the value of the SpotLight::_sfSpotExponent field.
Real32getSpotCutOff (void)
 Get the value of the SpotLight::_sfSpotCutOff field.
const Real32getSpotCutOff (void) const
 Get the value of the SpotLight::_sfSpotCutOff field.
Field Set
*void setDirection (const Vec3f &value)
 Set the value of the SpotLight::_sfDirection field.
void setSpotExponent (const Real32 &value)
 Set the value of the SpotLight::_sfSpotExponent field.
void setSpotCutOff (const Real32 &value)
 Set the value of the SpotLight::_sfSpotCutOff field.
Binary Access
*virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Copy
*virtual FieldContainerPtr shallowCopy (void) const
Access Fields
*void setPosition (Real32 rX, Real32 rY, Real32 rZ)
void setPosition (const Pnt3f &pos)
 Set the value of the PointLight::_sfPosition field.
void setAttenuation (Real32 rConstant, Real32 rLinear, Real32 rQuadratic)
Field Get
*SFPnt3fgetSFPosition (void)
 Get the PointLight::_sfPosition field.
Pnt3fgetPosition (void)
 Get the value of the PointLight::_sfPosition field.
const Pnt3fgetPosition (void) const
 Get the value of the PointLight::_sfPosition field.
Set
*void setAmbient (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setAmbient (const Color4f &col)
 Set the value of the Light::_sfAmbient field.
void setDiffuse (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setDiffuse (const Color4f &col)
 Set the value of the Light::_sfDiffuse field.
void setSpecular (Real32 rRed, Real32 rGreen, Real32 rBlue, Real32 rAlpha)
void setSpecular (const Color4f &col)
 Set the value of the Light::_sfSpecular field.
Chunk
*LightChunkPtr getChunk (void)
Field Get
*SFColor4fgetSFAmbient (void)
 Get the Light::_sfAmbient field.
SFColor4fgetSFDiffuse (void)
 Get the Light::_sfDiffuse field.
SFColor4fgetSFSpecular (void)
 Get the Light::_sfSpecular field.
SFNodePtrgetSFBeacon (void)
 Get the Light::_sfBeacon field.
SFBoolgetSFOn (void)
 Get the Light::_sfOn field.
SFReal32getSFConstantAttenuation (void)
 Get the Light::_sfConstantAttenuation field.
SFReal32getSFLinearAttenuation (void)
 Get the Light::_sfLinearAttenuation field.
SFReal32getSFQuadraticAttenuation (void)
 Get the Light::_sfQuadraticAttenuation field.
Color4fgetAmbient (void)
 Get the value of the Light::_sfAmbient field.
const Color4fgetAmbient (void) const
 Get the value of the Light::_sfAmbient field.
Color4fgetDiffuse (void)
 Get the value of the Light::_sfDiffuse field.
const Color4fgetDiffuse (void) const
 Get the value of the Light::_sfDiffuse field.
Color4fgetSpecular (void)
 Get the value of the Light::_sfSpecular field.
const Color4fgetSpecular (void) const
 Get the value of the Light::_sfSpecular field.
NodePtrgetBeacon (void)
 Get the value of the Light::_sfBeacon field.
const NodePtrgetBeacon (void) const
 Get the value of the Light::_sfBeacon field.
bool & getOn (void)
 Get the value of the Light::_sfOn field.
const bool & getOn (void) const
 Get the value of the Light::_sfOn field.
Real32getConstantAttenuation (void)
 Get the value of the Light::_sfConstantAttenuation field.
const Real32getConstantAttenuation (void) const
 Get the value of the Light::_sfConstantAttenuation field.
Real32getLinearAttenuation (void)
 Get the value of the Light::_sfLinearAttenuation field.
const Real32getLinearAttenuation (void) const
 Get the value of the Light::_sfLinearAttenuation field.
Real32getQuadraticAttenuation (void)
 Get the value of the Light::_sfQuadraticAttenuation field.
const Real32getQuadraticAttenuation (void) const
 Get the value of the Light::_sfQuadraticAttenuation field.
Field Set
void setBeacon (const NodePtr &value)
 Set the value of the Light::_sfBeacon field.
void setOn (const bool &value)
 Set the value of the Light::_sfOn field.
void setConstantAttenuation (const Real32 &value)
 Set the value of the Light::_sfConstantAttenuation field.
void setLinearAttenuation (const Real32 &value)
 Set the value of the Light::_sfLinearAttenuation field.
void setQuadraticAttenuation (const Real32 &value)
 Set the value of the Light::_sfQuadraticAttenuation field.
Parents
*MFNodePtrgetParents (void)
const MFNodePtrgetParents (void) const
MFNodePtrgetMFParents (void)
Volume
*virtual void invalidateVolume (void)
Handle Attachments
*void addAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
void subAttachment (const AttachmentPtr &fieldContainerP, UInt16 binding=0)
AttachmentPtr findAttachment (UInt32 groupId, UInt16 binding=0)
AttachmentPtr findAttachment (const FieldContainerType &type, UInt16 binding=0)
Field Access *SFAttachmentMapgetSFAttachments (void)
Get Instance Type Information
UInt32 getTypeId (void) const
UInt16 getGroupId (void) const
const Char8getTypeName (void) const
Generic Field Access *FieldgetField (UInt32 fieldId)
FieldgetField (const Char8 *fieldName)

Static Public Member Functions

Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Get Class Type Information
static UInt16 getClassGroupId (void)
Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
Construction
*static SpotLightPtr create (void)
 create a new instance of the class
static SpotLightPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype
Get Class Type Information
static UInt16 getClassGroupId (void)

Static Public Attributes

static const osg::BitVector DirectionFieldMask
static const osg::BitVector SpotExponentFieldMask
static const osg::BitVector SpotCutOffFieldMask
static const osg::BitVector MTInfluenceMask
static const osg::BitVector PositionFieldMask
static const osg::BitVector AmbientFieldMask
static const osg::BitVector DiffuseFieldMask
static const osg::BitVector SpecularFieldMask
static const osg::BitVector BeaconFieldMask
static const osg::BitVector OnFieldMask
static const osg::BitVector ConstantAttenuationFieldMask
static const osg::BitVector LinearAttenuationFieldMask
static const osg::BitVector QuadraticAttenuationFieldMa