|
0.45.0
|
#include <iLSystem.h>
Public Member Functions | |
| iLSystem ()=default | |
| virtual | ~iLSystem ()=default |
| iaString | generate (iaString input, int32 iterations, uint32 seed=1337) |
| void | setRule (wchar_t input, iaString output) |
| void | setRule (wchar_t input, std::vector< std::pair< float64, iaString > > output) |
| void | clearRule (wchar_t input) |
| void | setAgeFilter (wchar_t input, iLSystemAgeFunction ageFunction, int32 ageFilter) |
| void | clear () |
string based L-System implementation
|
default |
nothing to do
|
virtualdefault |
nothing to do
| void igor::iLSystem::clear | ( | ) |
clears all data
| void igor::iLSystem::clearRule | ( | wchar_t | input | ) |
clears rule for specified input character
| input | the input character |
generates string based on input string and rule set
| input | the input string |
| iterations | the amount of iterations to alter the string |
| seed | random seed |
| void igor::iLSystem::setAgeFilter | ( | wchar_t | input, |
| iLSystemAgeFunction | ageFunction, | ||
| int32 | ageFilter | ||
| ) |
sets age filter for specified rule
| input | the input character |
| ageFunction | the age function definition |
| ageFilter | the age filter threashold |
| void igor::iLSystem::setRule | ( | wchar_t | input, |
| iaString | output | ||
| ) |
adds a rule to replace a character with a string
| input | the input character |
| output | the output string for that rule |
| void igor::iLSystem::setRule | ( | wchar_t | input, |
| std::vector< std::pair< float64, iaString > > | output | ||
| ) |
adds a rule to replace a character with a couple string
| input | the input character |
| rules | weighted rules |