68d57beb4f5769b47c48f8b7fac9f1cb98695d53
1 // Copyright (C) 2006 Erik Dahlberg
3 // This file is part of LSystem3D.
5 // LSystem3D is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // LSystem3D is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with LSystem3D; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
45 * @param name name of rule
46 * @param content content of rule
47 * @param probability probability of rule
49 Rule(string name
, string content
, double probability
);
53 * @param ruleString the rule string
55 Rule(string ruleString
);
69 * Construct rule from string
70 * @param ruleString the rule string
72 void fromString(string ruleString
);
75 * Construct rule string
76 * @return the rule string
83 * @param name the name
85 void setName(string name
);
89 * @param content the content
91 void setContent(string content
);
94 * Set rule probability
95 * @param probability the probability factor
97 void setProbability(double probability
);
102 * @return the rule name
108 * @return the rule content
113 * Get rule probability
114 * @return the probability
116 double getProbability();
119 * Get preprocessed content
120 * @return the preprocessed content
122 string
getPreprocessedContent();