20 #if !defined(__MITSUBA_RENDER_SENSOR_H_)
21 #define __MITSUBA_RENDER_SENSOR_H_
79 ENeedsApertureSample = 0x020,
82 EProjectiveCamera = 0x100,
85 EPerspectiveCamera = 0x200,
88 EOrthographicCamera = 0x400,
91 EPositionSampleMapsToPixels = 0x1000,
94 EDirectionSampleMapsToPixels = 0x2000
144 const Point2 &samplePosition,
145 const Point2 &apertureSample,
146 Float timeSample)
const = 0;
196 const Point2 &samplePosition,
197 const Point2 &apertureSample,
198 Float timeSample)
const;
202 return m_shutterOpen + m_shutterOpenTime * sample;
284 void setShutterOpenTime(
Float time);
437 const Point2 &aaSample)
const = 0;
446 void setNearClip(
Float nearClip);
452 void setFarClip(
Float farClip);
458 void setFocusDistance(
Float focusDistance);
502 void setXFov(
Float xfov);
505 Float getYFov()
const;
508 void setYFov(
Float yfov);
511 Float getDiagonalFov()
const;
514 void setDiagonalFov(
Float dfov);
bool needsTimeSample() const
Does the method sampleRay() require a uniformly distributed sample for the time-dependent component...
Definition: sensor.h:290
Float getXFov() const
Return the horizontal field of view in degrees.
Definition: sensor.h:499
virtual void addChild(const std::string &name, ConfigurableObject *child)
Add a child ConfigurableObject.
bool needsApertureSample() const
Does the method sampleRay() require a uniformly distributed sample for the aperture component...
Definition: sensor.h:303
void setWorldTransform(AnimatedTransform *trafo)
Set the local space to world space transformation.
Definition: emitter.h:300
Generic serializable object, which supports construction from a Properties instance.
Definition: cobject.h:40
Generic sampling record for directions.
Definition: common.h:168
Film * getFilm()
Return the Film instance associated with this sensor.
Definition: sensor.h:306
Abstract radiance/importance emitter interface.
Definition: emitter.h:70
const Transform getViewTransform(Float t) const
Return the world-to-view (aka "view") transformation at time t.
Definition: sensor.h:398
Float getFarClip() const
Return the far clip plane distance.
Definition: sensor.h:449
Generic sampling record for positions.
Definition: common.h:82
Float getShutterOpen() const
Return the time value of the shutter opening event.
Definition: sensor.h:275
Abstract sensor interface.
Definition: sensor.h:66
Base class of all sample generators.
Definition: sampler.h:66
Perspective camera interface.
Definition: sensor.h:492
Float getShutterOpenTime() const
Return the length, for which the shutter remains open.
Definition: sensor.h:281
Sampler * getSampler()
Return the sensor's sample generator.
Definition: sensor.h:323
const AnimatedTransform * getWorldTransform() const
Return the local space to world space transformation.
Definition: emitter.h:296
EMeasure
A list of measures that are associated with various sampling methods in Mitsuba.
Definition: common.h:56
Ray differential – enhances the basic ray class with information about the rays of adjacent pixels on...
Definition: ray.h:140
Projective camera interface.
Definition: sensor.h:393
Float getAspect() const
Return the aspect ratio of the sensor and its underlying film.
Definition: sensor.h:312
Float getNearClip() const
Return the near clip plane distance.
Definition: sensor.h:443
void addChild(ConfigurableObject *child)
Add an unnamed child.
Definition: sensor.h:348
Abstract seekable stream class.
Definition: stream.h:58
#define MTS_DECLARE_CLASS()
This macro must be used in the initial definition in classes that derive from Object.
Definition: class.h:158
ESensorFlags
This list of flags is used to additionally characterize and classify the response functions of differ...
Definition: sensor.h:74
const Film * getFilm() const
Return the Film instance associated with this sensor (const)
Definition: sensor.h:309
Abstract film base class - used to store samples generated by Integrator implementations.
Definition: film.h:37
virtual void configure()
Configure the object (called once after construction and addition of all child ConfigurableObject ins...
Reference counting helper.
Definition: ref.h:40
void setShutterOpen(Float time)
Set the time value of the shutter opening event.
Definition: sensor.h:278
const Transform getWorldTransform(Float t) const
Return the view-to-world transformation at time t.
Definition: sensor.h:403
virtual void serialize(Stream *stream, InstanceManager *manager) const
Serialize this emitter to a binary data stream.
Associative parameter map for constructing subclasses of ConfigurableObject.
Definition: properties.h:46
Container for all information related to a surface intersection.
Definition: shape.h:36
Coordinates the serialization and unserialization of object graphs.
Definition: serialization.h:65
const Sampler * getSampler() const
Return the sensor's sampler (const version).
Definition: sensor.h:334
Discrete spectral power distribution based on a number of wavelength bins over the 360-830 nm range...
Definition: spectrum.h:663
Float getFocusDistance() const
Return the distance to the focal plane.
Definition: sensor.h:455
Float sampleTime(Float sample) const
Importance sample the temporal part of the sensor response function.
Definition: sensor.h:201