X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lsystem3d%2Fsrc%2Flsystemparameters.h;fp=lsystem3d%2Fsrc%2Flsystemparameters.h;h=1d80635bad8e7f7896874fd2765493d2efbe0d24;hb=e5247a3b88c449937af08f46afc271afda2954a2;hp=0000000000000000000000000000000000000000;hpb=c48a55e9e62ed7a9d46e3c6a53faae4bc05856e5;p=lsystem3d.git diff --git a/lsystem3d/src/lsystemparameters.h b/lsystem3d/src/lsystemparameters.h new file mode 100644 index 0000000..1d80635 --- /dev/null +++ b/lsystem3d/src/lsystemparameters.h @@ -0,0 +1,67 @@ +// Copyright (C) 2006 Erik Dahlberg +// +// This file is part of LSystem3d. +// +// LSystem3D is free software; you can redistribute it and/or +// modify it under the terms of the GNU General Public License +// as published by the Free Software Foundation; either version 2 +// of the License, or (at your option) any later version. +// +// LSystem3D is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with LSystem3D; if not, write to the Free Software +// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + + + +#ifndef LSYSTEMPARAMETERS_H +#define LSYSTEMPARAMETERS_H + +#include + +#include "lindenmayersystem.h" +#include "xmlstructure.h" + +using namespace std; + + + +/** + * Save and load a l-system specification + */ +class LSystemParameters : protected XMLStructure +{ +public: + /** + * Constructor + */ + LSystemParameters(); + + /** + * Destructor + */ + ~LSystemParameters(); + + /** + * Load parameters from xml file + * @param lsystem put parameters into this l-system + * @param path path to xml file + */ + void load(LindenmayerSystem *lsystem, string path); + + /** + * Save parameters to xml file + * @param lsystem get parameters from this l-system + * @param path path to xml file + */ + void save(LindenmayerSystem *lsystem, string path); +}; + + + +#endif