|
virtual void | configure () |
| Configure the object (called once after construction and addition of all child ConfigurableObject instances). More...
|
|
virtual void | serialize (Stream *stream, InstanceManager *manager) const |
| Serialize this camera to a binary data stream. More...
|
|
virtual const Class * | getClass () const |
| Retrieve this object's class. More...
|
|
|
Float | getXFov () const |
| Return the horizontal field of view in degrees. More...
|
|
void | setXFov (Float xfov) |
| Set the horizontal field of view in degrees. More...
|
|
Float | getYFov () const |
| Return the vertical field of view in degrees. More...
|
|
void | setYFov (Float yfov) |
| Set the vertical field of view in degrees. More...
|
|
Float | getDiagonalFov () const |
| Return the diagonal field of view in degrees. More...
|
|
void | setDiagonalFov (Float dfov) |
| Set the diagonal field of view in degrees. More...
|
|
const Transform | getViewTransform (Float t) const |
| Return the world-to-view (aka "view") transformation at time t . More...
|
|
const Transform | getWorldTransform (Float t) const |
| Return the view-to-world transformation at time t . More...
|
|
void | setWorldTransform (const Transform &trafo) |
| Overwrite the view-to-world transformation with a static (i.e. non-animated) transformation. More...
|
|
void | setWorldTransform (AnimatedTransform *trafo) |
| Overwrite the view-to-world transformation with an animated transformation. More...
|
|
virtual Transform | getProjectionTransform (const Point2 &apertureSample, const Point2 &aaSample) const =0 |
| Return a projection matrix suitable for rendering the scene using OpenGL. More...
|
|
Float | getNearClip () const |
| Return the near clip plane distance. More...
|
|
void | setNearClip (Float nearClip) |
| Set the near clip plane distance. More...
|
|
Float | getFarClip () const |
| Return the far clip plane distance. More...
|
|
void | setFarClip (Float farClip) |
| Set the far clip plane distance. More...
|
|
Float | getFocusDistance () const |
| Return the distance to the focal plane. More...
|
|
void | setFocusDistance (Float focusDistance) |
| Set the distance to the focal plane. More...
|
|
virtual Spectrum | sampleRay (Ray &ray, const Point2 &samplePosition, const Point2 &apertureSample, Float timeSample) const =0 |
| Importance sample a ray according to the sensor response. More...
|
|
virtual Spectrum | sampleRayDifferential (RayDifferential &ray, const Point2 &samplePosition, const Point2 &apertureSample, Float timeSample) const |
| Importance sample a ray differential according to the sensor response. More...
|
|
Float | sampleTime (Float sample) const |
| Importance sample the temporal part of the sensor response function. More...
|
|
virtual Spectrum | eval (const Intersection &its, const Vector &d, Point2 &samplePos) const |
| Return the emitted importance for the given surface intersection. More...
|
|
virtual bool | getSamplePosition (const PositionSamplingRecord &pRec, const DirectionSamplingRecord &dRec, Point2 &position) const |
| Return the sample position associated with a given position and direction sampling record. More...
|
|
Float | pdfTime (const Ray &ray, EMeasure measure) const |
| Evaluate the temporal component of the sampling density implemented by the sampleRay() method. More...
|
|
Float | getShutterOpen () const |
| Return the time value of the shutter opening event. More...
|
|
void | setShutterOpen (Float time) |
| Set the time value of the shutter opening event. More...
|
|
Float | getShutterOpenTime () const |
| Return the length, for which the shutter remains open. More...
|
|
void | setShutterOpenTime (Float time) |
| Set the length, for which the shutter remains open. More...
|
|
bool | needsTimeSample () const |
| Does the method sampleRay() require a uniformly distributed sample for the time-dependent component? More...
|
|
bool | needsApertureSample () const |
| Does the method sampleRay() require a uniformly distributed sample for the aperture component? More...
|
|
Film * | getFilm () |
| Return the Film instance associated with this sensor. More...
|
|
const Film * | getFilm () const |
| Return the Film instance associated with this sensor (const) More...
|
|
Float | getAspect () const |
| Return the aspect ratio of the sensor and its underlying film. More...
|
|
Sampler * | getSampler () |
| Return the sensor's sample generator. More...
|
|
const Sampler * | getSampler () const |
| Return the sensor's sampler (const version). More...
|
|
virtual void | addChild (const std::string &name, ConfigurableObject *child) |
| Add a child ConfigurableObject. More...
|
|
void | addChild (ConfigurableObject *child) |
| Add an unnamed child. More...
|
|
virtual Spectrum | samplePosition (PositionSamplingRecord &pRec, const Point2 &sample, const Point2 *extra=NULL) const |
| Importance sample the spatial component of the emission profile. More...
|
|
virtual Spectrum | sampleDirection (DirectionSamplingRecord &dRec, PositionSamplingRecord &pRec, const Point2 &sample, const Point2 *extra=NULL) const |
| Conditioned on the spatial component, importance sample the directional part of the emission profile. More...
|
|
virtual Spectrum | sampleDirect (DirectSamplingRecord &dRec, const Point2 &sample) const |
| Direct sampling: given a reference point in the scene, sample an emitter position that contributes towards it. More...
|
|
virtual Spectrum | evalPosition (const PositionSamplingRecord &pRec) const |
| Evaluate the spatial component of the emission profile. More...
|
|
virtual Spectrum | evalDirection (const DirectionSamplingRecord &dRec, const PositionSamplingRecord &pRec) const |
| Evaluate the directional component of the emission profile. More...
|
|
virtual Float | pdfPosition (const PositionSamplingRecord &pRec) const |
| Evaluate the spatial component of the sampling density implemented by the samplePosition() method. More...
|
|
virtual Float | pdfDirection (const DirectionSamplingRecord &dRec, const PositionSamplingRecord &pRec) const |
| Evaluate the directional component of the sampling density implemented by the sampleDirection() method. More...
|
|
virtual Float | pdfDirect (const DirectSamplingRecord &dRec) const |
| Evaluate the probability density of the direct sampling method implemented by the sampleDirect() method. More...
|
|
uint32_t | getType () const |
| Return a listing of classification flags combined using binary OR. More...
|
|
const AnimatedTransform * | getWorldTransform () const |
| Return the local space to world space transformation. More...
|
|
void | setWorldTransform (AnimatedTransform *trafo) |
| Set the local space to world space transformation. More...
|
|
bool | needsPositionSample () const |
| Does the method samplePosition() require a uniformly distributed sample for the spatial component? More...
|
|
bool | needsDirectionSample () const |
| Does the method sampleDirection() require a uniformly distributed sample for the direction component? More...
|
|
bool | isOnSurface () const |
| Does the emitter lie on some kind of surface? More...
|
|
bool | isDegenerate () const |
| Does the sensor have a degenerate directional or spatial distribution? More...
|
|
bool | needsDirectSample () const |
| Does the method sampleDirect() require a uniformly distributed sample? More...
|
|
EMeasure | getDirectMeasure () const |
| Return the measure associated with the sampleDirect() operation. More...
|
|
Medium * | getMedium () |
| Return a pointer to the medium that surrounds the emitter. More...
|
|
const Medium * | getMedium () const |
| Return a pointer to the medium that surrounds the emitter (const version) More...
|
|
Shape * | getShape () |
| Return the shape, to which the emitter is currently attached. More...
|
|
const Shape * | getShape () const |
| Return the shape, to which the emitter is currently attached (const version) More...
|
|
virtual ref< Shape > | createShape (const Scene *scene) |
| Create a special shape that represents the emitter. More...
|
|
virtual AABB | getAABB () const =0 |
| Return an axis-aligned box bounding the spatial extents of the emitter. More...
|
|
void | setMedium (Medium *medium) |
| Set the medium that surrounds the emitter. More...
|
|
void | addChild (ConfigurableObject *child) |
| Add an unnamed child. More...
|
|
virtual void | setParent (ConfigurableObject *parent) |
| Notify the ConfigurableObject instance about its parent object. More...
|
|
void | addChild (ConfigurableObject *child) |
| Add an unnamed child. More...
|
|
const std::string & | getID () const |
| Return the identifier associated with this instance (or "unnamed") More...
|
|
void | setID (const std::string &name) |
| Set the identifier associated with this instance. More...
|
|
const Properties & | getProperties () const |
| Return the properties object that was originally used to create this instance. More...
|
|
| SerializableObject (Stream *stream, InstanceManager *manager) |
| Unserialize a serializable object. More...
|
|
| Object () |
| Construct a new object. More...
|
|
int | getRefCount () const |
| Return the current reference count. More...
|
|
void | incRef () const |
| Increase the reference count of the object by one. More...
|
|
void | decRef (bool autoDeallocate=true) const |
| Decrease the reference count of the object and possibly deallocate it. More...
|
|
virtual std::string | toString () const |
| Return a human-readable string representation of the object's contents. More...
|
|
Perspective camera interface.
This class provides an abstract interface to several types of sensors that are commonly used in computer graphics, such as perspective and orthographic camera models.
The interface is meant to be implemented by any kind of sensor, whose world to clip space transformation can be explained using only linear operations on homogeneous coordinates.
A useful feature of ProjectiveCamera sensors is that their view can be rendered using the traditional OpenGL pipeline.