fcef31f500de59c1e74a90d39a5540fbef175b95
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
);
68 * Construct rule from string
69 * @param ruleString the rule string
71 void fromString(string ruleString
);
74 * Construct rule string
75 * @return the rule string
81 * @param name the name
83 void setName(string name
);
87 * @param content the content
89 void setContent(string content
);
92 * Set rule probability
93 * @param probability the probability factor
95 void setProbability(double probability
);
99 * @return the rule name
105 * @return the rule content
110 * Get rule probability
111 * @return the probability
113 double getProbability();
116 * Get preprocessed content
117 * @return the preprocessed content
119 string
getPreprocessedContent();