#include <camera.h>
Public Member Functions | |
ProjectiveCamera (const Transform &world2cam, const Transform &world2camEnd, const Transform &proj, const float Screen[4], float hither, float yon, float sopen, float sclose, int sdist, float lensr, float focald, Film *film) | |
void | SampleMotion (float time) |
Protected Member Functions | |
bool | GenerateSample (const Point &p, Sample *sample) const |
Protected Attributes | |
Transform | CameraToScreen |
Transform | WorldToScreen |
Transform | RasterToCamera |
Transform | ScreenToRaster |
Transform | RasterToScreen |
Transform | WorldToRaster |
Transform | RasterToWorld |
float | LensRadius |
float | FocalDistance |
Definition at line 77 of file camera.h.
ProjectiveCamera::ProjectiveCamera | ( | const Transform & | world2cam, | |
const Transform & | world2camEnd, | |||
const Transform & | proj, | |||
const float | Screen[4], | |||
float | hither, | |||
float | yon, | |||
float | sopen, | |||
float | sclose, | |||
int | sdist, | |||
float | lensr, | |||
float | focald, | |||
Film * | film | |||
) |
Definition at line 72 of file camera.cpp.
References CameraToScreen, lux::Camera::film, FocalDistance, lux::Transform::GetInverse(), LensRadius, RasterToCamera, RasterToScreen, RasterToWorld, lux::Scale(), ScreenToRaster, lux::Translate(), lux::Camera::WorldToCamera, WorldToRaster, WorldToScreen, lux::Film::xResolution, and lux::Film::yResolution.
Definition at line 107 of file camera.cpp.
References lux::Camera::film, lux::Sample::imageX, lux::Sample::imageY, WorldToRaster, lux::Point::x, lux::Film::xResolution, lux::Point::y, and lux::Film::yResolution.
void ProjectiveCamera::SampleMotion | ( | float | time | ) | [virtual] |
Reimplemented from lux::Camera.
Definition at line 95 of file camera.cpp.
References lux::Camera::CameraMotion, CameraToScreen, lux::Transform::GetInverse(), lux::MotionSystem::isActive, RasterToWorld, ScreenToRaster, lux::Camera::WorldToCamera, WorldToRaster, and WorldToScreen.
Transform lux::ProjectiveCamera::CameraToScreen [protected] |
Definition at line 92 of file camera.h.
Referenced by ProjectiveCamera(), and SampleMotion().
float lux::ProjectiveCamera::FocalDistance [protected] |
Definition at line 95 of file camera.h.
Referenced by lux::PerspectiveCamera::AutoFocus(), lux::OrthoCamera::AutoFocus(), lux::PerspectiveCamera::GenerateRay(), lux::OrthoCamera::GenerateRay(), lux::PerspectiveCamera::GetSamplePosition(), ProjectiveCamera(), and lux::PerspectiveCamera::Sample_W().
float lux::ProjectiveCamera::LensRadius [protected] |
Definition at line 95 of file camera.h.
Referenced by lux::PerspectiveCamera::Bounds(), lux::PerspectiveCamera::GenerateRay(), lux::OrthoCamera::GenerateRay(), lux::PerspectiveCamera::GetSamplePosition(), lux::PerspectiveCamera::IsDelta(), lux::PerspectiveCamera::PerspectiveCamera(), ProjectiveCamera(), and lux::PerspectiveCamera::Sample_W().
Transform lux::ProjectiveCamera::RasterToCamera [protected] |
Definition at line 92 of file camera.h.
Referenced by lux::PerspectiveCamera::AutoFocus(), lux::OrthoCamera::AutoFocus(), lux::PerspectiveCamera::GenerateRay(), lux::OrthoCamera::GenerateRay(), and ProjectiveCamera().
Transform lux::ProjectiveCamera::RasterToScreen [protected] |
Definition at line 93 of file camera.h.
Referenced by lux::OrthoCamera::OrthoCamera(), lux::PerspectiveCamera::PerspectiveCamera(), and ProjectiveCamera().
Transform lux::ProjectiveCamera::RasterToWorld [protected] |
Definition at line 94 of file camera.h.
Referenced by ProjectiveCamera(), and SampleMotion().
Transform lux::ProjectiveCamera::ScreenToRaster [protected] |
Definition at line 93 of file camera.h.
Referenced by ProjectiveCamera(), and SampleMotion().
Transform lux::ProjectiveCamera::WorldToRaster [protected] |
Definition at line 94 of file camera.h.
Referenced by GenerateSample(), ProjectiveCamera(), and SampleMotion().
Transform lux::ProjectiveCamera::WorldToScreen [protected] |
Definition at line 92 of file camera.h.
Referenced by lux::OrthoCamera::Bounds(), ProjectiveCamera(), and SampleMotion().