Classes | |
| class | ObjectSet | 
| the basis class for object set methods.  More... | |
| class | ObjectSet | 
| the basis class for object set methods.  More... | |
Functions | |
| virtual ObjectSet * | ObjectSet::duplicate ()=0 | 
| void | ObjectSet::set_grcinterface (GraphicsCacheInterface *grcinterface) | 
| bool | ObjectSet::is_ok () | 
| uint32 | ObjectSet::memory () | 
| virtual void | ObjectSet::clear ()=0 | 
| virtual void | ObjectSet::bbox_set (bbox &bb)=0 | 
| virtual void | ObjectSet::add (uint32 obj, bbox &bb)=0 | 
| virtual void | ObjectSet::realize ()=0 | 
| virtual uint32 | ObjectSet::intersect (ray &r, float &distance, packed &data)=0 | 
Variables | |
| bool | ObjectSet::_ok | 
| uint32 | ObjectSet::_memory_used | 
| GraphicsCacheInterface * | ObjectSet::_grcinterface | 
ObjectSet are used to organize object in a faster manner than testing all objects one after an other. Regular grid, n-trees are some examples of such data structures.
| virtual void ObjectSet::add | ( | uint32 | obj, | |
| bbox & | bb | |||
| ) |  [pure virtual, inherited] | 
        
Adds a new object ID with its bbox.
| obj | the object ID, | |
| bb | the bbox. | 
| virtual void ObjectSet::bbox_set | ( | bbox & | bb | ) |  [pure virtual, inherited] | 
        
| virtual void ObjectSet::clear | ( | ) |  [pure virtual, inherited] | 
        
Clears the internal datas and is call after each frame computation.
| virtual ObjectSet* ObjectSet::duplicate | ( | ) |  [pure virtual, inherited] | 
        
Duplicates the object to free parametrized constructor.
| virtual uint32 ObjectSet::intersect | ( | ray & | r, | |
| float & | distance, | |||
| packed & | data | |||
| ) |  [pure virtual, inherited] | 
        
Searchs for an intersection with the whole scene but just to have the nearest object, not the full computed intersection.
| r | the ray to test, | |
| i | the resulting distance (if found), | |
| data | the private datas to pass to Geometry::compute_intersection. | 
 1.5.0