NVIDIA IndeX API nvidia_logo_transpbg.gif Up
icone.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_ICONE_H
8#define NVIDIA_INDEX_ICONE_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
29class ICone :
30 public mi::base::Interface_declare<0xe2e95b32,0x858a,0x4cb7,0x80,0x91,0xf5,0xf7,0x42,0x5e,0x9a,0x04,
31 nv::index::IObject_space_shape>
32{
33public:
38 virtual void set_center(const mi::math::Vector_struct<mi::Float32, 3>& center) = 0;
39
44 virtual const mi::math::Vector_struct<mi::Float32, 3>& get_center() const = 0;
45
50 virtual void set_tip(const mi::math::Vector_struct<mi::Float32, 3>& tip) = 0;
51
56 virtual const mi::math::Vector_struct<mi::Float32, 3>& get_tip() const = 0;
57
61 virtual void set_radius(mi::Float32 radius) = 0;
62
67 virtual mi::Float32 get_radius() const = 0;
68
73 virtual void set_capped(bool is_capped) = 0;
74
79 virtual bool get_capped() const = 0;
80};
81
82}} // namespace index / nv
83
84#endif // NVIDIA_INDEX_ICONE_H
A 3D cone is defined by its base's center and a tip.
Definition: icone.h:32
virtual bool get_capped() const =0
Returns whether the cone is capped.
virtual void set_capped(bool is_capped)=0
Controls whether the cone is capped.
virtual mi::Float32 get_radius() const =0
Returns the cone's base radius.
virtual const mi::math::Vector_struct< mi::Float32, 3 > & get_tip() const =0
Returns the position of the tip in the cone's local coordinate system.
virtual void set_radius(mi::Float32 radius)=0
Sets the cone's base radius.
virtual const mi::math::Vector_struct< mi::Float32, 3 > & get_center() const =0
Returns center of the cone's base in its local coordinate system.
virtual void set_center(const mi::math::Vector_struct< mi::Float32, 3 > &center)=0
Sets center of the cone's base in its local coordinate system.
virtual void set_tip(const mi::math::Vector_struct< mi::Float32, 3 > &tip)=0
Sets the position of the tip in the cone's local coordinate system.
Base class declaring the functionality of higher-level shapes.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349