Interface class that returns all results of a pick operation in front-to-back order. More...
#include <iscene_query_results.h>
Inherits mi::base::Interface_declare< 0xe39d04d8, ... >.
Public Member Functions | |
virtual mi::Uint32 | get_nb_results () const =0 |
Returns the number of intersections between the scene elements in the scene and the cast ray. More... | |
virtual IScene_pick_result * | get_result (mi::Uint32 index) const =0 |
Returns a single pick result determined by the given index that corresponds to the depth ordering. More... | |
virtual mi::Size | get_viewport_index () const =0 |
Returns which viewport the pick results come from. More... | |
Interface class that returns all results of a pick operation in front-to-back order.
The interface class enables accessing all scene query result generated by a mouse over operation (cf. IScene_pick_result
). The mouse over operation computes all intersections of the cast ray with the scene elements and all query results are sorted in front to depth order in accordance to the camera position.
|
pure virtual |
Returns the number of intersections between the scene elements in the scene and the cast ray.
|
pure virtual |
Returns a single pick result determined by the given index that corresponds to the depth ordering.
[in] | index | The index enables indexing the query results in depth sorted order. That is, the index 0 accesses the front most query result and the index [0, get_nb_results()-1] accesses the back most query result. |
|
pure virtual |
Returns which viewport the pick results come from.
The returned value is the index in the IViewport_list
that was passed to IIndex_scene_query::pick()
.