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

Public Member Functions

 LM_COMPONENT_IMPL_DEF ("stub")
 
virtual bool Build ()
 
virtual bool Intersect (Ray &ray, Intersection &isect) const
 
virtual boost::signals2::connection Connect_ReportBuildProgress (const std::function< void(double, bool) > &func)
 
virtual bool Configure (const ConfigNode &node)
 
- Public Member Functions inherited from Scene
 LM_COMPONENT_INTERFACE_DEF ("scene")
 
LM_PUBLIC_API void Load (Primitives *primitives)
 
LM_PUBLIC_API bool PostConfigure ()
 
LM_PUBLIC_API bool Intersect (Ray &ray, Intersection &isect) const
 
LM_PUBLIC_API const CameraMainCamera () const
 
LM_PUBLIC_API const LightSampleLightSelection (Math::Vec2 &lightSampleP, Math::PDFEval &selectionPdf) const
 
LM_PUBLIC_API const LightSampleLightSelection (const Math::Float &lightSample, Math::PDFEval &selectionPdf) const
 
LM_PUBLIC_API Math::PDFEval LightSelectionPdf () const
 
LM_PUBLIC_API AABB GetAABB () const
 
virtual bool IntersectTriangles (Ray &ray, Intersection &isect) const =0
 
virtual AABB GetAABBTriangles () const =0
 
virtual boost::signals2::connection Connect_ReportBuildProgress (const std::function< void(double, bool)> &func)=0
 
- 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)
 

Additional Inherited Members

- Protected Member Functions inherited from Scene
void StoreIntersectionFromBarycentricCoords (unsigned int primitiveIndex, unsigned int triangleIndex, const Ray &ray, const Math::Vec2 &b, Intersection &isect) const
 
- Protected Attributes inherited from Scene
std::unique_ptr< Primitivesprimitives
 
Inheritance diagram for StubScene:
Scene Component SIMDAlignedType

Member Function Documentation

virtual bool StubScene::Build ( )
inlinevirtual

Build acceleration structure. Some scene may have an acceleration structure for the optimization. The function must be called after Load. The function must be called before any intersection queries.

Return values
trueSucceeded to build.
falseFailed to build.

Implements Scene.

virtual bool StubScene::Configure ( const ConfigNode node)
inlinevirtual

Configure the scene.

Parameters
nodeXML node for the configuration.
Return values
trueSucceeded to configure the scene.
falseFailed to configure the scene.

Implements Scene.


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