SPH
Public Member Functions | List of all members
FisheyeCamera Class Reference

Fisheye camera. More...

#include <Camera.h>

Inheritance diagram for FisheyeCamera:
PanoCameraBase ICamera Polymorphic

Public Member Functions

 FisheyeCamera (const CameraParams &data)
 
virtual Optional< CameraRayunproject (const Coords &coords) const override
 Returns a ray in particle coordinates corresponding to given coordinates in the image plane. More...
 
virtual AutoPtr< ICameraclone () const override
 
- Public Member Functions inherited from PanoCameraBase
 PanoCameraBase (const CameraParams &data)
 
virtual void autoSetup (const Storage &storage) override
 Initializes the camera, using the provided particle storage. More...
 
virtual Optional< ProjectedPointproject (const Vector &r) const override
 Returns projected position of particle on the image. More...
 
virtual Pixel getSize () const override
 Returns the current resolution of the camera. More...
 
virtual AffineMatrix getFrame () const override
 Returns the transformation matrix converting camera space to world space. More...
 
virtual Vector getTarget () const override
 Returns the current target point of the camera. More...
 
virtual Vector getUpVector () const override
 Returns the reference "up" direction of the camera. More...
 
virtual Optional< float > getCutoff () const override
 Returns the clipping distance from plane passing through origin, perpendicular to camera direction. More...
 
virtual Optional< float > getWorldToPixel () const override
 Returns the world-to-pixel ratio. More...
 
virtual void setCutoff (const Optional< float > newCutoff) override
 Modifies the clipping distance of the camera. More...
 
virtual void zoom (const Pixel UNUSED(fixedPoint), const float magnitude) override
 
virtual void setPosition (const Vector &newPosition) override
 Moves the camera to new position in world space. More...
 
virtual void setTarget (const Vector &newTarget) override
 
virtual void transform (const AffineMatrix &matrix) override
 Transforms the current view by given matrix. More...
 
virtual void pan (const Pixel offset) override
 Moves the camera by relative offset in image space. More...
 
virtual void resize (const Pixel newSize) override
 Changes the image size. More...
 
- Public Member Functions inherited from ICamera
virtual void zoom (const Pixel fixedPoint, const float magnitude)=0
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Additional Inherited Members

- Protected Attributes inherited from PanoCameraBase
CameraParams data
 
AffineMatrix matrix
 

Detailed Description

Fisheye camera.

Definition at line 330 of file Camera.h.

Constructor & Destructor Documentation

◆ FisheyeCamera()

FisheyeCamera::FisheyeCamera ( const CameraParams data)
explicit

Definition at line 448 of file Camera.cpp.

Member Function Documentation

◆ clone()

virtual AutoPtr<ICamera> FisheyeCamera::clone ( ) const
inlineoverridevirtual
Todo:
revert to ClonePtr!

Implements ICamera.

Definition at line 343 of file Camera.h.

◆ unproject()

Optional< CameraRay > FisheyeCamera::unproject ( const Coords coords) const
overridevirtual

Returns a ray in particle coordinates corresponding to given coordinates in the image plane.

Implements ICamera.

Definition at line 453 of file Camera.cpp.

Member Data Documentation

◆ center

Coords FisheyeCamera::center

Definition at line 333 of file Camera.h.

◆ radius

float FisheyeCamera::radius

Definition at line 335 of file Camera.h.


The documentation for this class was generated from the following files: