comparison engine/core/model/structures/layer.i @ 99:64e7fe3d4288

- added possibility to change instance ids - speedup instances by removing uniqueness check for ids, that means the client has to provide unique ids or live with on unique ids - added possibility to list all instances with a given id
author spq@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 22 Jul 2008 10:04:16 +0000
parents e7b55b2b398f
children 98541d3b9220
comparison
equal deleted inserted replaced
98:214e3eb81eb2 99:64e7fe3d4288
70 Instance* createInstance(Object* object, const ExactModelCoordinate& p, const std::string& id=""); 70 Instance* createInstance(Object* object, const ExactModelCoordinate& p, const std::string& id="");
71 bool addInstance(Instance* instance, const ExactModelCoordinate& p); 71 bool addInstance(Instance* instance, const ExactModelCoordinate& p);
72 void deleteInstance(Instance* object); 72 void deleteInstance(Instance* object);
73 73
74 const std::vector<Instance*>& getInstances() const; 74 const std::vector<Instance*>& getInstances() const;
75 std::vector<Instance*> getInstances(const std::string& identifier);
75 Instance* getInstance(const std::string& id); 76 Instance* getInstance(const std::string& id);
76 77
77 void setInstancesVisible(bool vis); 78 void setInstancesVisible(bool vis);
78 bool cellContainsBlockingInstance(const ModelCoordinate& cellCoordinate); 79 bool cellContainsBlockingInstance(const ModelCoordinate& cellCoordinate);
79 void toggleInstancesVisible(); 80 void toggleInstancesVisible();