Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph::VisualWorld Class Referencefinal

A virtual world for image synthesis. More...

#include <VisualWorld.h>

Inheritance diagram for ph::VisualWorld:
ph::IMoveOnly

Public Member Functions

 VisualWorld ()
 
void cook (const SceneDescription &rawScene, const CoreCookingContext &coreCtx)
 
void setReceiverPosition (const math::Vector3R &receiverPos)
 
const IntersectorgetTLAS () const
 
const EmitterSamplergetEmitterSampler () const
 
const ScenegetScene () const
 
CookedResourceCollectiongetCookedResources () const
 
TransientResourceCachegetCache () const
 
math::AABB3D getRootActorsBound () const
 Bounds actors cooked in the first level. The bound is only available after the first level has done cooking.
 
math::AABB3D getLeafActorsBound () const
 Bounds actors from levels finished cooking. The bound is updated every time a level has done cooking. Generally this bound only grows as it encapsulates all previous levels including the root level.
 

Detailed Description

A virtual world for image synthesis.

Constructor & Destructor Documentation

◆ VisualWorld()

ph::VisualWorld::VisualWorld ( )

Member Function Documentation

◆ cook()

void ph::VisualWorld::cook ( const SceneDescription & rawScene,
const CoreCookingContext & coreCtx )

◆ getCache()

TransientResourceCache * ph::VisualWorld::getCache ( ) const

◆ getCookedResources()

CookedResourceCollection * ph::VisualWorld::getCookedResources ( ) const

◆ getEmitterSampler()

const EmitterSampler * ph::VisualWorld::getEmitterSampler ( ) const
inline

◆ getLeafActorsBound()

math::AABB3D ph::VisualWorld::getLeafActorsBound ( ) const

Bounds actors from levels finished cooking. The bound is updated every time a level has done cooking. Generally this bound only grows as it encapsulates all previous levels including the root level.

◆ getRootActorsBound()

math::AABB3D ph::VisualWorld::getRootActorsBound ( ) const

Bounds actors cooked in the first level. The bound is only available after the first level has done cooking.

◆ getScene()

const Scene * ph::VisualWorld::getScene ( ) const
inline

◆ getTLAS()

const Intersector * ph::VisualWorld::getTLAS ( ) const
inline
Returns
The top-level acceleration structure of this world.

◆ setReceiverPosition()

void ph::VisualWorld::setReceiverPosition ( const math::Vector3R & receiverPos)
inline

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