#include <OSGSpotLight.h>
Inheritance diagram for osg::SpotLight:

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 | |
| *SFColor4f * | getSFAmbient (void) |
| Get the Light::_sfAmbient field. | |
| SFColor4f * | getSFDiffuse (void) |
| Get the Light::_sfDiffuse field. | |
| SFColor4f * | getSFSpecular (void) |
| Get the Light::_sfSpecular field. | |
| SFNodePtr * | getSFBeacon (void) |
| Get the Light::_sfBeacon field. | |
| SFBool * | getSFOn (void) |
| Get the Light::_sfOn field. | |
| SFReal32 * | getSFConstantAttenuation (void) |
| Get the Light::_sfConstantAttenuation field. | |
| SFReal32 * | getSFLinearAttenuation (void) |
| Get the Light::_sfLinearAttenuation field. | |
| SFReal32 * | getSFQuadraticAttenuation (void) |
| Get the Light::_sfQuadraticAttenuation field. | |
| Color4f & | getAmbient (void) |
| Get the value of the Light::_sfAmbient field. | |
| const Color4f & | getAmbient (void) const |
| Get the value of the Light::_sfAmbient field. | |
| Color4f & | getDiffuse (void) |
| Get the value of the Light::_sfDiffuse field. | |
| const Color4f & | getDiffuse (void) const |
| Get the value of the Light::_sfDiffuse field. | |
| Color4f & | getSpecular (void) |
| Get the value of the Light::_sfSpecular field. | |
| const Color4f & | getSpecular (void) const |
| Get the value of the Light::_sfSpecular field. | |
| NodePtr & | getBeacon (void) |
| Get the value of the Light::_sfBeacon field. | |
| const NodePtr & | getBeacon (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. | |
| Real32 & | getConstantAttenuation (void) |
| Get the value of the Light::_sfConstantAttenuation field. | |
| const Real32 & | getConstantAttenuation (void) const |
| Get the value of the Light::_sfConstantAttenuation field. | |
| Real32 & | getLinearAttenuation (void) |
| Get the value of the Light::_sfLinearAttenuation field. | |
| const Real32 & | getLinearAttenuation (void) const |
| Get the value of the Light::_sfLinearAttenuation field. | |
| Real32 & | getQuadraticAttenuation (void) |
| Get the value of the Light::_sfQuadraticAttenuation field. | |
| const Real32 & | getQuadraticAttenuation (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 | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (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 *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (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 *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (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 *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (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 *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (const Char8 *fieldName) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (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 | |
| *SFPnt3f * | getSFPosition (void) |
| Get the PointLight::_sfPosition field. | |
| Pnt3f & | getPosition (void) |
| Get the value of the PointLight::_sfPosition field. | |
| const Pnt3f & | getPosition (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 | |
| *SFColor4f * | getSFAmbient (void) |
| Get the Light::_sfAmbient field. | |
| SFColor4f * | getSFDiffuse (void) |
| Get the Light::_sfDiffuse field. | |
| SFColor4f * | getSFSpecular (void) |
| Get the Light::_sfSpecular field. | |
| SFNodePtr * | getSFBeacon (void) |
| Get the Light::_sfBeacon field. | |
| SFBool * | getSFOn (void) |
| Get the Light::_sfOn field. | |
| SFReal32 * | getSFConstantAttenuation (void) |
| Get the Light::_sfConstantAttenuation field. | |
| SFReal32 * | getSFLinearAttenuation (void) |
| Get the Light::_sfLinearAttenuation field. | |
| SFReal32 * | getSFQuadraticAttenuation (void) |
| Get the Light::_sfQuadraticAttenuation field. | |
| Color4f & | getAmbient (void) |
| Get the value of the Light::_sfAmbient field. | |
| const Color4f & | getAmbient (void) const |
| Get the value of the Light::_sfAmbient field. | |
| Color4f & | getDiffuse (void) |
| Get the value of the Light::_sfDiffuse field. | |
| const Color4f & | getDiffuse (void) const |
| Get the value of the Light::_sfDiffuse field. | |
| Color4f & | getSpecular (void) |
| Get the value of the Light::_sfSpecular field. | |
| const Color4f & | getSpecular (void) const |
| Get the value of the Light::_sfSpecular field. | |
| NodePtr & | getBeacon (void) |
| Get the value of the Light::_sfBeacon field. | |
| const NodePtr & | getBeacon (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. | |
| Real32 & | getConstantAttenuation (void) |
| Get the value of the Light::_sfConstantAttenuation field. | |
| const Real32 & | getConstantAttenuation (void) const |
| Get the value of the Light::_sfConstantAttenuation field. | |
| Real32 & | getLinearAttenuation (void) |
| Get the value of the Light::_sfLinearAttenuation field. | |
| const Real32 & | getLinearAttenuation (void) const |
| Get the value of the Light::_sfLinearAttenuation field. | |
| Real32 & | getQuadraticAttenuation (void) |
| Get the value of the Light::_sfQuadraticAttenuation field. | |
| const Real32 & | getQuadraticAttenuation (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 | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (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 *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (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 FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
Field Get | |
| *SFVec3f * | getSFDirection (void) |
| Get the SpotLight::_sfDirection field. | |
| SFReal32 * | getSFSpotExponent (void) |
| Get the SpotLight::_sfSpotExponent field. | |
| SFReal32 * | getSFSpotCutOff (void) |
| Get the SpotLight::_sfSpotCutOff field. | |
| Vec3f & | getDirection (void) |
| Get the value of the SpotLight::_sfDirection field. | |
| const Vec3f & | getDirection (void) const |
| Get the value of the SpotLight::_sfDirection field. | |
| Real32 & | getSpotExponent (void) |
| Get the value of the SpotLight::_sfSpotExponent field. | |
| const Real32 & | getSpotExponent (void) const |
| Get the value of the SpotLight::_sfSpotExponent field. | |
| Real32 & | getSpotCutOff (void) |
| Get the value of the SpotLight::_sfSpotCutOff field. | |
| const Real32 & | getSpotCutOff (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 | |
| *SFPnt3f * | getSFPosition (void) |
| Get the PointLight::_sfPosition field. | |
| Pnt3f & | getPosition (void) |
| Get the value of the PointLight::_sfPosition field. | |
| const Pnt3f & | getPosition (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 | |
| *SFColor4f * | getSFAmbient (void) |
| Get the Light::_sfAmbient field. | |
| SFColor4f * | getSFDiffuse (void) |
| Get the Light::_sfDiffuse field. | |
| SFColor4f * | getSFSpecular (void) |
| Get the Light::_sfSpecular field. | |
| SFNodePtr * | getSFBeacon (void) |
| Get the Light::_sfBeacon field. | |
| SFBool * | getSFOn (void) |
| Get the Light::_sfOn field. | |
| SFReal32 * | getSFConstantAttenuation (void) |
| Get the Light::_sfConstantAttenuation field. | |
| SFReal32 * | getSFLinearAttenuation (void) |
| Get the Light::_sfLinearAttenuation field. | |
| SFReal32 * | getSFQuadraticAttenuation (void) |
| Get the Light::_sfQuadraticAttenuation field. | |
| Color4f & | getAmbient (void) |
| Get the value of the Light::_sfAmbient field. | |
| const Color4f & | getAmbient (void) const |
| Get the value of the Light::_sfAmbient field. | |
| Color4f & | getDiffuse (void) |
| Get the value of the Light::_sfDiffuse field. | |
| const Color4f & | getDiffuse (void) const |
| Get the value of the Light::_sfDiffuse field. | |
| Color4f & | getSpecular (void) |
| Get the value of the Light::_sfSpecular field. | |
| const Color4f & | getSpecular (void) const |
| Get the value of the Light::_sfSpecular field. | |
| NodePtr & | getBeacon (void) |
| Get the value of the Light::_sfBeacon field. | |
| const NodePtr & | getBeacon (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. | |
| Real32 & | getConstantAttenuation (void) |
| Get the value of the Light::_sfConstantAttenuation field. | |
| const Real32 & | getConstantAttenuation (void) const |
| Get the value of the Light::_sfConstantAttenuation field. | |
| Real32 & | getLinearAttenuation (void) |
| Get the value of the Light::_sfLinearAttenuation field. | |
| const Real32 & | getLinearAttenuation (void) const |
| Get the value of the Light::_sfLinearAttenuation field. | |
| Real32 & | getQuadraticAttenuation (void) |
| Get the value of the Light::_sfQuadraticAttenuation field. | |
| const Real32 & | getQuadraticAttenuation (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 | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (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 *SFAttachmentMap * | getSFAttachments (void) |
Get Instance Type Information | |
| UInt32 | getTypeId (void) const |
| UInt16 | getGroupId (void) const |
| const Char8 * | getTypeName (void) const |
| Generic Field Access *Field * | getField (UInt32 fieldId) |
| Field * | getField (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 FieldContainerType & | getClassType (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 |