NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
mi::neuraylib::IPick_result Class Referenceabstract

This interface represents a single object hit by a pick operation. More...

Inheritance diagram for mi::neuraylib::IPick_result:
Inheritance graph
[legend]

Public Member Functions

virtual const char *  get_picked_object_name () const =0
  Returns the name of the picked object. More...
 
virtual const Float64_3_struct get_world_point () const =0
  Returns the world point of the pick operation. More...
 
virtual Uint32  get_path_length () const =0
  Returns the length of the path from the picked object to the root group. More...
 
virtual const char *  get_path (Uint32 index) const =0
  Returns the name of an element on the path from the picked object to the root group. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x1d9690d1, 0xcde6, 0x432f, 0x8c, 0x2f, 0x60, 0x99, 0x30, 0x6f, 0xb1, 0xae >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IInterface
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x1d9690d1, 0xcde6, 0x432f, 0x8c, 0x2f, 0x60, 0x99, 0x30, 0x6f, 0xb1, 0xae >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

This interface represents a single object hit by a pick operation.

All objects hit by a pick operation are stored in an object of type mi::neuraylib::IPick_array, whose elements are instances of this interface.

Member Function Documentation

virtual const char* mi::neuraylib::IPick_result::get_path ( Uint32  index) const
pure virtual

Returns the name of an element on the path from the picked object to the root group.

Parameters
index Indentifies the element on the the path. The value zero corresponds to the picked object, get_path_length()-1 corresponds to the root group.
Returns
The name of the element indicated by index, or NULL if index is out-of-bounds.
See Also
get_path_length()
virtual Uint32 mi::neuraylib::IPick_result::get_path_length ( ) const
pure virtual

Returns the length of the path from the picked object to the root group.

See Also
get_path()
virtual const char* mi::neuraylib::IPick_result::get_picked_object_name ( ) const
pure virtual

Returns the name of the picked object.

Identical to get_path(0).

virtual const Float64_3_struct& mi::neuraylib::IPick_result::get_world_point ( ) const
pure virtual

Returns the world point of the pick operation.