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