vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
precompiled.h
Go to the documentation of this file.
1 // Precompiled headers.
2 
3 // !!!!!!!!!!!
4 // This file must be included in any other .cpp file in this project
5 // on the first line (except comments)
6 // !!!!!!!!!!!
7 
8 // Documentation on precompiled headers:
9 // http://www.cygnus-software.com/papers/precompiledheaders.html
10 
11 #define NOMINMAX
12 
13 #include <Windows.h>
14 // OSG particle systems
15 #include <osg/Point>
16 #include <osg/PointSprite>
17 #include <osg/Texture2D>
18 #include <osg/BlendFunc>
19 #include <osgDB/ReadFile>
20 #include <osgGA/StateSetManipulator>
21 #include <osgParticle/ParticleSystem>
22 #include <osgParticle/ParticleSystemUpdater>
23 #include <osgParticle/ModularEmitter>
24 #include <osgParticle/ModularProgram>
25 #include <osgParticle/AccelOperator>
26 #include <osgParticle/FluidFrictionOperator>
27 #include <osgDB/WriteFile>
28 #include <osg/Geode>
29 #include <osg/ShapeDrawable>
30 #include <osg/StateSet>
31 #include <osg/PolygonMode>
32 #include <osg/Depth>
33 #include <osg/ClipNode>
34 #include <osgUtil/SmoothingVisitor>
35 
36 // OSG particle systems
37 
38 
39 #include <vrecko/Ability.h>
40 
42 
43 #include <vrecko/EventDispatcher.h>
44 #include <vrecko/Logger.h>
45 #include <vrecko/Message.h>
46 #include <vrecko/Scene.h>
47 #include <vrecko/PluginManager.h>
48 #include <vrecko/ReaderWriter.h>
49 
51 #include <vreckoAP/GUI/Menu.h>
52 
53 //vrecko utils
54 #include <vreckoUtils/Menu.h>
55 
56 #include <fstream>
57 #include <iostream>
58 #include <sstream>
59 #include <vector>
60 #include <math.h>
61 
62 #include <xercesc/dom/DOM.hpp>
63 #include <xercesc/dom/DOMWriter.hpp>
64 #include <xercesc/framework/LocalFileFormatTarget.hpp>
65 #include <xercesc/framework/StdOutFormatTarget.hpp>
66 #include <xercesc/parsers/XercesDOMParser.hpp>
67 #include <xercesc/sax/HandlerBase.hpp>
68 #include <xercesc/util/PlatformUtils.hpp>
69 #include <xercesc/util/XMLString.hpp>
70 
71 
72 #define absf(x)(x<0.0?-x:x)
73 
74 #define MAX_NUMBER_OF_TRACKED_SENSORS 9
75 
76 
77 #define MINIMAL_DISTANCE_BETWEEN_CONTROL_POINTS 0.05
78 
79 #define DYNAMICART_PATH (string) "data/DynamicArt/"
80 #define AUTOSAVE_PATH (string) "data/DynamicArt/Autosave/"
81 #define USER_PATH (string) "data/DynamicArt/UserData/"
82 #define CURSORS_PATH (string) "data/DynamicArt/Models/Cursors/"
83 #define TEMPLATES_PATH (string) "data/DynamicArt/Templates/"
84 #define SYMMETRIES_PATH (string) "data/DynamicArt/Symmetries/"
85 
86 #define MENU_SELECTED_ITEM_COLOR osg::Vec3(0.75, 1.0, 0.75)
87 #define MENU_NOTAVAILABLE_ITEM_COLOR osg::Vec4(0.35, 0.35, 0.35, 1.0)
88 
96 
97 };
98 
99 
100 
101 
103 inline string printColor(osg::Vec4 col)
104 {
105  std::ostringstream stream;
106  stream << "<Color>" << col.x() << " " << col.y() << " " << col.z() << "</Color>";
107  return stream.str();
108 }
109 
110 
111 //TODO move elsewhere
112 class DASample
113 {
114 public:
115  inline DASample() {this->position = osg::Vec3(0.0, 0.0, 0.0); this->orientation = osg::Quat(0.0, 0.0, 1.0, 0.0); }
116  DASample(osg::Vec3 p_pos, osg::Quat p_orient) {this->position = p_pos; this->orientation = p_orient; }
117 
118  osg::Vec3 position;
119  osg::Quat orientation;
120 };