Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
gazebo::rendering::MergeSchemeHandler Class Reference

Class for handling materials who did not specify techniques for the merging step of deferred/inferred lighting. More...

#include <MergeSchemeHandler.hh>

Inheritance diagram for gazebo::rendering::MergeSchemeHandler:
Inheritance graph
[legend]

Classes

struct  PassProperties
 A structure for containing the properties of a material. More...
 

Public Member Functions

 MergeSchemeHandler (bool _useDSF)
 
virtual Ogre::Technique * handleSchemeNotFound (uint16_t _schemeIndex, const Ogre::String &_schemeName, Ogre::Material *_originalMaterial, uint16_t _lodIndex, const Ogre::Renderable *rend)
 

Protected Member Functions

bool CheckNormalMap (Ogre::TextureUnitState *_tus, PassProperties &_props)
 Check if a texture is a normal map, and fill property sheet accordingly. More...
 
void FillPass (Ogre::Pass *_gBufferPass, Ogre::Pass *_originalPass, const PassProperties &_props)
 Fill a pass with the specific data from the pass it is based on. More...
 
MaterialGenerator::Perm GetPermutation (const PassProperties &_props)
 Get the permutation of material flags that fit a certain property sheet. More...
 
PassProperties InspectPass (Ogre::Pass *_pass, uint16_t _lodIndex, const Ogre::Renderable *_rend)
 Inspect a technique and return its relevant properties. More...
 

Protected Attributes

MergeMaterialGeneratormaterialGenerator
 
Ogre::String techName
 
bool useDSF
 

Static Protected Attributes

static const std::string normal_map_pattern
 The string that will be checked in textures to determine whether they are normal maps. More...
 

Detailed Description

Class for handling materials who did not specify techniques for the merging step of deferred/inferred lighting.

Constructor & Destructor Documentation

gazebo::rendering::MergeSchemeHandler::MergeSchemeHandler ( bool  _useDSF)
inline

Member Function Documentation

bool gazebo::rendering::MergeSchemeHandler::CheckNormalMap ( Ogre::TextureUnitState *  _tus,
PassProperties _props 
)
protected

Check if a texture is a normal map, and fill property sheet accordingly.

void gazebo::rendering::MergeSchemeHandler::FillPass ( Ogre::Pass *  _gBufferPass,
Ogre::Pass *  _originalPass,
const PassProperties _props 
)
protected

Fill a pass with the specific data from the pass it is based on.

MaterialGenerator::Perm gazebo::rendering::MergeSchemeHandler::GetPermutation ( const PassProperties _props)
protected

Get the permutation of material flags that fit a certain property sheet.

virtual Ogre::Technique* gazebo::rendering::MergeSchemeHandler::handleSchemeNotFound ( uint16_t  _schemeIndex,
const Ogre::String &  _schemeName,
Ogre::Material *  _originalMaterial,
uint16_t  _lodIndex,
const Ogre::Renderable *  rend 
)
virtual

PassProperties gazebo::rendering::MergeSchemeHandler::InspectPass ( Ogre::Pass *  _pass,
uint16_t  _lodIndex,
const Ogre::Renderable *  _rend 
)
protected

Inspect a technique and return its relevant properties.

Member Data Documentation

MergeMaterialGenerator* gazebo::rendering::MergeSchemeHandler::materialGenerator
protected
const std::string gazebo::rendering::MergeSchemeHandler::normal_map_pattern
staticprotected

The string that will be checked in textures to determine whether they are normal maps.

Ogre::String gazebo::rendering::MergeSchemeHandler::techName
protected
bool gazebo::rendering::MergeSchemeHandler::useDSF
protected

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