NVIDIA Iray API Home  Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
iimage.h
Go to the documentation of this file.
1 //*****************************************************************************
2 // Copyright 1986, 2016 NVIDIA Corporation. All rights reserved.
3 //*****************************************************************************
6 //*****************************************************************************
7 
8 #ifndef MI_NEURAYLIB_IIMAGE_H
9 #define MI_NEURAYLIB_IIMAGE_H
10 
12 #include <mi/neuraylib/version.h>
13 
14 namespace mi {
15 
16 namespace neuraylib {
17 
18 class ICanvas;
19 
31 class IImage :
58  public base::Interface_declare<0xca59b977,0x30ee,0x4172,0x91,0x53,0xb7,0x70,0x2c,0x6b,0x3a,0x76,
59  neuraylib::IScene_element>
60 {
61 public:
71  virtual Sint32 reset_file( const char* filename) = 0;
72 
80  virtual const char* get_filename() const = 0;
81 
87  virtual const char* get_original_filename() const = 0;
88 
97  virtual bool set_from_canvas( const ICanvas* canvas) = 0;
98 
110  virtual bool set_from_canvas( ICanvas* canvas, bool shared = false) = 0;
111 
119  virtual const ICanvas* get_canvas( Uint32 level = 0) const = 0;
120 
124  virtual const char* get_type() const = 0 ;
125 
127  virtual Uint32 get_levels() const = 0;
128 
132  virtual Uint32 resolution_x( Uint32 level = 0) const = 0;
133 
137  virtual Uint32 resolution_y( Uint32 level = 0) const = 0;
138 
142  virtual Uint32 resolution_z( Uint32 level = 0) const = 0;
143 };
144  // end group mi_neuray_misc
146 
147 } // namespace neuraylib
148 
149 #ifdef MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
150 using neuraylib::IImage;
151 using neuraylib::IScene_element;
152 #endif // MI_NEURAYLIB_DEPRECATED_NAMESPACE_MI_TRANSITION
153 
154 } // namespace mi
155 
156 #endif // MI_NEURAYLIB_IIMAGE_H