NVIDIA IndeX API nvidia_logo_transpbg.gif Up
icylinder.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_ICYLINDER_H
8#define NVIDIA_INDEX_ICYLINDER_H
9
10#include <mi/base/interface_declare.h>
11#include <mi/dice.h>
12
13#include <nv/index/ishape.h>
14
15namespace nv
16{
17namespace index
18{
19
30class ICylinder :
31 public mi::base::Interface_declare<0x82b63cc6,0xcd9b,0x49af,0x90,0x8f,0x3a,0xcf,0x51,0x70,0x64,0x56,
32 nv::index::IObject_space_shape>
33{
34public:
40 virtual const mi::math::Vector_struct<mi::Float32, 3>& get_top() const = 0;
41
47 virtual void set_top(const mi::math::Vector_struct<mi::Float32, 3>& top) = 0;
48
54 virtual const mi::math::Vector_struct<mi::Float32, 3>& get_bottom() const = 0;
55
61 virtual void set_bottom(const mi::math::Vector_struct<mi::Float32, 3>& bottom) = 0;
62
68 virtual mi::Float32 get_radius() const = 0;
69
75 virtual void set_radius(mi::Float32 radius) = 0;
76
84 virtual bool get_capped() const = 0;
85
90 virtual void set_capped(bool is_capped) = 0;
91};
92
93}} // namespace index / nv
94
95#endif // NVIDIA_INDEX_ICYLINDER_H
The set of higher-level 3D shapes part of the NVIDIA IndeX library includes a 3D cylinder.
Definition: icylinder.h:33
virtual void set_top(const mi::math::Vector_struct< mi::Float32, 3 > &top)=0
Set the top position of the 3D cylinder.
virtual void set_capped(bool is_capped)=0
Setting the cap rendering.
virtual void set_bottom(const mi::math::Vector_struct< mi::Float32, 3 > &bottom)=0
Set the bottom position of the 3D cylinder.
virtual mi::Float32 get_radius() const =0
Get the radius of the 3D cylinder.
virtual const mi::math::Vector_struct< mi::Float32, 3 > & get_top() const =0
Get the top position of the 3D cylinder.
virtual void set_radius(mi::Float32 radius)=0
Set the radius of the 3D cylinder.
virtual bool get_capped() const =0
A cylinder can be a solid, watertight 3D shape, i.e., its base is closed as if a cap covers the inter...
virtual const mi::math::Vector_struct< mi::Float32, 3 > & get_bottom() const =0
Get the bottom position of the 3D cylinder.
Base class declaring the functionality of higher-level shapes.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349