NVIDIA Iray API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
List of all members
References in manual:  1  2  3 
mi::ITexture Class Referenceabstract

Textures add image processing options to images. More...

Inheritance diagram for mi::ITexture:
Inheritance graph
[legend]

Public Member Functions

Methods related to the referenced image
virtual Sint32  set_image (const char *name)=0
  Sets the referenced image. More...
 
virtual const char *  get_image () const =0
  Returns the referenced image. More...
 
Methods related to the gamma value
virtual void  set_gamma (Float32 gamma)=0
  Sets the gamma value of this texture. More...
 
virtual Float32  get_gamma () const =0
  Returns the gamma value of this texture. More...
 
virtual Float32  get_effective_gamma () const =0
  Returns the effective gamma value. More...
 
Methods related to remapping options
virtual Uint32  get_filter () const =0
  Returns lookup filter to use. More...
 
virtual void  set_filter (Uint32 type)=0
  Sets the lookup filter to use. More...
 
virtual Float32  get_blur () const =0
  Returns blur. Extra blurriness if greater than 1.0; sharper if less than 1.0. More...
 
virtual void  set_blur (Float32 blur)=0
  Sets blur. Extra blurriness if greater than 1.0; sharper if less than 1.0. More...
 
virtual const Float32_4_4_struct get_transform () const =0
  Returns the coordinate transformation. More...
 
virtual void  set_transform (const Float32_4_4_struct &transform)=0
  Sets the coordinate transformation. More...
 
virtual const Float32_3_struct get_repeat () const =0
  Returns the repetition of the image. More...
 
virtual void  set_repeat (const Float32_3_struct &repeat)=0
  Sets the repetition of the image. More...
 
virtual const Float32_3_struct get_crop_min () const =0
  Returns whether the low edges of the image are cropped. More...
 
virtual void  set_crop_min (const Float32_3_struct &crop_min)=0
  Sets whether the low edges of the image are cropped. More...
 
virtual const Float32_3_struct get_crop_max () const =0
  Returns whether the high edges of the image are cropped. More...
 
virtual void  set_crop_max (const Float32_3_struct &crop_max)=0
  Sets whether the high edges of the image are cropped. More...
 
virtual Uint32  get_flags () const =0
  Returns a bitmask containing the sum of the texture flags. More...
 
virtual void  set_flags (Uint32 value)=0
  Sets a bitmask containing the sum of the texture flags. More...
 
Miscellaneous methods
virtual void  set_compression (Texture_compression compression)=0
  Sets the texture compression method. More...
 
virtual Texture_compression  get_compression () const =0
  Returns the texture compression method. More...
 

Additional Inherited Members

- Public Types inherited from mi::base::Interface_declare< 0x012c847c, 0xaf47, 0x4338, 0xb7, 0xc4, 0x78, 0x67, 0xa3, 0x55, 0x47, 0x18, IScene_element >
typedef Interface_declare< id1,
id2, id3, id4, id5, id6, id7,
id8, id9, id10, id11,
IScene_element
Self
  Own type. More...
 
typedef Uuid_t< id1, id2, id3,
id4, id5, id6, id7, id8, id9,
id10, id11 > 
IID
  Declares the interface ID (IID) of this interface. More...
 
- Static Public Member Functions inherited from mi::base::Interface_declare< 0x012c847c, 0xaf47, 0x4338, 0xb7, 0xc4, 0x78, 0x67, 0xa3, 0x55, 0x47, 0x18, IScene_element >
static bool  compare_iid (const Uuid &iid)
  Compares the interface ID iid against the interface ID of this interface and of its ancestors. More...
 

Detailed Description

Textures add image processing options to images.

A texture appears in the scene as an argument of an MDL function call (see mi::IMdl_function_call) or default argument of an MDL function definition (see mi::IMdl_function_definition). The type of such an argument is "Attachable<Ref<Texture>>" (see mi::IRef and mi::IAttachable).

See Also
mi::IImage

Member Function Documentation

virtual Float32 mi::ITexture::get_blur ( ) const
pure virtual

Returns blur. Extra blurriness if greater than 1.0; sharper if less than 1.0.

virtual Texture_compression mi::ITexture::get_compression ( ) const
pure virtual

Returns the texture compression method.

Note
This setting does not affect the referenced image itself, it only affects image data that has been processed by the render modes. For example, in order to save GPU memory processed image data can be compressed before being uploaded to the GPU.
See Also
mi::Texture_compression
virtual const Float32_3_struct& mi::ITexture::get_crop_max ( ) const
pure virtual

Returns whether the high edges of the image are cropped.

virtual const Float32_3_struct& mi::ITexture::get_crop_min ( ) const
pure virtual

Returns whether the low edges of the image are cropped.

virtual Float32 mi::ITexture::get_effective_gamma ( ) const
pure virtual

Returns the effective gamma value.

Returns the gamma value of this texture, unless no override is set. In this case the gamma value of the underlying image is returned (or 0.0 if no image is set).

virtual Uint32 mi::ITexture::get_filter ( ) const
pure virtual

Returns lookup filter to use.

Note
Prefiltered textures are currently not supported, i.e., this value is meaningless.
See Also
mi::Filter_type
virtual Uint32 mi::ITexture::get_flags ( ) const
pure virtual

Returns a bitmask containing the sum of the texture flags.

See Also
mi::Texture_flag.
virtual Float32 mi::ITexture::get_gamma ( ) const
pure virtual

Returns the gamma value of this texture.

The gamma value of the texture is an override for the gamma value of the underlying image. The special value 0.0 means that the override is not set.

See Also
get_effective_gamma()
virtual const char* mi::ITexture::get_image ( ) const
pure virtual

Returns the referenced image.

Returns
The referenced image, or NULL if no image is referenced.
virtual const Float32_3_struct& mi::ITexture::get_repeat ( ) const
pure virtual

Returns the repetition of the image.

virtual const Float32_4_4_struct& mi::ITexture::get_transform ( ) const
pure virtual

Returns the coordinate transformation.

virtual void mi::ITexture::set_blur ( Float32  blur)
pure virtual

Sets blur. Extra blurriness if greater than 1.0; sharper if less than 1.0.

virtual void mi::ITexture::set_compression ( Texture_compression  compression)
pure virtual

Sets the texture compression method.

Note
This setting does not affect the referenced image itself, it only affects image data that has been processed by the render modes. For example, in order to save GPU memory processed image data can be compressed before being uploaded to the GPU.
See Also
mi::Texture_compression
virtual void mi::ITexture::set_crop_max ( const Float32_3_struct crop_max)
pure virtual

Sets whether the high edges of the image are cropped.

virtual void mi::ITexture::set_crop_min ( const Float32_3_struct crop_min)
pure virtual

Sets whether the low edges of the image are cropped.

virtual void mi::ITexture::set_filter ( Uint32  type)
pure virtual

Sets the lookup filter to use.

Note
Prefiltered textures are currently not supported, i.e., this value is ignored.
See Also
mi::Filter_type
virtual void mi::ITexture::set_flags ( Uint32  value)
pure virtual

Sets a bitmask containing the sum of the texture flags.

See Also
mi::Texture_flag.
virtual void mi::ITexture::set_gamma ( Float32  gamma)
pure virtual

Sets the gamma value of this texture.

The gamma value of the texture is an override for the gamma value of the underlying image. The special value 0.0 means that the override is not set.

virtual Sint32 mi::ITexture::set_image ( const char *  name)
pure virtual

Sets the referenced image.

Returns
  • 0: Success.
  • -1: Invalid parameters (NULL pointer).
  • -2: There is no element with that name.
  • -3: The element can not be referenced because it is in a more private scope than the texture.
  • -4: The element is not an image.
virtual void mi::ITexture::set_repeat ( const Float32_3_struct repeat)
pure virtual

Sets the repetition of the image.

virtual void mi::ITexture::set_transform ( const Float32_4_4_struct transform)
pure virtual

Sets the coordinate transformation.