NVIDIA IndeX API nvidia_logo_transpbg.gif Up
xac_interface_scene_elements_irregular_volume_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
14{
17};
18
22{
24 bool is_valid() const;
25};
26
30{
31public:
34
40
43
46
49 const Ray& ray,
50 const float ray_t) const;
51
54 const float3& scene_position) const;
55
57 template<typename Attrib_type>
58 Attrib_type fetch_attribute(
59 const unsigned attrib_idx,
60 const Irregular_volume_cell_info& cell_info) const;
61
63 template<typename Attrib_type>
65 const unsigned attrib_idx,
66 const Irregular_volume_cell_info& cell_info,
67 const float3& sample_offset_vector) const;
68
69}; // class Irregular_volume
70
71} // namespace xac
72} // namespace index
73} // namespace nv
Colormap.
Definition: xac_interface_scene_elements_doc.h:139
Irregular volume reference class.
Definition: xac_interface_scene_elements_irregular_volume_doc.h:30
Sample_info_irregular_volume Base_info_type
Declaring a irregular volume sample info.
Definition: xac_interface_scene_elements_irregular_volume_doc.h:33
Attrib_type fetch_attribute(const unsigned attrib_idx, const Irregular_volume_cell_info &cell_info) const
Sample a irregular volume attribute using a precomputed cell information object.
Irregular_volume_cell_info generate_cell_sample_info(const Ray &ray, const float ray_t) const
Generates a local irregular volume cell information based on the view ray and depth.
Irregular_volume_cell_info generate_cell_sample_info(const float3 &scene_position) const
Generates a local irregular volume cell information based on a sampling position in scene space coord...
float3 get_scene_bounding_box_min() const
Get the irregular volume bounding box minimum coordinate.
float3 get_scene_bounding_box_max() const
Get the irregular volume bounding box maximum coordinate.
xac::Colormap get_colormap() const
Get the colormap currently associated with the volume through the scene setup.
Attrib_type fetch_attribute_offset(const unsigned attrib_idx, const Irregular_volume_cell_info &cell_info, const float3 &sample_offset_vector) const
Sample a irregular volume attribute using a precomputed cell information object using a specified spa...
Ray data structure.
Definition: xac_interface_scene_elements_doc.h:112
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349
Irregular volume cell info context that stores internal information about current volume cell locatio...
Definition: xac_interface_scene_elements_irregular_volume_doc.h:22
bool is_valid() const
Verify if the irregular volume cell info is valid.
Sample information for irregular volumes.
Definition: xac_interface_scene_elements_irregular_volume_doc.h:14
Irregular_volume_cell_info sample_cell_info
Declaring a irregular volume cell info.
Definition: xac_interface_scene_elements_irregular_volume_doc.h:16
Generic ray sampling information.
Definition: xac_interface_sample_info_doc.h:16