MobileRT  1.0
A multi platform C++ CPU progressive Ray Tracer.
Components::PerspectiveLoader Class Referencefinal

#include <PerspectiveLoader.hpp>

Inheritance diagram for Components::PerspectiveLoader:
Inheritance graph
Collaboration diagram for Components::PerspectiveLoader:
Collaboration graph

Public Member Functions

::std::unique_ptr<::MobileRT::CameraloadFromStream (::std::istream &&cameraDefinition, float aspectRatio) const final
 
- Public Member Functions inherited from MobileRT::CameraLoader
 CameraLoader ()=default
 
 CameraLoader (const CameraLoader &cameraLoader)=default
 
 CameraLoader (CameraLoader &&cameraLoader) noexcept=default
 
CameraLoaderoperator= (const CameraLoader &cameraLoader)=default
 
CameraLoaderoperator= (CameraLoader &&cameraLoader) noexcept=default
 
virtual ~CameraLoader ()
 

Detailed Description

A class which loads a perspective camera from a file stream.

Member Function Documentation

◆ loadFromStream()

std::unique_ptr<::MobileRT::Camera > PerspectiveLoader::loadFromStream ( ::std::istream &&  cameraDefinition,
float  aspectRatio 
) const
finalvirtual

A factory which builds a camera from a file stream.

Parameters
cameraDefinitionA file stream with a definition of a camera.
aspectRatioThe aspect ratio to apply (width / height).
Returns
A new built camera.

Implements MobileRT::CameraLoader.

Here is the call graph for this function:
Here is the caller graph for this function:

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