SCL  1.0
Standard Control Library : Control, dynamics, physics, and simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Groups Pages
SGraphicsParsed.hpp
1 /* This file is part of scl, a control and simulation library
2 for robots and biomechanical models.
3 
4 scl is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 3 of the License, or (at your option) any later version.
8 
9 Alternatively, you can redistribute it and/or
10 modify it under the terms of the GNU General Public License as
11 published by the Free Software Foundation; either version 2 of
12 the License, or (at your option) any later version.
13 
14 scl is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU Lesser General Public
20 License and a copy of the GNU General Public License along with
21 scl. If not, see <http://www.gnu.org/licenses/>.
22 */
23 /* \file SGraphicsParsed.hpp
24  *
25  * Created on: Sep 5, 2010
26  *
27  * Copyright (C) 2011
28  *
29  * Author: Samir Menon <smenon@stanford.edu>
30  */
31 
32 #ifndef SGRAPHICSPARSED_HPP_
33 #define SGRAPHICSPARSED_HPP_
34 
35 #include <vector>
36 #include <scl/DataTypes.hpp>
37 #include <scl/data_structs/SObject.hpp>
38 
39 #include <Eigen/Core>
40 
41 namespace scl
42 {
48  struct SGraphicsParsed : public SObject
49  {
51  struct SLight
52  {
53  sFloat pos_[3];//The light's position.
54  sFloat lookat_[3];//Point the light in a direction.
55  };
56 
58  Eigen::Vector3d cam_pos_;//The camera's position.
59  Eigen::Vector3d cam_lookat_;//Position the camera looks at.
60  Eigen::Vector3d cam_up_;//The direction of the up-vector.
61  sFloat cam_clipping_dist_[2];//Defines rendering limits along cam's line of sight (meters)
62 
63  sFloat background_color_[3];//RGB.
64 
66  std::vector<SLight> lights_;
67 
68  SGraphicsParsed() : SObject(std::string("SGraphicsParsed")){}
69  };
70 
71 }
72 
73 #endif /* SGRAPHICSPARSED_HPP_ */
std::vector< SLight > lights_
Definition: SGraphicsParsed.hpp:66
Definition: SGraphicsParsed.hpp:51
Definition: SGraphicsParsed.hpp:48
Eigen::Vector3d cam_pos_
Definition: SGraphicsParsed.hpp:58
double sFloat
Definition: DataTypes.hpp:72
Definition: SObject.hpp:43