NVIDIA IndeX API nvidia_logo_transpbg.gif Up
ipolygon.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright 2023 NVIDIA Corporation. All rights reserved.
3 *****************************************************************************/
6
7#ifndef NVIDIA_INDEX_IPOLYGON_H
8#define NVIDIA_INDEX_IPOLYGON_H
9
10#include <mi/base/interface_declare.h>
11#include <mi/dice.h>
12
13#include <nv/index/ishape.h>
14#include <nv/index/iattribute.h>
15#include <nv/index/ifont.h>
16
17namespace nv
18{
19namespace index
20{
26class IPolygon :
27 public mi::base::Interface_declare<0x6558d81b,0xe2de,0x4349,0x92,0xcf,0x86,0xd2,0x27,0x1b,0x3b,0xfc,
28 nv::index::IImage_space_shape>
29
30{
31public:
50 virtual bool set_geometry(
51 const mi::math::Vector_struct<mi::Float32, 2>* vertices,
52 mi::Uint32 nb_vertices,
53 const mi::math::Vector_struct<mi::Float32, 3>& center) = 0;
54
65 virtual void get_geometry(
66 mi::math::Vector_struct<mi::Float32, 2>** vertices,
67 mi::Uint32& nb_vertices,
68 mi::math::Vector_struct<mi::Float32, 3>& center) const = 0;
69
71 //
73 {
76 };
77
78
84 virtual void set_fill_style(
85 const mi::math::Color_struct& fill_color,
86 Fill_style fill_style) = 0;
87
93 virtual void get_fill_style(
94 mi::math::Color_struct& fill_color,
95 Fill_style& fill_style) const = 0;
96};
97
98}} // namespace index / nv
99
100#endif // NVIDIA_INDEX_IPOLYGON_H
A polygon of n vertices defined in image space.
Definition: ipolygon.h:30
Fill_style
Fill style defines the appearance of the polygon.
Definition: ipolygon.h:73
@ FILL_SOLID
Flat color.
Definition: ipolygon.h:75
@ FILL_EMPTY
No fill.
Definition: ipolygon.h:74
virtual bool set_geometry(const mi::math::Vector_struct< mi::Float32, 2 > *vertices, mi::Uint32 nb_vertices, const mi::math::Vector_struct< mi::Float32, 3 > &center)=0
set polygon geometry
virtual void get_fill_style(mi::math::Color_struct &fill_color, Fill_style &fill_style) const =0
Get polygon fill style.
virtual void get_geometry(mi::math::Vector_struct< mi::Float32, 2 > **vertices, mi::Uint32 &nb_vertices, mi::math::Vector_struct< mi::Float32, 3 > &center) const =0
Get polygon geometry.
virtual void set_fill_style(const mi::math::Color_struct &fill_color, Fill_style fill_style)=0
Set polygon fill style.
Base class representing attributes that can be defined in a scene description.
Base class representing the fonts in the scene description.
Base class declaring the functionality of higher-level shapes.
Common namespace for all NVIDIA APIs.
Definition: iindex.h:349