26 #ifndef LayeredRTree_h 27 #define LayeredRTree_h 67 for (std::vector<SUMORTree*>::iterator it =
myLayers.begin(); it !=
myLayers.end(); ++it) {
103 for (std::vector<SUMORTree*>::const_iterator it =
myLayers.begin(); it !=
myLayers.end(); ++it) {
104 result += (*it)->Search(a_min, a_max, c);
LayeredRTree()
Constructor.
~LayeredRTree()
Destructor.
int Search(const float a_min[2], const float a_max[2], const GUIVisualizationSettings &c) const
Find all within search rectangle (searches all layers in order)
Stores the information about how to visualize structures.
A RT-tree for efficient storing of SUMO's GL-objects.
GUIGlObjectType getType() const
Returns the type of the object as coded in GUIGlObjectType.
size_t selectLayer(GUIGlObject *o)
select the appropriate layer for each object
void Remove(const float a_min[2], const float a_max[2], GUIGlObject *const &a_dataId)
Remove entry (delegate to appropriate layer)
std::vector< SUMORTree * > myLayers
the layers for drawing
void Insert(const float a_min[2], const float a_max[2], GUIGlObject *const &a_dataId)
Insert entry (delegate to appropriate layer)
A RT-tree for efficient storing of SUMO's GL-objects in layers.