Blender V2.61 - r43446

RAS_CameraData.h

Go to the documentation of this file.
00001 /*
00002  * ***** BEGIN GPL LICENSE BLOCK *****
00003  *
00004  * This program is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU General Public License
00006  * as published by the Free Software Foundation; either version 2
00007  * of the License, or (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00017  *
00018  * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV.
00019  * All rights reserved.
00020  *
00021  * The Original Code is: all of this file.
00022  *
00023  * Contributor(s): none yet.
00024  *
00025  * ***** END GPL LICENSE BLOCK *****
00026  */
00027 
00032 #ifndef __RAS_CAMERADATA_H
00033 #define __RAS_CAMERADATA_H
00034 
00035 struct RAS_CameraData
00036 {
00037     float m_lens;
00038     float m_scale;
00039     float m_sensor_x;
00040     float m_sensor_y;
00041     short m_sensor_fit;
00042     float m_clipstart;
00043     float m_clipend;
00044     bool m_perspective;
00045     bool m_viewport;
00046     int m_viewportleft;
00047     int m_viewportbottom;
00048     int m_viewportright;
00049     int m_viewporttop;
00050     float m_focallength;
00051 
00052     RAS_CameraData(float lens = 35.0, float scale = 6.0, float sensor_x = 32.0, float sensor_y = 18.0, short sensor_fit = 0,
00053                    float clipstart = 0.1, float clipend = 5000.0, bool perspective = true,
00054                    float focallength = 3.0, bool viewport = false, int viewportleft = 0, int viewportbottom = 0,
00055                    int viewportright = 0, int viewporttop = 0) :
00056         m_lens(lens),
00057         m_scale(scale),
00058         m_sensor_x(sensor_x),
00059         m_sensor_y(sensor_y),
00060         m_sensor_fit(sensor_fit),
00061         m_clipstart(clipstart),
00062         m_clipend(clipend),
00063         m_perspective(perspective),
00064         m_viewport(viewport),
00065         m_viewportleft(viewportleft),
00066         m_viewportbottom(viewportbottom),
00067         m_viewportright(viewportright),
00068         m_viewporttop(viewporttop),
00069         m_focallength(focallength)
00070     {
00071     }
00072 };
00073 
00074 #endif //__RAS_CAMERADATA_H
00075