![]() |
vrecko
virtual reality framework
|
#include <rule.h>
Public Member Functions | |
| Rule () | |
| Rule (const Rule &) | |
| Rule & | operator= (const Rule &) |
| ~Rule () | |
| void | processProbabilityFactor (string *rule, string::iterator &it) |
| void | processCondition (string *rule, string::iterator &it) |
| void | processParameters (string *rule, string::iterator &it) |
| bool | addStaticString (string *rule, string::iterator &it) |
| void | addDynamicString (string *rule, string::iterator &it) |
| bool | evaluateCondition (double *p) |
Public Attributes | |
| char | strictPredecessor |
| strict predecessor of rule More... | |
| FunctionParser * | condition |
| rule condition - for parametric L-system More... | |
| std::string | variables |
| list of variables in string More... | |
| FunctionParser * | probabilityFactor |
| probability factor - for stochastic L-system More... | |
| std::vector< StaticString * > | staticStrings |
| static parts of successor More... | |
| std::vector< FunctionParser * > | dynamicStrings |
| dynamic parts of successor More... | |
| string | leftContext |
| right context More... | |
| string | rightContext |
| left context More... | |
Structure for storing rule data. Common for all L-system.
|
inline |
Non-parametric constructor
| Rule::Rule | ( | const Rule & | c | ) |
Copy constructor
| Rule::~Rule | ( | ) |
Destructor
| void Rule::addDynamicString | ( | string * | rule, |
| string::iterator & | it | ||
| ) |
Parses string, processes and adds dynamic part(expressions) of successor
| rule | string to parse |
| it | opening variables position in rule string |
| bool Rule::addStaticString | ( | string * | rule, |
| string::iterator & | it | ||
| ) |
Parses string, processes and adds static part of successor
| rule | string to parse |
| it | opening static string position in rule string |
| bool Rule::evaluateCondition | ( | double * | p | ) |
Evaluates rule's condition.
| p | array of variables values |
| void Rule::processCondition | ( | string * | rule, |
| string::iterator & | it | ||
| ) |
Parses string, processes and adds condition
| rule | string to parse |
| it | opening condition position in rule string |
| void Rule::processParameters | ( | string * | rule, |
| string::iterator & | it | ||
| ) |
Parses string, processes and adds parameter variables of predecessor or context
| rule | string to parse |
| it | opening variables position in rule string |
| void Rule::processProbabilityFactor | ( | string * | rule, |
| string::iterator & | it | ||
| ) |
Parses string, processes and adds probability factor
| rule | string to parse |
| it | opening probability factor position in rule string |
| FunctionParser* AP_LSystem::Rule::condition |
rule condition - for parametric L-system
| std::vector<FunctionParser*> AP_LSystem::Rule::dynamicStrings |
dynamic parts of successor
| string AP_LSystem::Rule::leftContext |
right context
| FunctionParser* AP_LSystem::Rule::probabilityFactor |
probability factor - for stochastic L-system
| string AP_LSystem::Rule::rightContext |
left context
| std::vector<StaticString*> AP_LSystem::Rule::staticStrings |
static parts of successor
| char AP_LSystem::Rule::strictPredecessor |
strict predecessor of rule
| std::string AP_LSystem::Rule::variables |
list of variables in string