#include <SceneBuilderFactories.h>
Inherits CameraFactory.
Inheritance diagram for DepthOfFieldCameraFactory:
Public Member Functions | |
DepthOfFieldCameraFactory () | |
virtual Camera * | create (const std::string &type, std::stringstream &line) |
Definition at line 91 of file SceneBuilderFactories.h.
DepthOfFieldCameraFactory::DepthOfFieldCameraFactory | ( | ) | [inline] |
Constructor
Definition at line 96 of file SceneBuilderFactories.h.
Camera * DepthOfFieldCameraFactory::create | ( | const std::string & | type, | |
std::stringstream & | line | |||
) | [virtual] |
Create a new camera based on type and data in the stream
type | Statement type | |
line | Line with data |
Implements CameraFactory.
Definition at line 63 of file SceneBuilderFactories.cpp.
References DepthOfFieldCamera::setAperture(), DepthOfFieldCamera::setDepthSamples(), and DepthOfFieldCamera::setFocusDistance().
Referenced by CameraAnimator::parse().