NVIDIA IndeX API nvidia_logo_transpbg.gif Up
xac_interface_scene_doc.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7namespace nv {
8namespace index {
9namespace xac {
10
11// import namespace definitions
12using cuda::Mat4x4f;
13
16class Scene
17{
18public:
21
22 /* Scene Transformation Functions */
23
25 unsigned get_scene_id(const unsigned slot) const;
26
28 const Mat4x4f& get_world_to_scene_transform() const;
29
32
34 const Mat4x4f& get_world_to_camera_transform() const;
35
38
40 const Mat4x4f& get_world_to_screen_transform() const;
41
44
46 const Mat4x4f& get_scene_to_screen_transform() const;
47
50
51 /* Scene Element Getter Functions */
52
54 template<typename ELEMENT_TYPE>
55 const ELEMENT_TYPE access_by_id(const uint scene_idx) const;
56
58 template<typename ELEMENT_TYPE>
59 const ELEMENT_TYPE access(const uint scene_idx) const;
60
62 template<typename ELEMENT_TYPE>
63 bool is_valid_element(const uint scene_idx) const;
64
66 template<typename ELEMENT_TYPE>
68}; // class Scene
69
70} // namespace xac
71} // namespace index
72} // namespace nv
Generic camera struct.
Definition: xac_interface_scene_elements_doc.h:67
Generic scene descriptor class.
Definition: xac_interface_scene_doc.h:17
const Mat4x4f & get_scene_to_screen_transform_inverse() const
Get inverse transformation from scene coordinates into screen space.
const Mat4x4f & get_world_to_scene_transform_inverse() const
Get function to retrieve inverse transformation matrix.
const Mat4x4f & get_world_to_screen_transform() const
Get screen transformation matrix.
const Mat4x4f & get_world_to_scene_transform() const
Get function to retrieve transformation matrix.
const Camera camera
Camera representation.
Definition: xac_interface_scene_doc.h:20
const Mat4x4f & get_world_to_screen_transform_inverse() const
Get inverse camera transformation matrix.
uint get_number_of_elements() const
Get the number of elements of a given element type in the scene.
const Mat4x4f & get_scene_to_screen_transform() const
Get transformation from scene coordinates into screen space.
const Mat4x4f & get_world_to_camera_transform_inverse() const
Get inverse camera transformation matrix.
const Mat4x4f & get_world_to_camera_transform() const
Get camera transformation matrix.
unsigned get_scene_id(const unsigned slot) const
Slot retrieval function (id / global mapping)
bool is_valid_element(const uint scene_idx) const
Check if a given slot id is valid for the given element type.
const ELEMENT_TYPE access_by_id(const uint scene_idx) const
Retrieve a scene element by its subregion identifier for a given element type.
const ELEMENT_TYPE access(const uint scene_idx) const
Retrieve by its slot identifier for a given element type (returns a default object if slot id is inva...
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349