HDK
|
Abstract base class for the perspective and orthographic cameras. More...
#include <RayTracer.h>
Public Member Functions | |
BaseCamera (Film &film, const Vec3R &rotation, const Vec3R &translation, double frameWidth, double nearPlane, double farPlane) | |
virtual | ~BaseCamera () |
Film::RGBA & | pixel (size_t i, size_t j) |
size_t | width () const |
size_t | height () const |
void | lookAt (const Vec3R &xyz, const Vec3R &up=Vec3R(0.0, 1.0, 0.0)) |
Vec3R | rasterToScreen (double i, double j, double z) const |
virtual math::Ray< double > | getRay (size_t i, size_t j, double iOffset=0.5, double jOffset=0.5) const =0 |
Return a Ray in world space given the pixel indices and optional offsets in the range [0, 1]. An offset of 0.5 corresponds to the center of the pixel. More... | |
Protected Member Functions | |
void | initRay (double t0, double t1) |
Protected Attributes | |
Film * | mFilm |
double | mScaleWidth |
double | mScaleHeight |
math::Ray< double > | mRay |
math::AffineMap | mScreenToWorld |
Abstract base class for the perspective and orthographic cameras.
Definition at line 350 of file RayTracer.h.
|
inline |
Definition at line 353 of file RayTracer.h.
|
inlinevirtual |
Definition at line 367 of file RayTracer.h.
|
pure virtual |
Return a Ray in world space given the pixel indices and optional offsets in the range [0, 1]. An offset of 0.5 corresponds to the center of the pixel.
Implemented in openvdb::OPENVDB_VERSION_NAME::tools::OrthographicCamera, and openvdb::OPENVDB_VERSION_NAME::tools::PerspectiveCamera.
|
inline |
Definition at line 372 of file RayTracer.h.
|
inlineprotected |
Definition at line 403 of file RayTracer.h.
|
inline |
Rotate the camera so its negative z-axis points at xyz and its y axis is in the plane of the xyz and up vectors. In other words the camera will look at xyz and use up as the horizontal direction.
Definition at line 378 of file RayTracer.h.
|
inline |
Definition at line 369 of file RayTracer.h.
|
inline |
Definition at line 390 of file RayTracer.h.
|
inline |
Definition at line 371 of file RayTracer.h.
|
protected |
Definition at line 410 of file RayTracer.h.
|
protected |
Definition at line 412 of file RayTracer.h.
|
protected |
Definition at line 411 of file RayTracer.h.
|
protected |
Definition at line 411 of file RayTracer.h.
|
protected |
Definition at line 413 of file RayTracer.h.