HyperspaceExplorer 0.7.1
Public Member Functions | Protected Member Functions | Protected Attributes
LSystem_old Class Reference

#include <LSystem_old.h>

Collaboration diagram for LSystem_old:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LSystem_old (unsigned=2)
 LSystem_old (string, map< string, string >, unsigned=2)
virtual ~LSystem_old ()
void level (unsigned n)
unsigned level ()
void axiom (string a)
string axiom ()
void set_rule (string key, string rule)
void rules (map< string, string > rules)
map< string, stringrules (void)
void angle (double angle)
double angle ()
void object (string key, string object)
void object (map< string, string > object)
map< string, stringobject ()
string object (string key)
virtual string Expand ()
virtual string POV_Source ()
virtual void Draw ()

Protected Member Functions

string POV_Header (const string &)
string POV_Footer (const Vector &, const Vector &)
virtual string POV_Atom (const string &, const string &)
virtual string Expand (string, unsigned)

Protected Attributes

string m_axiom
map< string, stringm_rules
unsigned m_level
double m_scale
double m_angle
map< string, stringm_object

Detailed Description

An experimental class to display Lindenmayer Systems (LSystems)

Author:
Helge Preuss <scout@hyperspace-travel.de>

Constructor & Destructor Documentation

LSystem_old::LSystem_old ( unsigned  l = 2)
Todo:
document me

References m_object, and m_rules.

LSystem_old::LSystem_old ( string  axiom,
map< string, string rules,
unsigned  level = 2 
)
Todo:
document me

References m_object.

LSystem_old::~LSystem_old ( ) [virtual]
Todo:
document me

Member Function Documentation

void LSystem_old::angle ( double  angle) [inline]
Todo:
document me

References angle().

Referenced by angle().

Here is the call graph for this function:

Here is the caller graph for this function:

double LSystem_old::angle ( ) [inline]
Todo:
document me
void LSystem_old::axiom ( string  a) [inline]
Todo:
document me
string LSystem_old::axiom ( ) [inline]
Todo:
document me

Referenced by Expand().

Here is the caller graph for this function:

virtual void LSystem_old::Draw ( ) [inline, virtual]
Todo:
document me
string LSystem_old::Expand ( string  axiom,
unsigned  l 
) [protected, virtual]
Todo:
document me

References axiom(), Expand(), m_rules, m_scale, std::map< _Key, _Tp, _Compare, _Alloc >::size(), and sqrt().

Here is the call graph for this function:

string LSystem_old::Expand ( ) [virtual]
Todo:
document me

References m_axiom, and m_level.

Referenced by Expand(), and POV_Source().

Here is the caller graph for this function:

unsigned LSystem_old::level ( ) [inline]
Todo:
document me
void LSystem_old::level ( unsigned  n) [inline]
Todo:
document me
void LSystem_old::object ( string  key,
string  object 
) [inline]
Todo:
document me

References object().

Referenced by object().

Here is the call graph for this function:

Here is the caller graph for this function:

void LSystem_old::object ( map< string, string object)
Todo:
document me

References std::map< _Key, _Tp, _Compare, _Alloc >::begin(), end(), and m_object.

Here is the call graph for this function:

string LSystem_old::object ( string  key) [inline]
Todo:
document me
map<string, string> LSystem_old::object ( ) [inline]
Todo:
document me
string LSystem_old::POV_Atom ( const string key,
const string transform 
) [protected, virtual]
Todo:
document me

References endl(), and m_object.

Referenced by POV_Source().

Here is the call graph for this function:

Here is the caller graph for this function:

string LSystem_old::POV_Footer ( const Vector xmin,
const Vector xmax 
) [protected]
Todo:
document me

References std::basic_ostringstream< _CharT, _Traits, _Alloc >::str().

Referenced by POV_Source().

Here is the call graph for this function:

Here is the caller graph for this function:

string LSystem_old::POV_Header ( const string expanded) [protected]
Todo:
document me

References std::map< _Key, _Tp, _Compare, _Alloc >::begin(), std::map< _Key, _Tp, _Compare, _Alloc >::end(), endl(), m_axiom, m_level, m_object, and m_rules.

Referenced by POV_Source().

Here is the call graph for this function:

Here is the caller graph for this function:

string LSystem_old::POV_Source ( ) [virtual]
Todo:
document me

References cerr, endl(), Expand(), isdigit(), m_angle, m_scale, num, POV_Atom(), POV_Footer(), POV_Header(), and rotate().

Here is the call graph for this function:

map<string, string> LSystem_old::rules ( void  ) [inline]
Todo:
document me
void LSystem_old::rules ( map< string, string rules) [inline]
Todo:
document me

References rules().

Referenced by rules().

Here is the call graph for this function:

Here is the caller graph for this function:

void LSystem_old::set_rule ( string  key,
string  rule 
) [inline]
Todo:
document me

Member Data Documentation

double LSystem_old::m_angle [protected]
Todo:
document me

Referenced by POV_Source().

Todo:
document me

Referenced by Expand(), and POV_Header().

unsigned LSystem_old::m_level [protected]
Todo:
document me

Referenced by Expand(), and POV_Header().

Todo:
document me

Referenced by LSystem_old(), object(), POV_Atom(), and POV_Header().

Todo:
document me

Referenced by Expand(), LSystem_old(), and POV_Header().

double LSystem_old::m_scale [protected]
Todo:
document me

Referenced by Expand(), and POV_Source().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends

Generated on Mon Apr 9 2012 20:25:18 for HyperspaceExplorer 0.7.1 by doxygen 1.7.4  -  Hosted bySourceForge.net Logo