#include <transform.h>
Public Member Functions | |
Transform () | |
Transform (float mat[4][4]) | |
Transform (const Reference< Matrix4x4 > &mat) | |
Transform (const Reference< Matrix4x4 > &mat, const Reference< Matrix4x4 > &minv) | |
Transform | GetInverse () const |
bool | HasScale () const |
Point | operator() (const Point &pt) const |
void | operator() (const Point &pt, Point *ptrans) const |
Vector | operator() (const Vector &v) const |
void | operator() (const Vector &v, Vector *vt) const |
Normal | operator() (const Normal &) const |
void | operator() (const Normal &, Normal *nt) const |
Ray | operator() (const Ray &r) const |
void | operator() (const Ray &r, Ray *rt) const |
BBox | operator() (const BBox &b) const |
Transform | operator* (const Transform &t2) const |
bool | SwapsHandedness () const |
Private Attributes | |
Reference< Matrix4x4 > | m |
Reference< Matrix4x4 > | mInv |
Friends | |
ostream & | operator<< (ostream &, const Transform &) |
Definition at line 30 of file transform.h.
Transform::Transform | ( | ) | [inline] |
Transform::Transform | ( | float | mat[4][4] | ) | [inline] |
Definition at line 36 of file transform.h.
Definition at line 43 of file transform.h.
Transform::Transform | ( | const Reference< Matrix4x4 > & | mat, | |
const Reference< Matrix4x4 > & | minv | |||
) | [inline] |
Definition at line 47 of file transform.h.
Transform Transform::GetInverse | ( | ) | const [inline] |
Definition at line 53 of file transform.h.
Referenced by Camera::Camera(), CreateFloatTexture(), CreateLight(), CreateSpectrumTexture(), DensityRegion::DensityRegion(), GeometricPrimitive::GetBSDF(), HomogeneousVolume::HomogeneousVolume(), InstancePrimitive::InstancePrimitive(), pbrtCamera(), ProjectiveCamera::ProjectiveCamera(), VolumeGrid::WorldBound(), HomogeneousVolume::WorldBound(), and ExponentialDensity::WorldBound().
bool Transform::HasScale | ( | ) | const |
Definition at line 148 of file transform.cpp.
References M, BBox::pMax, BBox::pMin, Union(), Point::x, Point::y, and Point::z.
Definition at line 160 of file transform.cpp.
References m, mInv, Matrix4x4::Mul(), and Transform().
bool Transform::SwapsHandedness | ( | ) | const |
ostream& operator<< | ( | ostream & | os, | |
const Transform & | t | |||
) | [friend] |
Definition at line 28 of file transform.cpp.
Reference<Matrix4x4> Transform::m [private] |
Definition at line 70 of file transform.h.
Referenced by HasScale(), operator()(), operator*(), operator<<(), and SwapsHandedness().
Reference<Matrix4x4> Transform::mInv [private] |