PhotoGENius V1.0.0
A basic library for generating photorealistic images, developed for the course Numerical techniques for photorealistic image generation.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
PGENLib.KeywordToken Class Reference

A token containing a keyword. Parameters:

Location a SourceLocation object holding informations about token location in the file (filename, number of column, number of rows)
Keyword a KeywordList object holding the possible Keyword options
More...

Inheritance diagram for PGENLib.KeywordToken:
PGENLib.Token

Public Member Functions

 KeywordToken (SourceLocation location, KeywordList keyword)
 Constructor. More...
 
override string ToString ()
 
- Public Member Functions inherited from PGENLib.Token
 Token (SourceLocation location)
 Constructor, with a SourceLocation object as input parameter. More...
 

Public Attributes

KeywordList Keyword
 
- Public Attributes inherited from PGENLib.Token
SourceLocation Location
 

Static Public Attributes

static Dictionary< string, KeywordListDictionary
 Dictionary linking the keyword to its string identifier. More...
 

Detailed Description

A token containing a keyword. Parameters:

Location a SourceLocation object holding informations about token location in the file (filename, number of column, number of rows)
Keyword a KeywordList object holding the possible Keyword options

Constructor & Destructor Documentation

◆ KeywordToken()

PGENLib.KeywordToken.KeywordToken ( SourceLocation  location,
KeywordList  keyword 
)

Constructor.

Parameters
location
keyword

Member Data Documentation

◆ Dictionary

Dictionary<string, KeywordList> PGENLib.KeywordToken.Dictionary
static
Initial value:
= new Dictionary<string, KeywordList>
{
{ "new", KeywordList.New },
{ "material", KeywordList.Material },
{ "plane", KeywordList.Plane },
{ "sphere", KeywordList.Sphere },
{ "cylinder" , KeywordList.Cylinder},
{ "diffuse", KeywordList.Diffuse },
{ "specular", KeywordList.Specular },
{ "uniform", KeywordList.Uniform },
{ "checkered", KeywordList.Checkered },
{ "image", KeywordList.Image },
{ "identity", KeywordList.Identity },
{ "translation", KeywordList.Translation },
{ "rotation_x", KeywordList.RotationX },
{ "rotation_y", KeywordList.RotationY },
{ "rotation_z", KeywordList.RotationZ },
{ "scaling", KeywordList.Scaling },
{ "camera", KeywordList.Camera },
{ "orthogonal", KeywordList.Orthogonal },
{ "perspective", KeywordList.Perspective },
{ "float", KeywordList.Float },
{ "pointlight", KeywordList.PointLight }
}
KeywordList
Enumeration of all possible keywords encountered in a Scene File.
Definition: SceneFiles.cs:123

Dictionary linking the keyword to its string identifier.


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