/***************************************************************************
camera.h - description
-------------------
begin : Thu Dec 7 2000
copyright : (C) 2000 by Jan Walter
email : jan@blender.nl
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef CAMERA_H
#define CAMERA_H
#include <blender.h>
struct PyObject;
/**Blender cameras can not be seen in the OOPS window at the moment. Only the corresponding object is visible in gray.
*@author Jan Walter
*/
class Camera : public Blender {
public:
Camera();
~Camera();
/** A Blender camera has always a unique name. The name you give as an argument is only a proposal for the real name. Blender will check if this name is already used and rename the camera if necessary. */
Camera(const char* name = "Camera");
private: // Private attributes
/** All rectangles you can see in the OOPS window are instances of classes with an unique name for all instances of this class. Nevertheless the name of two instances of different classes can be the same. */
char* name;
/** The lens value of Blender is a bit odd. If you want to calculate the FOV (field of view angle) you should know that fov = 360.0 * math.atan(factor * 16.0 / camera.Lens) / math.pi) where factor is dependend on the x- and y-resolution of your picture. */
PyObject* Lens;
/** Clipping start value */
PyObject* ClSta;
/** Clipping end value */
PyObject* ClEnd;
};
#endif
Documentation generated by jan@nvidea on Mon Mar 5 16:57:27 CET 2001