ScummVM API documentation
Tetraedge::SceneLightsXmlParser Class Reference
Inheritance diagram for Tetraedge::SceneLightsXmlParser:
Tetraedge::TeXmlParser Common::XMLParser

Public Types

enum  ParentNodeType { ParentNone, ParentGlobal, ParentLight, ParentShadow }
 
- Public Types inherited from Common::XMLParser
enum  ParserState {
  kParserNeedHeader, kParserNeedKey, kParserNeedKeyName, kParserNeedPropertyName,
  kParserNeedPropertyOperator, kParserNeedPropertyValue, kParserError
}
 
typedef HashMap< String, XMLParser::XMLKeyLayout *, IgnoreCase_Hash, IgnoreCase_EqualToChildMap
 

Public Member Functions

 SceneLightsXmlParser (Common::Array< Common::SharedPtr< TeLight >> *lights)
 
TeColor getShadowColor ()
 
int getShadowLightNo ()
 
float getShadowFarPlane ()
 
float getShadowNearPlane ()
 
float getShadowFov ()
 
 CUSTOM_XML_PARSER (SceneLightsXmlParser)
 
bool parserCallback_Global (ParserNode *node)
 
bool parserCallback_Ambient (ParserNode *node)
 
bool parserCallback_Lights (ParserNode *node)
 
bool parserCallback_Light (ParserNode *node)
 
bool parserCallback_Position (ParserNode *node)
 
bool parserCallback_Direction (ParserNode *node)
 
bool parserCallback_Diffuse (ParserNode *node)
 
bool parserCallback_Specular (ParserNode *node)
 
bool parserCallback_Attenuation (ParserNode *node)
 
bool parserCallback_Cutoff (ParserNode *node)
 
bool parserCallback_Exponent (ParserNode *node)
 
bool parserCallback_DisplaySize (ParserNode *node)
 
bool parserCallback_Shadow (ParserNode *node)
 
bool parserCallback_SourceLight (ParserNode *node)
 
bool parserCallback_Fov (ParserNode *node)
 
bool parserCallback_NearPlane (ParserNode *node)
 
bool parserCallback_FarPlane (ParserNode *node)
 
bool parserCallback_Color (ParserNode *node)
 
- Public Member Functions inherited from Common::XMLParser
 XMLParser ()
 
ParserNodeallocNode ()
 
void freeNode (ParserNode *node)
 
bool loadFile (const Path &filename)
 
bool loadFile (const FSNode &node)
 
bool loadBuffer (const byte *buffer, uint32 size, DisposeAfterUse::Flag disposable=DisposeAfterUse::NO)
 
bool loadStream (SeekableReadStream *stream)
 
void close ()
 
bool parse ()
 
ParserNodegetActiveNode ()
 
ParserNodegetParentNode (ParserNode *child)
 
void setAllowText ()
 

Public Attributes

TeColor _shadowColor
 
int _shadowLightNo
 
float _shadowFarPlane
 
float _shadowNearPlane
 
float _shadowFov
 
ParentNodeType _parent
 
- Public Attributes inherited from Common::XMLParser
XMLKeyLayout_XMLkeys
 
ObjectPool< ParserNode, 8 > _nodePool
 

Additional Inherited Members

- Protected Member Functions inherited from Tetraedge::TeXmlParser
TeVector3f32 parsePoint (const ParserNode *node) const
 Parse a point with x/y/z attributes.
 
bool parseCol (const ParserNode *node, TeColor &colout)
 
double parseDouble (const ParserNode *node, const char *attr=nullptr) const
 
int parseUint (const ParserNode *node, const char *attr=nullptr) const
 
- Protected Member Functions inherited from Common::XMLParser
virtual void buildLayout ()=0
 
virtual bool keyCallback (ParserNode *node)=0
 
virtual bool closedKeyCallback (ParserNode *node)
 
virtual bool textCallback (const String &val)
 
bool closeKey ()
 
bool parseKeyValue (String keyName)
 
bool parseActiveKey (bool closed)
 
bool parserError (const String &errStr)
 
bool skipSpaces ()
 
bool skipComments ()
 
virtual bool isValidNameChar (char c)
 
bool parseToken ()
 
bool parseIntegerKey (const char *key, int count,...)
 
bool parseIntegerKey (const String &keyStr, int count,...)
 
bool vparseIntegerKey (const char *key, int count, va_list args)
 
bool parseXMLHeader (ParserNode *node)
 
virtual void cleanup ()
 
virtual bool handleUnknownKey (ParserNode *node)
 
- Protected Attributes inherited from Common::XMLParser
List< XMLKeyLayout * > _layoutList
 

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