vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
vrecko
Vrecko - the Virtual Reality Engine
Dynamic Art module
L-system plant modeler - module for Vrecko
Head Up Display module
Space Partitioning - module for Vrecko
Todo List
Deprecated List
Namespaces
Classes
Files
File List
include
src
apps
base
helpers
vrecko
vreckoAP
ArtificialWorld
Boids
CableEditor
CameraMovement
CameraPath
CarSim
ConnectEditor
ConstrainedMovement
DynamicArt
AP_DynamicArt.cpp
Attractor.cpp
Brush.cpp
BrushStroke.cpp
BrushStrokeControlPoint.cpp
BrushStrokeControlPoint.h
BrushStrokeTriangulator.cpp
BrushStrokeTriangulator.h
BufferedSpline.cpp
BufferedSpline.h
CatmullRomInterpolator.cpp
CatmullRomInterpolator.h
ColorGenAdapter.cpp
ComputeThread.cpp
ConstantColorGen.h
Controller.cpp
Ctrl_Attractor.cpp
Ctrl_FreeHandPainting.cpp
Ctrl_MotionVisualization.cpp
Ctrl_PerlinLines.cpp
Ctrl_PolyhedraSculptures.cpp
Ctrl_StringSculptures.cpp
CubicInterpolator.cpp
CubicInterpolator.h
DAEnvironment.cpp
DATool.cpp
DiameterGenAdapter.cpp
Factories.h
FilletSpline.cpp
FilletSpline.h
FrenetFrame.cpp
FrenetFrame.h
GradientColorGen.h
GradientDiameterGen.h
Hook.cpp
HookManager.cpp
Hoop.cpp
HoopGeometry.cpp
HoopGeometry.h
HoopShape.cpp
Icon.cpp
Icon.h
InterpolatedSpline.cpp
InterpolatedSpline.h
Interpolator.h
JuliaAttractor.cpp
LinearInterpolator.cpp
LinearInterpolator.h
MagicWandTool.cpp
MagicWandTool.h
Modes.cpp
MotionTrail.cpp
MTBrush.cpp
MTBrush.h
MTControlPoint.cpp
MTControlPoint.h
MTCreatorTool.cpp
MTCreatorTool.h
MTTriangulator.cpp
MTTriangulator.h
NullAttractor.cpp
OrdinaryAttractor.cpp
ParticleSystem.cpp
Pattern.cpp
PatternGeode.cpp
PerlinLines.cpp
PerlinLinesTools.cpp
PhysXManager.cpp
PhysXModule.cpp
PhysXModule.h
PoA.cpp
PoB.cpp
PoB.h
PolyhedraSculpture.cpp
precompiled.cpp
precompiled.h
PS_Component.cpp
PS_Face.cpp
PS_FacePlane.cpp
PS_FlatShape.cpp
PS_Layer.cpp
PS_Polyhedron.cpp
PS_Symmetry.cpp
RegularPolygonSpline.cpp
RegularPolygonSpline.h
RotationFrameGenAdapter.cpp
SampledSpline.cpp
SampledSpline.h
SectorColorGen.cpp
SectorManager.cpp
ShapeFactory.cpp
ShapeFactory.h
ShapeGenerator.cpp
ShapeGenerator.h
SimpleBox.cpp
SliceTool.cpp
SliceTool.h
SmoothedSpline.cpp
SmoothedSpline.h
SnapPoint.cpp
SnapPoint.h
SplineAdapter.cpp
SweepSurfaceGeode.cpp
SweepSurfaceGeode.h
TimeLineSpline.cpp
Timing.cpp
ToolBrush.cpp
ToolEraser.cpp
ToolHook.cpp
ToolMagicWand.cpp
ToolRotation.cpp
ToolSelector.cpp
ToolSlice.cpp
ToolTongs.cpp
Utils.cpp
EditorController
EditorQAbilities
FFDEditor
Garden
GUI
HapticCollisionApp
HeadTracking
HelloWorld
HUD
InputConnector
LightsEditor
Menu
Nature
navigation
ObjectUtils
PhysX
ShootingSimulation
SpacePartitioning
TextOutput
VF
vreckoDP
vreckoUtils
File Members
•
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
41
#include <
vreckoAP/EditorController/ControllableAbility.h
>
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
50
#include <
vreckoAP/GUI/GUI_Controller.h
>
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
89
typedef
enum
BrushStrokeInterpolationType
{
90
BrushStroke_Interpolation_NONE
= 0,
91
BrushStroke_Interpolation_LINEAR
= 1,
92
BrushStroke_Interpolation_CUBIC
,
93
BrushStroke_Interpolation_CATMULLROM
,
94
BrushStroke_Interpolation_CIRCLE
,
95
BrushStroke_Interpolation_USER_PREDEFINED
,
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
};
src
vreckoAP
DynamicArt
precompiled.h
Generated on Tue Feb 19 2013 10:23:45 for vrecko by
1.8.3.1