HyperspaceExplorer 0.7.1
|
#include <LSystem_old.h>
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, string > | rules (void) |
void | angle (double angle) |
double | angle () |
void | object (string key, string object) |
void | object (map< string, string > object) |
map< string, string > | object () |
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, string > | m_rules |
unsigned | m_level |
double | m_scale |
double | m_angle |
map< string, string > | m_object |
An experimental class to display Lindenmayer Systems (LSystems)
LSystem_old::~LSystem_old | ( | ) | [virtual] |
void LSystem_old::angle | ( | double | angle | ) | [inline] |
double LSystem_old::angle | ( | ) | [inline] |
string LSystem_old::axiom | ( | ) | [inline] |
virtual void LSystem_old::Draw | ( | ) | [inline, virtual] |
string LSystem_old::Expand | ( | ) | [virtual] |
References m_axiom, and m_level.
Referenced by Expand(), and POV_Source().
unsigned LSystem_old::level | ( | ) | [inline] |
void LSystem_old::level | ( | unsigned | n | ) | [inline] |
References std::map< _Key, _Tp, _Compare, _Alloc >::begin(), end(), and m_object.
References endl(), and m_object.
Referenced by POV_Source().
References std::basic_ostringstream< _CharT, _Traits, _Alloc >::str().
Referenced by POV_Source().
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().
string LSystem_old::POV_Source | ( | ) | [virtual] |
References cerr, endl(), Expand(), isdigit(), m_angle, m_scale, num, POV_Atom(), POV_Footer(), POV_Header(), and rotate().
double LSystem_old::m_angle [protected] |
Referenced by POV_Source().
string LSystem_old::m_axiom [protected] |
Referenced by Expand(), and POV_Header().
unsigned LSystem_old::m_level [protected] |
Referenced by Expand(), and POV_Header().
map<string, string> LSystem_old::m_object [protected] |
Referenced by LSystem_old(), object(), POV_Atom(), and POV_Header().
map<string, string> LSystem_old::m_rules [protected] |
Referenced by Expand(), LSystem_old(), and POV_Header().
double LSystem_old::m_scale [protected] |
Referenced by Expand(), and POV_Source().