NVIDIA Iray API Home  Up
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
irendering_configuration.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_IRENDERING_CONFIGURATION_H
9 #define MI_NEURAYLIB_IRENDERING_CONFIGURATION_H
10 
12 #include <mi/neuraylib/version.h>
13 
14 namespace mi {
15 
16 class IArray;
17 class IString;
18 class IStructure;
19 
20 namespace neuraylib {
21 
22 class IGpu_description;
23 
28 class ILpe_check_result : public
31  mi::base::Interface_declare<0xec3bc890,0x4ea8,0x4465,0x9e,0x83,0xd8,0x41,0xa8,0xb4,0x77,0x94>
32 {
33 public:
35  virtual Size get_messages_length() const = 0;
36 
39  virtual Size get_index( Size i) const = 0;
40 
42  virtual bool get_color_expression_flag( Size i) const = 0;
43 
46  virtual Size get_position( Size i) const = 0;
47 
50  virtual const char* get_message( Size i) const = 0;
51 };
52 
54 class IRendering_configuration : public
55  mi::base::Interface_declare<0x8e148c6e,0x3515,0x4368,0xba,0xb7,0x97,0xfd,0x26,0x35,0xbb,0x91>
56 {
57 public:
59 
60 
68  virtual Sint32 add_mdl_path( const char* path) = 0;
69 
77  virtual Sint32 remove_mdl_path( const char* path) = 0;
78 
83  virtual void clear_mdl_paths() = 0;
84 
91  virtual Size get_mdl_paths_length() const = 0;
92 
99  virtual const IString* get_mdl_path( Size index) const = 0;
100 
102 
104 
114  virtual Sint32 add_resource_path( const char* path) = 0;
115 
125  virtual Sint32 remove_resource_path( const char* path) = 0;
126 
133  virtual void clear_resource_paths() = 0;
134 
143  virtual Size get_resource_paths_length() const = 0;
144 
153  virtual const IString* get_resource_path( Size index) const = 0;
154 
156 
158 
166  virtual Sint32 add_include_path( const char* path) = 0;
167 
175  virtual Sint32 remove_include_path( const char* path) = 0;
176 
181  virtual void clear_include_paths() = 0;
182 
189  virtual Size get_include_paths_length() const = 0;
190 
197  virtual const IString* get_include_path( Size index) const = 0;
198 
200 
202 
207  virtual Uint32 get_renderers_length() const = 0;
208 
214  virtual const char* get_renderer( Uint32 index) const = 0;
215 
238  virtual Sint32 set_renderer_option( const char* name, const char* value) = 0;
239 
247  virtual const IString* get_renderer_option( const char* name) const = 0;
248 
250 
257  static const Uint32 CPU = 0xffffffff;
258 
262  static const Uint32 ALL_GPUS = 0xfffffffe;
263 
267  static const Uint32 ALL_HOSTS = 0xfffffffd;
268 
272  static const Uint32 LOCAL_HOST = 0;
273 
275 
276 
286  virtual Sint32 set_gpu_enabled( bool value) = 0;
287 
291  virtual bool get_gpu_enabled() const = 0;
292 
301  virtual Sint32 set_driver_version_check_enabled( bool value) = 0;
302 
306  virtual bool get_driver_version_check_enabled() const = 0;
307 
322  virtual const IGpu_description* get_gpu_description( Uint32 gpu_id, Uint32 host_id = 0) = 0;
323 
332  virtual Uint32 get_highest_gpu_id( Uint32 host_id = 0) = 0;
333 
362  Uint32 resource_id, Uint32 host_id, const char* render_mode, bool enable) = 0;
363 
388  Uint32 resource_id, Uint32 host_id, const char* render_mode, bool& enable) = 0;
389 
391 
396  enum Alpha_mode {
403  // Undocumented, for alignment only
404  ALPHA_MODE_FORCE_32_BIT = 0xffffffffU
405  };
406 
408 
409 
427  const IArray* expressions) const = 0;
428 
441  const char* canvas_name) const = 0;
442 
456  virtual const IString* make_alpha_expression( Alpha_mode alpha_mode) const = 0;
457 
480  virtual const IString* make_alpha_mask_expression(
481  const IArray* labels, bool exclude, Alpha_mode alpha_mode) const = 0;
482 
502  virtual const IString* make_color_mask_expression(
503  const IArray* labels, bool exclude) const = 0;
504 
506 
507  virtual Sint32 set_metasl_compiler_option( const char* name, const char* value) = 0;
508 
509  virtual const IString* get_metasl_compiler_option( const char* name) const = 0;
510 };
511 
513  // end group mi_neuray_configuration
515 
516 } // namespace neuraylib
517 
518 } // namespace mi
519 
520 #endif // MI_NEURAYLIB_IRENDERING_CONFIGURATION_H