MDL SDK API nvidia_logo_transpbg.gif Up
itile.h
Go to the documentation of this file.
1/***************************************************************************************************
2 * Copyright 2024 NVIDIA Corporation. All rights reserved.
3 **************************************************************************************************/
6
7#ifndef MI_NEURAYLIB_ITILE_H
8#define MI_NEURAYLIB_ITILE_H
9
11
12namespace mi {
13
14namespace neuraylib {
15
34class ITile : public
35 mi::base::Interface_declare<0x0f0a0181,0x7640,0x4f60,0x9d,0xa7,0xb0,0xa0,0x09,0x17,0x1a,0xec>
36{
37public:
45 virtual void get_pixel(
46 Uint32 x_offset,
47 Uint32 y_offset,
48 Float32* floats) const = 0;
49
57 virtual void set_pixel(
58 Uint32 x_offset,
59 Uint32 y_offset,
60 const Float32* floats) = 0;
61
65 virtual const char* get_type() const = 0;
66
68 virtual Uint32 get_resolution_x() const = 0;
69
71 virtual Uint32 get_resolution_y() const = 0;
72
85 virtual const void* get_data() const = 0;
86
99 virtual void* get_data() = 0;
100};
101 // end group mi_neuray_rendering
103
104} // namespace neuraylib
105
106} // namespace mi
107
108#endif // MI_NEURAYLIB_ITILE_H
Mixin class template for deriving new interface declarations.
Definition: interface_declare.h:43
Abstract interface for a tile.
Definition: itile.h:36
virtual Uint32 get_resolution_y() const =0
Returns the tile size in y direction.
virtual const void * get_data() const =0
Returns a pointer to the raw tile data according to the pixel type of the tile.
virtual Uint32 get_resolution_x() const =0
Returns the tile size in x direction.
virtual void get_pixel(Uint32 x_offset, Uint32 y_offset, Float32 *floats) const =0
Looks up a certain pixel at the given coordinates.
virtual const char * get_type() const =0
Returns the pixel type used by the tile.
virtual void set_pixel(Uint32 x_offset, Uint32 y_offset, const Float32 *floats)=0
Stores a certain pixel at the given coordinates.
virtual void * get_data()=0
Returns a pointer to the raw tile data according to the pixel type of the tile.
unsigned int Uint32
32-bit unsigned integer.
Definition: types.h:49
float Float32
32-bit float.
Definition: types.h:51
Mixin class template for deriving new interface declarations.
Common namespace for APIs of NVIDIA Advanced Rendering Center GmbH.
Definition: example_derivatives.dox:5