Robot Simulator of the Robotics Group for Self-Organization of Control  0.8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
camerahandle.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2005-2011 LpzRobots development team *
3  * Georg Martius <georg dot martius at web dot de> *
4  * Frank Guettler <guettler at informatik dot uni-leipzig dot de *
5  * Frank Hesse <frank at nld dot ds dot mpg dot de> *
6  * Ralf Der <ralfder at mis dot mpg dot de> *
7  * *
8  * This program is free software; you can redistribute it and/or modify *
9  * it under the terms of the GNU General Public License as published by *
10  * the Free Software Foundation; either version 2 of the License, or *
11  * (at your option) any later version. *
12  * *
13  * This program is distributed in the hope that it will be useful, *
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16  * GNU General Public License for more details. *
17  * *
18  * You should have received a copy of the GNU General Public License *
19  * along with this program; if not, write to the *
20  * Free Software Foundation, Inc., *
21  * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
22  * *
23  ***************************************************************************/
24 #ifndef _CAMERAHANDLE_H_
25 #define _CAMERAHANDLE_H_
26 
27 
28 #include <selforg/position.h>
29 #include <osg/Vec3f>
30 
31 // forward declarations
32 namespace lpzrobots
33 {
34  class OSGPrimitive;
35  class OdeAgent;
36 }
37 
38 namespace osg
39 {
40  class Vec3f;
41  typedef Vec3f Vec3;
42  class Camera;
43 }
44 
45 namespace lpzrobots
46 {
47 
48 
49  /**
50  * Class which holds all data used by CameraManipulators.
51  * The avoidance of static variables enables multithreaded (tasked)
52  * simulations.
53  */
55  {
56  public:
58 
70 
76 
77  osg::Camera* cam;
78 
79  CameraHandle();
80 
81  virtual ~CameraHandle();
82  };
83 
84 }
85 
86 #endif /* _CAMERAHANDLE_H_ */
Definition: camerahandle.h:57
osg::Vec3 home_view
Definition: camerahandle.h:62
osg::Vec3 home_eye
Definition: camerahandle.h:61
OSGPrimitive * manipulationViz2
Definition: camerahandle.h:74
osg::Vec3 manipulationPoint
Definition: camerahandle.h:72
Interface class for graphic primitives like spheres, boxes, and meshes, which can be drawn by OSG...
Definition: osgprimitive.h:62
ManipulationType
Definition: camerahandle.h:57
osg::Vec3 view
Definition: camerahandle.h:60
OdeAgent * watchingAgent
Definition: camerahandle.h:66
bool oldPositionOfAgentDefined
Definition: camerahandle.h:69
Class which holds all data used by CameraManipulators.
Definition: camerahandle.h:54
ManipulationType doManipulation
Definition: camerahandle.h:71
Definition: position.h:30
Vec3f Vec3
Definition: osgforwarddecl.h:42
bool watchingAgentDefined
Definition: camerahandle.h:67
osg::Camera * cam
Definition: camerahandle.h:77
osg::Vec3 desiredView
Definition: camerahandle.h:64
osg::Vec3 eye
Definition: camerahandle.h:59
Specialised agent for ode robots.
Definition: odeagent.h:62
OSGPrimitive * manipulationViz
Definition: camerahandle.h:73
bool home_externally_set
Definition: camerahandle.h:65
Position oldPositionOfAgent
Definition: camerahandle.h:68
Definition: camerahandle.h:57
osg::Vec3 desiredEye
Definition: camerahandle.h:63
virtual ~CameraHandle()
Definition: camerahandle.cpp:40
Definition: camerahandle.h:57
CameraHandle()
Definition: camerahandle.cpp:30
double manipulationForce
Definition: camerahandle.h:75