00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef CELLTYPEPLUGIN_H
00025 #define CELLTYPEPLUGIN_H
00026
00027 #include <CompuCell3D/Plugin.h>
00028
00029
00030 #include <CompuCell3D/Automaton/Automaton.h>
00031 #include <CompuCell3D/plugins/CellType/CellTypeG.h>
00032 #include <string>
00033 #include <map>
00034
00035 #include <CompuCell3D/dllDeclarationSpecifier.h>
00036
00037
00038 class CC3DXMLElement;
00039
00040 namespace CompuCell3D {
00041 class Potts3D;
00042 class CellG;
00043
00044
00045 class DECLSPECIFIER CellTypePlugin : public Plugin, public Automaton {
00046 Potts3D* potts;
00047
00048 std::map<unsigned char,std::string> typeNameMap;
00049 std::map<std::string,unsigned char> nameTypeMap;
00050
00051
00052
00053
00054
00055
00056
00057 public:
00058
00059
00060 CellTypePlugin();
00061 virtual ~CellTypePlugin();
00062
00064 virtual void init(Simulator *simulator, ParseData *_pd=0);
00065
00066 virtual void init(Simulator *simulator, CC3DXMLElement *_xmlData);
00067 virtual void update(CC3DXMLElement *_xmlData, bool _fullInitFlag=false);
00068
00069 std::map<unsigned char,std::string> & getTypeNameMap(){return typeNameMap;}
00070
00072 virtual unsigned char getCellType(const CellG*) const;
00073 virtual std::string getTypeName(const char type) const;
00074 virtual unsigned char getTypeId(const std::string typeName) const;
00075
00076
00077
00078
00080
00081
00082 virtual std::string toString();
00084
00085
00086 virtual std::string steerableName();
00087 virtual void update(ParseData *_pd, bool _fullInitFlag=false);
00088
00089
00090
00091
00092 };
00093 };
00094 #endif
00095