Lightmetrica  0.0.1.50dbee3 (yosakoi)
 All Classes Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | List of all members
ConfigurableSampler Class Referenceabstract

#include <configurablesampler.h>

Public Member Functions

 LM_COMPONENT_INTERFACE_DEF ("configurablesampler")
 
virtual bool Configure (const ConfigNode &node, const Assets &assets)=0
 
- Public Member Functions inherited from Sampler
virtual SamplerClone () const =0
 
virtual void SetSeed (unsigned int seed)=0
 
virtual Math::Float Next ()=0
 
virtual unsigned int NextUInt ()=0
 
virtual Math::Vec2 NextVec2 ()=0
 
virtual RandomRng ()=0
 
LM_PUBLIC_API void SetSeedWithCurrentTime ()
 
- Public Member Functions inherited from Component
virtual std::string ComponentInterfaceTypeName () const =0
 
virtual std::string ComponentImplTypeName () const =0
 
- Public Member Functions inherited from SIMDAlignedType
void * operator new (std::size_t size) throw (std::bad_alloc)
 
void operator delete (void *p)
 

Detailed Description

Configurable sampler. An interface for sampler classes which are able to configure with a config node.

Inheritance diagram for ConfigurableSampler:
Sampler Component SIMDAlignedType CameraSampler RandomSampler StratifiedSampler

Member Function Documentation

virtual bool ConfigurableSampler::Configure ( const ConfigNode node,
const Assets assets 
)
pure virtual

Configure. Configure and initialize the sampler by the XML elements given by #node.

Parameters
nodeXML node for the configuration.
assetsAsset manager.
trueSucceeded to configure.
falseFailed to configure.

Implemented in RandomSampler, and StratifiedSampler.


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