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

Public Member Functions

 LM_COMPONENT_IMPL_DEF ("raycast")
 
virtual std::string Type () const override
 
virtual bool Configure (const ConfigNode &node, const Assets &assets, const Scene &scene, const RenderProcessScheduler &sched) override
 
virtual bool Preprocess (const Scene &scene, const RenderProcessScheduler &sched) override
 
virtual bool Postprocess (const Scene &scene, const RenderProcessScheduler &sched) const override
 
virtual RenderProcessCreateRenderProcess (const Scene &scene, int threadID, int numThreads) override
 
virtual boost::signals2::connection Connect_ReportProgress (const std::function< void(double, bool)> &func) override
 
- Public Member Functions inherited from Renderer
 LM_COMPONENT_INTERFACE_DEF ("renderer")
 
- 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

Raycast renderer. Implements raycasting. This renderer is utilized for testing.

Inheritance diagram for RaycastRenderer:
Renderer Component SIMDAlignedType

Member Function Documentation

virtual bool RaycastRenderer::Configure ( const ConfigNode node,
const Assets assets,
const Scene scene,
const RenderProcessScheduler sched 
)
inlineoverridevirtual

Configure the renderer from XML element.

Parameters
nodeA XML element which consists of renderer element.
assetsAssets manager.
sceneScene.
schedRender process scheduler.
Return values
trueSucceeded to configure.
falseFailed to configure.

Implements Renderer.

virtual boost::signals2::connection RaycastRenderer::Connect_ReportProgress ( const std::function< void(double, bool)> &  func)
inlineoverridevirtual

Connect to ReportProgress signal. The signal is emitted when the progress of asset loading is changed.

Parameters
funcSlot function.

Implements Renderer.

RenderProcess * RaycastRenderer::CreateRenderProcess ( const Scene scene,
int  threadID,
int  numThreads 
)
overridevirtual

Create a render process. Creates a new instance of the render process associated with the renderer. This function called from the render process scheduler. Ownership of the created instance is delegated to the caller.

Parameters
sceneScene.
threadIDThread ID of the process.
numThreadsNumber of threads.
Returns
An instance of render process.

Implements Renderer.

virtual bool RaycastRenderer::Postprocess ( const Scene scene,
const RenderProcessScheduler sched 
) const
inlineoverridevirtual

Postprocess the renderer. This function is called after render process are completed.

Parameters
sceneScene.
schedRender process scheduler.
Return values
trueSucceeded to postprocess.
falseFailed to postprocess.

Implements Renderer.

virtual bool RaycastRenderer::Preprocess ( const Scene scene,
const RenderProcessScheduler sched 
)
inlineoverridevirtual

Preprocess the renderer. Preprocess required by some renderers are dispatched in this function.

Parameters
sceneScene.
schedRender process scheduler.
Return values
trueSucceeded to preprocess.
falseFailed to preprocess.

Implements Renderer.

virtual std::string RaycastRenderer::Type ( ) const
inlineoverridevirtual

Get renderer type.

Returns
Renderer type.

Implements Renderer.


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