Inherits mi::base::Interface_declare< 0x1c7386d2, ... >.
|
virtual void | assign (const IPerspective_camera *other)=0 |
| Assign all camera parameters from the source object to this camera. More...
|
|
virtual mi::Float64 | get_aperture () const =0 |
| Returns the aperture width. More...
|
|
virtual void | set_aperture (mi::Float64 aperture_width)=0 |
| Sets the aperture width. More...
|
|
virtual mi::Float64 | get_aspect () const =0 |
| Returns the aspect ratio, defined as width/height. More...
|
|
virtual void | set_aspect (mi::Float64 aspect_ratio)=0 |
| Sets the aspect ratio. More...
|
|
virtual mi::Float64 | get_clip_min () const =0 |
| Returns the distance to the near clipping plane (hither). More...
|
|
virtual void | set_clip_min (mi::Float64 clip_min)=0 |
| Sets the distance to the near clipping plane (hither). More...
|
|
virtual mi::Float64 | get_clip_max () const =0 |
| Returns the distance to the far clipping plane (yon). More...
|
|
virtual void | set_clip_max (mi::Float64 clip_max)=0 |
| Sets the distance to the far clipping plane (yon). More...
|
|
virtual mi::Float64 | get_focal () const =0 |
| Returns the focal length. More...
|
|
virtual void | set_focal (mi::Float64 focal_length)=0 |
| Sets the focal length. More...
|
|
virtual mi::Float64 | get_fov_y_rad () const =0 |
| Returns the vertical field of view. More...
|
|
Interface class for a camera implementing the perspective camera model.
For perspective projection, the field of view of the camera can be controlled by setting the aperture and the focal length. In this simple camera model the aperture describes the width of the viewing plane, while the focal length controls the distance from the viewing plane to the eye point. The horizontal field of view is then defined as the ratio of the aperture to the focal length. The aspect ratio is defined as the ratio of the width to the height of the rendering canvas. Using this ratio, the vertical field of view can also be computed as the ratio of the aperture to the product of the aspect ratio and the focal length.
Other attributes stored in the IPerspective_camera class include the near and far clipping planes and the canvas resolution (width and height).