NVIDIA IndeX API nvidia_logo_transpbg.gif Up
iwireframe_rendering_style.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_IWIREFRAME_RENDERING_STYLE_H
8#define NVIDIA_INDEX_IWIREFRAME_RENDERING_STYLE_H
9
10#include <mi/base/interface_declare.h>
11#include <mi/dice.h>
12
13#include <nv/index/iattribute.h>
14
15namespace nv
16{
17namespace index
18{
19
38 public mi::base::Interface_declare<0x3150e667,0xf850,0x4bfc,0x84,0xdd,0x98,0xa6,0x1d,0x78,0x28,0x10,
39 nv::index::IAttribute>
40{
41public:
44 {
49 };
50
55 virtual void set_wireframe_style(Wireframe_style style) = 0;
56
62
67 virtual void set_wireframe_width(mi::Float32 width) = 0;
68
69
74 virtual mi::Float32 get_wireframe_width() const = 0;
75
80 virtual void set_wireframe_color(const mi::math::Color_struct& color) = 0;
81
86 virtual mi::math::Color_struct get_wireframe_color() const = 0;
87};
88
108 public mi::base::Interface_declare<0x9837b2d4,0x8347,0x4e56,0x97,0x42,0x0a,0xfc,0x9f,0x54,0xae,0x45,
109 nv::index::IWireframe_rendering_style>
110{
111public:
114 {
120 };
121
126 virtual void set_wireframe_topology(Wireframe_topology topology) = 0;
127
133
138 virtual void set_wireframe_resolution(mi::Uint32 resolution) = 0;
139
144 virtual mi::Uint32 get_wireframe_resolution() const = 0;
145};
146
147}} // namespace index / nv
148
149#endif // NVIDIA_INDEX_IWIREFRAME_RENDERING_STYLE_H
The interface class representing the wireframe style specific to heightfields.
Definition: iwireframe_rendering_style.h:110
virtual Wireframe_topology get_wireframe_topology() const =0
Get the current wireframe topology.
virtual void set_wireframe_topology(Wireframe_topology topology)=0
Set the wireframe topology to be used.
virtual void set_wireframe_resolution(mi::Uint32 resolution)=0
Set the wireframe resolution.
virtual mi::Uint32 get_wireframe_resolution() const =0
Get the current wireframe resolution.
Wireframe_topology
Wireframe topologies.
Definition: iwireframe_rendering_style.h:114
@ WIREFRAME_TOPOLOGY_TRIANGLES
wireframe of the triangles that setup the heightfield's surface
Definition: iwireframe_rendering_style.h:116
@ WIREFRAME_TOPOLOGY_QUADS
wireframe of the quads that setup the heightfield's surface (similar to HF_WIREFRAME_STYLE_TRIANGLES ...
Definition: iwireframe_rendering_style.h:119
The interface class representing an attribute to render triangle based geometries in wireframe style.
Definition: iwireframe_rendering_style.h:40
virtual mi::math::Color_struct get_wireframe_color() const =0
Get the current outline/wireframe color.
Wireframe_style
Wireframe rendering styles.
Definition: iwireframe_rendering_style.h:44
@ WIREFRAME_STYLE_WIREFRAME
pure wireframe rendering (triangles are not rendered)
Definition: iwireframe_rendering_style.h:48
@ WIREFRAME_STYLE_OUTLINE
outlines rendered on top of the geometry
Definition: iwireframe_rendering_style.h:46
virtual void set_wireframe_style(Wireframe_style style)=0
Set the wireframe style to be used.
virtual void set_wireframe_color(const mi::math::Color_struct &color)=0
Set the outline/wireframe color to be used.
virtual mi::Float32 get_wireframe_width() const =0
Get the current outline/wireframe width, specified in object units.
virtual void set_wireframe_width(mi::Float32 width)=0
Set the outline/wireframe width to be used, specified in object units.
virtual Wireframe_style get_wireframe_style() const =0
Get the current wireframe style.
Base class representing attributes that can be defined in a scene description.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349