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

#include <SingleLensObserver.h>

Inheritance diagram for ph::SingleLensObserver:
ph::OrientedRasterObserver ph::Observer ph::CoreSdlResource ph::SdlResourceBase ph::ISdlResource

Public Member Functions

 SingleLensObserver ()=default
 
void cook (const CoreCookingContext &ctx, CoreCookedUnit &cooked) override
 
float64 getLensRadius () const
 
float64 getFocalDistance () const
 
math::Vector2D getSensorSize (const CoreCookingContext &ctx) const
 
float64 getSensorOffset (const CoreCookingContext &ctx) const
 
 PH_DEFINE_SDL_CLASS (TSdlOwnerClass< SingleLensObserver >)
 
- Public Member Functions inherited from ph::OrientedRasterObserver
 OrientedRasterObserver ()=default
 
 PH_DEFINE_SDL_CLASS (TSdlOwnerClass< OrientedRasterObserver >)
 
- Public Member Functions inherited from ph::Observer
 Observer ()=default
 
ESdlTypeCategory getDynamicCategory () const override
 
 PH_DEFINE_SDL_CLASS (TSdlOwnerClass< Observer >)
 
- Public Member Functions inherited from ph::SdlResourceBase
SdlResourceId getId () const override
 Get the unique ID of this resource. The returned ID is guaranteed to be unique in the current process. Newly created resource cannot have an ID that has been used by a previous resource, even if the previous resource has ended its life cycle. See SdlResourceId.h for some utilities.
 
- Public Member Functions inherited from ph::ISdlResource
 ISdlResource (const ISdlResource &other)=default
 
 ISdlResource (ISdlResource &&other)=default
 
virtual ~ISdlResource ()=default
 
ISdlResourceoperator= (const ISdlResource &rhs)=default
 
ISdlResourceoperator= (ISdlResource &&rhs)=default
 
virtual const SdlClassgetDynamicSdlClass () const
 Get runtime SDL class of the resource.
 
virtual bool isInlinable () const
 

Protected Member Functions

math::TDecomposedTransform< float64 > makeRasterToSensor (const CoreCookingContext &ctx) const
 
void genPinholeCamera (const CoreCookingContext &ctx, CoreCookedUnit &cooked)
 
void genThinLensCamera (const CoreCookingContext &ctx, CoreCookedUnit &cooked)
 
- Protected Member Functions inherited from ph::OrientedRasterObserver
math::TDecomposedTransform< float64 > makeObserverPose () const
 
math::Vector3D makePos () const
 
math::QuaternionD makeRot () const
 
math::Vector3D makeDir () const
 
- Protected Member Functions inherited from ph::SdlResourceBase
 SdlResourceBase ()
 
 SdlResourceBase (const SdlResourceBase &other)
 
 SdlResourceBase (SdlResourceBase &&other)=default
 
SdlResourceBaseoperator= (const SdlResourceBase &rhs)
 
SdlResourceBaseoperator= (SdlResourceBase &&rhs)=default
 
- Protected Member Functions inherited from ph::ISdlResource
 ISdlResource ()=default
 

Additional Inherited Members

- Static Public Attributes inherited from ph::Observer
static constexpr ESdlTypeCategory CATEGORY = ESdlTypeCategory::Ref_Observer
 

Constructor & Destructor Documentation

◆ SingleLensObserver()

ph::SingleLensObserver::SingleLensObserver ( )
inlinedefault

Member Function Documentation

◆ cook()

void ph::SingleLensObserver::cook ( const CoreCookingContext & ctx,
CoreCookedUnit & cooked )
overridevirtual

◆ genPinholeCamera()

void ph::SingleLensObserver::genPinholeCamera ( const CoreCookingContext & ctx,
CoreCookedUnit & cooked )
protected

◆ genThinLensCamera()

void ph::SingleLensObserver::genThinLensCamera ( const CoreCookingContext & ctx,
CoreCookedUnit & cooked )
protected

◆ getFocalDistance()

float64 ph::SingleLensObserver::getFocalDistance ( ) const
inline

◆ getLensRadius()

float64 ph::SingleLensObserver::getLensRadius ( ) const
inline

◆ getSensorOffset()

float64 ph::SingleLensObserver::getSensorOffset ( const CoreCookingContext & ctx) const

◆ getSensorSize()

math::Vector2D ph::SingleLensObserver::getSensorSize ( const CoreCookingContext & ctx) const

◆ makeRasterToSensor()

math::TDecomposedTransform< float64 > ph::SingleLensObserver::makeRasterToSensor ( const CoreCookingContext & ctx) const
protected

◆ PH_DEFINE_SDL_CLASS()

ph::SingleLensObserver::PH_DEFINE_SDL_CLASS ( TSdlOwnerClass< SingleLensObserver > )
inline

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