NVIDIA IndeX API nvidia_logo_transpbg.gif Up
iintersection_highlighting.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_IINTERSECTION_HIGHLIGHTING_H
8#define NVIDIA_INDEX_IINTERSECTION_HIGHLIGHTING_H
9
10#include <mi/dice.h>
11#include <mi/base/interface_declare.h>
12
13#include <nv/index/iattribute.h>
14
15namespace nv {
16namespace index {
17
36 public mi::base::Interface_declare<0x249cc579,0x0194,0x4399,0xb1,0x91,0x79,0xd1,0xe4,0x2d,0x09,0x9e,
37 nv::index::IAttribute>
38{
39public:
43 virtual void set_intersection_shape(mi::neuraylib::Tag_struct shape_tag) = 0;
44
48 virtual mi::neuraylib::Tag_struct get_intersection_shape() const = 0;
49
53 virtual void set_color(const mi::math::Color_struct& color) = 0;
54
58 virtual const mi::math::Color_struct& get_color() const = 0;
59
74 virtual void set_width(mi::Float32 width) = 0;
75
80 virtual mi::Float32 get_width() const = 0;
81
87 virtual void set_smoothness(mi::Float32 smoothness) = 0;
88
93 virtual mi::Float32 get_smoothness() const = 0;
94
117 virtual void set_discontinuity_limit(mi::Float32 discontinuity_limit) = 0;
118
125 virtual mi::Float32 get_discontinuity_limit() const = 0;
126};
127
128}} // namespace
129
130#endif // NVIDIA_INDEX_IINTERSECTION_HIGHLIGHTING_H
Enables the highlighting of an intersection with another shape on the surface of the current shape.
Definition: iintersection_highlighting.h:38
virtual mi::Float32 get_width() const =0
Returns the width used for highlighting the intersection.
virtual void set_smoothness(mi::Float32 smoothness)=0
Controls how much the intersection should be smoothed.
virtual void set_discontinuity_limit(mi::Float32 discontinuity_limit)=0
Controls how discontinuities in intersecting heightfields should be handled.
virtual mi::Float32 get_discontinuity_limit() const =0
Returns how discontinuities in intersecting heightfields should be handled.
virtual void set_width(mi::Float32 width)=0
Sets the width used for highlighting the intersection.
virtual mi::neuraylib::Tag_struct get_intersection_shape() const =0
Returns the intersecting scene element.
virtual mi::Float32 get_smoothness() const =0
Returns how much the intersection should be smoothed.
virtual const mi::math::Color_struct & get_color() const =0
Returns the color used for highlighting the intersection.
virtual void set_intersection_shape(mi::neuraylib::Tag_struct shape_tag)=0
Sets the intersecting scene element.
virtual void set_color(const mi::math::Color_struct &color)=0
Sets the color used for highlighting the intersection.
Base class representing attributes that can be defined in a scene description.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349