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
base
helpers
vrecko
vreckoAP
ArtificialWorld
behindO
Boids
CableEditor
CameraMovement
CameraPath
CarSim
ConnectEditor
ConstrainedMovement
DynamicArt
EditorController
EditorQAbilities
FFDEditor
Filter
games
Garden
abstract0lsystem.h
abstractfile.h
abstractgenerator.h
abstractinterpret.h
abstractklsystem.h
abstractlsystem.h
abstractturtle.h
AP_Garden.h
configuration.h
d0lsystem.h
hermitpipe.h
jointedpipe.h
loftturtle.h
log.h
longstring.h
lsfile.h
lsgeode.h
lsobject.h
lsystem.h
lsystemexception.h
lsystemgenerator.h
movingturtle.h
par2lsystem.h
pard0lsystem.h
parseablestring.h
parstoch0lsystem.h
query.h
queryinterpret.h
queryturtle.h
randomindex.h
randomizer.h
rectangle.h
rule.h
staticstring.h
straightpipe.h
turtleinterpret.h
turtlestack.h
utils.h
xmlfile.h
GUI
HeadTracking
HelloWorld
HUD
InputConnector
LightsEditor
Menu
Nature
navigation
ObjectUtils
ODE
RoomEdit
ShootingSimulation
SpacePartitioning
TextOutput
vreckoDP
vreckoUtils
src
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
abstractgenerator.h
Go to the documentation of this file.
1
#ifndef ABSTRACTGENERATOR_H_
2
#define ABSTRACTGENERATOR_H_
3
4
#include <string>
5
#include <boost/shared_ptr.hpp>
6
#include "
parseablestring.h
"
7
#include "
abstractlsystem.h
"
8
9
10
namespace
AP_LSystem {
11
17
class
AbstractGenerator
18
{
19
protected
:
20
ParseableString
*
m_Word
;
21
boost::shared_ptr<AbstractLSystem>
m_MainLSystem
;
22
23
public
:
27
AbstractGenerator
(
void
) :
m_Word
(NULL) {}
28
32
AbstractGenerator
(
const
AbstractGenerator
& c )
33
{
34
m_Word
=
new
ParseableString
(*c.
m_Word
);
35
m_MainLSystem
= c.
m_MainLSystem
->clone();
36
}
37
41
AbstractGenerator
&
operator=
(
const
AbstractGenerator
& c )
42
{
43
m_Word
=
new
ParseableString
(*c.
m_Word
);
44
m_MainLSystem
= c.
m_MainLSystem
->clone();
45
46
return
*
this
;
47
}
48
52
~AbstractGenerator
(
void
)
53
{
54
if
(
m_Word
)
55
delete
m_Word
;
56
}
57
62
virtual
void
loadFile
( std::string & filename ) = 0;
63
67
virtual
void
nextIteration
() = 0;
68
73
virtual
ParseableString
*
getWord
() = 0;
74
78
virtual
void
saveWordToFile
( std::string & );
79
83
virtual
void
loadWordFromFile
( std::string & );
84
91
static
boost::shared_ptr<AbstractLSystem>
createLSystem
(
AbstractFile
* file );
92
};
93
}
94
95
#endif
include
vreckoAP
Garden
abstractgenerator.h
Generated on Tue Feb 19 2013 10:23:43 for vrecko by
1.8.3.1