#include <OSGLightBase.h>
Inheritance diagram for osg::LightBase:

Public Types | |
| typedef LightPtr | Ptr |
| enum | { AmbientFieldId = Inherited::NextFieldId, DiffuseFieldId = AmbientFieldId + 1, SpecularFieldId = DiffuseFieldId + 1, BeaconFieldId = SpecularFieldId + 1, OnFieldId = BeaconFieldId + 1, ConstantAttenuationFieldId = OnFieldId + 1, LinearAttenuationFieldId = ConstantAttenuationFieldId + 1, QuadraticAttenuationFieldId = LinearAttenuationFieldId + 1, NextFieldId = QuadraticAttenuationFieldId + 1 } |
Public Member Functions | |
FieldContainer Get | |
| *virtual FieldContainerType & | getType (void) |
| virtual const FieldContainerType & | getType (void) const |
| virtual UInt32 | getContainerSize (void) const |
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 | setAmbient (const Color4f &value) |
| Set the value of the Light::_sfAmbient field. | |
| void | setDiffuse (const Color4f &value) |
| Set the value of the Light::_sfDiffuse field. | |
| void | setSpecular (const Color4f &value) |
| Set the value of the Light::_sfSpecular field. | |
| 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. | |
Binary Access | |
| *virtual UInt32 | getBinSize (const BitVector &whichField) |
| virtual void | copyToBin (BinaryDataHandler &pMem, const BitVector &whichField) |
| virtual void | copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField) |
Parents | |
| *MFNodePtr & | getParents (void) |
| const MFNodePtr & | getParents (void) const |
| MFNodePtr * | getMFParents (void) |
Dump | |
| *virtual void | dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const |
Volume | |
| *virtual void | invalidateVolume (void) |
Changed | |
| *virtual void | changed (BitVector whichField, UInt32 origin) |
Clone | |
| *virtual FieldContainerPtr | shallowCopy (void) const =0 |
Static Public Member Functions | |
Class Get | |
| *static FieldContainerType & | getClassType (void) |
| access the type of the class | |
| static UInt32 | getClassTypeId (void) |
| access the numerical type of the class | |
Static Public Attributes | |
| 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 | QuadraticAttenuationFieldMask |
| static const osg::BitVector | MTInfluenceMask |
| static const BitVector | ParentsFieldMask = (1 << NodeCore::ParentsFieldId ) |
| static const BitVector | AttachmentsFieldMask |
| static const BitVector | NextFieldMask |
CoredNodePtr helper | |
| *static const bool | isNodeCore = true |
Protected Member Functions | |
Constructors | |
| * | LightBase (void) |
| LightBase (const LightBase &source) | |
Destructors | |
| *virtual | ~LightBase (void) |
Sync | |
| *void | executeSyncImpl (LightBase *pOther, const BitVector &whichField) |
| virtual void | executeSync (FieldContainer &other, const BitVector &whichField) |
MT Destruction | |
| *virtual void | onDestroy (void) |
Set / Get Parents | |
| *void | addParent (const NodePtr &parent) |
| void | subParent (const NodePtr &parent) |
Pointer | |
| *NodeCorePtr | getPtr (void) const |
Sync | |
| void | executeSyncImpl (NodeCore *pOther, const BitVector &whichField) |
Transformation | |
| *virtual void | accumulateMatrix (Matrix &result) |
Volume | |
| *virtual void | adjustVolume (Volume &volume) |
Protected Attributes | |
Fields | |
| *SFColor4f | _sfAmbient |
| SFColor4f | _sfDiffuse |
| SFColor4f | _sfSpecular |
| SFNodePtr | _sfBeacon |
| SFBool | _sfOn |
| SFReal32 | _sfConstantAttenuation |
| SFReal32 | _sfLinearAttenuation |
| SFReal32 | _sfQuadraticAttenuation |
Fields | |
| *MFNodePtr | _parents |
Private Types | |
| typedef NodeCore | Inherited |
Private Member Functions | |
| void | operator= (const LightBase &source) |
Static Private Attributes | |
| static FieldDescription * | _desc [] |
| Light description. | |
| static FieldContainerType | _type |
Friends | |
| class | FieldContainer |
Definition at line 88 of file OSGLightBase.h.
|
|
Reimplemented from osg::NodeCore. Reimplemented in osg::DirectionalLight, osg::DirectionalLightBase, osg::Light, osg::PointLight, osg::PointLightBase, osg::SpotLight, and osg::SpotLightBase. Definition at line 92 of file OSGLightBase.h. |
|
|
Reimplemented in osg::DirectionalLightBase, osg::PointLightBase, and osg::SpotLightBase. Definition at line 97 of file OSGLightBase.h. |
|
|
Reimplemented from osg::NodeCore. Definition at line 99 of file OSGLightBase.h. 00100 { 00101 AmbientFieldId = Inherited::NextFieldId, 00102 DiffuseFieldId = AmbientFieldId + 1, 00103 SpecularFieldId = DiffuseFieldId + 1, 00104 BeaconFieldId = SpecularFieldId + 1, 00105 OnFieldId = BeaconFieldId + 1, 00106 ConstantAttenuationFieldId = OnFieldId + 1, 00107 LinearAttenuationFieldId = ConstantAttenuationFieldId + 1, 00108 QuadraticAttenuationFieldId = LinearAttenuationFieldId + 1, 00109 NextFieldId = QuadraticAttenuationFieldId + 1 00110 };
|
|
|
Definition at line 232 of file OSGLightBase.cpp. 00232 : 00233 _sfAmbient (Color4f(0,0,0,1)), 00234 _sfDiffuse (Color4f(1,1,1,1)), 00235 _sfSpecular (Color4f(1,1,1,1)), 00236 _sfBeacon (), 00237 _sfOn (bool(true)), 00238 _sfConstantAttenuation (Real32(1)), 00239 _sfLinearAttenuation (Real32(0)), 00240 _sfQuadraticAttenuation (Real32(0)), 00241 Inherited() 00242 { 00243 }
|
|
|
Definition at line 249 of file OSGLightBase.cpp. 00249 : 00250 _sfAmbient (source._sfAmbient ), 00251 _sfDiffuse (source._sfDiffuse ), 00252 _sfSpecular (source._sfSpecular ), 00253 _sfBeacon (source._sfBeacon ), 00254 _sfOn (source._sfOn ), 00255 _sfConstantAttenuation (source._sfConstantAttenuation ), 00256 _sfLinearAttenuation (source._sfLinearAttenuation ), 00257 _sfQuadraticAttenuation (source._sfQuadraticAttenuation ), 00258 Inherited (source) 00259 { 00260 }
|
|
|
Definition at line 264 of file OSGLightBase.cpp.
|
|
|
Reimplemented from osg::NodeCore. Reimplemented in osg::DirectionalLightBase, osg::PointLightBase, and osg::SpotLightBase. Definition at line 58 of file OSGLightBase.inl. References _type. 00059 { 00060 return _type; 00061 }
|
|
|
Reimplemented from osg::NodeCore. Reimplemented in osg::DirectionalLightBase, osg::PointLightBase, and osg::SpotLightBase. Definition at line 65 of file OSGLightBase.inl. References _type, and osg::TypeBase::getId(). 00066 { 00067 return _type.getId(); 00068 }
|
|
|
Reimplemented from osg::NodeCore. Reimplemented in osg::DirectionalLightBase, osg::PointLightBase, and osg::SpotLightBase. Definition at line 183 of file OSGLightBase.cpp. References _type. 00184 { 00185 return _type; 00186 }
|
|
|
Reimplemented from osg::NodeCore. Reimplemented in osg::DirectionalLightBase, osg::PointLightBase, and osg::SpotLightBase. Definition at line 188 of file OSGLightBase.cpp. References _type. 00189 { 00190 return _type; 00191 }
|
|
|
Reimplemented from osg::NodeCore. Reimplemented in osg::DirectionalLightBase, osg::PointLightBase, and osg::SpotLightBase. Definition at line 194 of file OSGLightBase.cpp. 00195 { 00196 return sizeof(Light); 00197 }
|
|
|
Definition at line 75 of file OSGLightBase.inl. References _sfAmbient. 00076 { 00077 return &_sfAmbient; 00078 }
|
|
|
Definition at line 82 of file OSGLightBase.inl. References _sfDiffuse. 00083 { 00084 return &_sfDiffuse; 00085 }
|
|
|
Definition at line 89 of file OSGLightBase.inl. References _sfSpecular. 00090 { 00091 return &_sfSpecular; 00092 }
|
|
|
Definition at line 96 of file OSGLightBase.inl. References _sfBeacon. 00097 { 00098 return &_sfBeacon; 00099 }
|
|
|
Definition at line 103 of file OSGLightBase.inl. References _sfOn. 00104 { 00105 return &_sfOn; 00106 }
|
|
|
Definition at line 110 of file OSGLightBase.inl. References _sfConstantAttenuation. 00111 { 00112 return &_sfConstantAttenuation; 00113 }
|
|
|
Definition at line 117 of file OSGLightBase.inl. References _sfLinearAttenuation. 00118 { 00119 return &_sfLinearAttenuation; 00120 }
|
|
|
Definition at line 124 of file OSGLightBase.inl. References _sfQuadraticAttenuation. 00125 { 00126 return &_sfQuadraticAttenuation; 00127 }
|
|
|
Definition at line 132 of file OSGLightBase.inl. References _sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Light::makeChunk(). 00133 { 00134 return _sfAmbient.getValue(); 00135 }
|
|
|
Definition at line 139 of file OSGLightBase.inl. References _sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00140 { 00141 return _sfAmbient.getValue(); 00142 }
|
|
|
Definition at line 153 of file OSGLightBase.inl. References _sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Light::makeChunk(). 00154 { 00155 return _sfDiffuse.getValue(); 00156 }
|
|
|
Definition at line 160 of file OSGLightBase.inl. References _sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00161 { 00162 return _sfDiffuse.getValue(); 00163 }
|
|
|
Definition at line 174 of file OSGLightBase.inl. References _sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Light::makeChunk(). 00175 { 00176 return _sfSpecular.getValue(); 00177 }
|
|
|
Definition at line 181 of file OSGLightBase.inl. References _sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00182 { 00183 return _sfSpecular.getValue(); 00184 }
|
|
|
Definition at line 195 of file OSGLightBase.inl. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::Light::drawEnter(), and osg::RenderAction::dropLight(). 00196 { 00197 return _sfBeacon.getValue(); 00198 }
|
|
|
Definition at line 202 of file OSGLightBase.inl. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00203 { 00204 return _sfBeacon.getValue(); 00205 }
|
|
|
Definition at line 216 of file OSGLightBase.inl. References _sfOn, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::SpotLight::drawEnter(), osg::PointLight::drawEnter(), osg::DirectionalLight::drawEnter(), osg::SpotLight::drawLeave(), osg::PointLight::drawLeave(), osg::DirectionalLight::drawLeave(), osg::SpotLight::renderEnter(), osg::PointLight::renderEnter(), osg::DirectionalLight::renderEnter(), osg::SpotLight::renderLeave(), osg::PointLight::renderLeave(), and osg::DirectionalLight::renderLeave(). 00217 { 00218 return _sfOn.getValue(); 00219 }
|
|
|
Definition at line 223 of file OSGLightBase.inl. References _sfOn, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00224 { 00225 return _sfOn.getValue(); 00226 }
|
|
|
Definition at line 237 of file OSGLightBase.inl. References _sfConstantAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PointLight::makeChunk(). 00238 { 00239 return _sfConstantAttenuation.getValue(); 00240 }
|
|
|
Definition at line 244 of file OSGLightBase.inl. References _sfConstantAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00245 { 00246 return _sfConstantAttenuation.getValue(); 00247 }
|
|
|
Definition at line 258 of file OSGLightBase.inl. References _sfLinearAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PointLight::makeChunk(). 00259 { 00260 return _sfLinearAttenuation.getValue(); 00261 }
|
|
|
Definition at line 265 of file OSGLightBase.inl. References _sfLinearAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00266 { 00267 return _sfLinearAttenuation.getValue(); 00268 }
|
|
|
Definition at line 279 of file OSGLightBase.inl. References _sfQuadraticAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). Referenced by osg::PointLight::makeChunk(). 00280 { 00281 return _sfQuadraticAttenuation.getValue(); 00282 }
|
|
|
Definition at line 286 of file OSGLightBase.inl. References _sfQuadraticAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::getValue(). 00287 { 00288 return _sfQuadraticAttenuation.getValue(); 00289 }
|
|
|
Reimplemented in osg::Light. Definition at line 146 of file OSGLightBase.inl. References _sfAmbient, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). Referenced by osg::Light::setAmbient(). 00147 { 00148 _sfAmbient.setValue(value); 00149 }
|
|
|
Reimplemented in osg::Light. Definition at line 167 of file OSGLightBase.inl. References _sfDiffuse, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). Referenced by osg::Light::setDiffuse(). 00168 { 00169 _sfDiffuse.setValue(value); 00170 }
|
|
|
Reimplemented in osg::Light. Definition at line 188 of file OSGLightBase.inl. References _sfSpecular, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). Referenced by osg::Light::setSpecular(). 00189 { 00190 _sfSpecular.setValue(value); 00191 }
|
|
|
Definition at line 209 of file OSGLightBase.inl. References _sfBeacon, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 230 of file OSGLightBase.inl. References _sfOn, and osg::SField< FieldTypeT, fieldNameSpace >::setValue().
|
|
|
Definition at line 251 of file OSGLightBase.inl. References _sfConstantAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00252 { 00253 _sfConstantAttenuation.setValue(value); 00254 }
|
|
|
Definition at line 272 of file OSGLightBase.inl. References _sfLinearAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00273 { 00274 _sfLinearAttenuation.setValue(value); 00275 }
|
|
|
Definition at line 293 of file OSGLightBase.inl. References _sfQuadraticAttenuation, and osg::SField< FieldTypeT, fieldNameSpace >::setValue(). 00294 { 00295 _sfQuadraticAttenuation.setValue(value); 00296 }
|
|