libHSPlasma
Public Member Functions | Protected Member Functions | List of all members
plLimitedDirLightInfo Class Reference

#include <plDirectionalLightInfo.h>

Inheritance diagram for plLimitedDirLightInfo:
plDirectionalLightInfo plLightInfo plObjInterface plSynchedObject hsKeyedObject plCreatable

Public Member Functions

 plLimitedDirLightInfo ()
virtual void read (hsStream *S, plResManager *mgr)
virtual void write (hsStream *S, plResManager *mgr)
float getWidth () const
float getHeight () const
float getDepth () const
void setWidth (float width)
void setHeight (float height)
void setDepth (float depth)

Protected Member Functions

virtual void IPrcWrite (pfPrcHelper *prc)
virtual void IPrcParse (const pfPrcTag *tag, plResManager *mgr)

Additional Inherited Members

- Public Types inherited from plLightInfo
enum  {
  kDisable, kLPObsolete, kLPCastShadows, kLPMovable,
  kLPHasIncludes, kLPIncludesChars, kLP_OBSOLECTE_0, kLPOverAll,
  kLPHasSpecular, kLPShadowOnly, kLPShadowLightGroup, kLPForceProj,
  kNumProps
}
- Protected Attributes inherited from plLightInfo
std::vector< plKeyfVisRegions
hsColorRGBA fAmbient
hsColorRGBA fDiffuse
hsColorRGBA fSpecular
hsMatrix44 fLightToLocal
hsMatrix44 fLocalToLight
hsMatrix44 fLightToWorld
hsMatrix44 fWorldToLight
plKey fProjection
plKey fSoftVolume
plKey fSceneNode

Constructor & Destructor Documentation

plLimitedDirLightInfo::plLimitedDirLightInfo ( )

Member Function Documentation

float plLimitedDirLightInfo::getDepth ( ) const
float plLimitedDirLightInfo::getHeight ( ) const
float plLimitedDirLightInfo::getWidth ( ) const
virtual void plLimitedDirLightInfo::IPrcParse ( const pfPrcTag tag,
plResManager mgr 
)
protectedvirtual

This must be overloaded by subclasses to parse PRC data specific to the class from the PRC document. It is called once for each tag that is a child to the Creatable tag itself, so subclasses should check for each supported tag and handle it accordingly if it matches. If the tag is not recognized, it should be passed along to the parent class.

Reimplemented from plLightInfo.

virtual void plLimitedDirLightInfo::IPrcWrite ( pfPrcHelper prc)
protectedvirtual

This must be overloaded by subclasses to write PRC data specific to the class to the PRC document. Do not write the top-level creatable tag, that is handled by prcWrite().

Reimplemented from plLightInfo.

virtual void plLimitedDirLightInfo::read ( hsStream ,
plResManager  
)
virtual

Reads this creatable directly from the stream. If any keys are read, they will be added to the plResManager automatically.

Reimplemented from plLightInfo.

void plLimitedDirLightInfo::setDepth ( float  depth)
void plLimitedDirLightInfo::setHeight ( float  height)
void plLimitedDirLightInfo::setWidth ( float  width)
virtual void plLimitedDirLightInfo::write ( hsStream ,
plResManager  
)
virtual

Writes this creatable directly to the stream. The plResManager is used to manage any key references written by this creatable.

Reimplemented from plLightInfo.


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