vrecko
virtual reality framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
BoidsPlanner.h
Go to the documentation of this file.
1
/*
2
Boids - virtualny krdel (roj, hejno) vtakov, ryb, hmyzu ...
3
Michal Pancik, 172460
4
Laborator interakci cloveka s pocitacem
5
2008
6
7
Problematiku boidov rozpracoval Craig W. Reynolds
8
- http://www.red3d.com/cwr/
9
Uzitocne vysvetlenie a pseudokod napisal Conrad Parker
10
- http://www.metadecks.org/~conrad/boids/pseudocode.html
11
*/
12
13
#include <
vrecko/Ability.h
>
14
#include <
vrecko/EnvironmentObject.h
>
15
#include <
vrecko/World.h
>
16
#include <osg/Vec3>
17
#include <vector>
18
19
using namespace
vrecko;
20
21
namespace
boids {
22
23
class
BoidsPlanner
:
public
Ability
{
24
public
:
25
BoidsPlanner
();
26
~BoidsPlanner
() {};
27
28
void
preInitialize(
void
);
29
void
postInitialize(
void
);
30
// void processEvent(const std::string &input_name, void *value);
31
bool
loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*parametersNode);
32
XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode
*saveXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *);
33
void
update(
void
);
34
35
protected
:
36
std::vector<osg::Vec3>
waypoints
;
37
int
current_waypoint
;
38
39
std::string
mesg
;
40
41
DECLARE_INPUT
(NextWaypoint, MessageBool);
42
DECLARE_OUTPUT
(Waypoint,
MessageVec3
);
43
};
44
45
}
46
47
include
vreckoAP
Boids
BoidsPlanner.h
Generated on Tue Feb 19 2013 10:23:42 for vrecko by
1.8.3.1