VRay SDK for C++
Loading...
Searching...
No Matches
VRay::ScannedMaterialInfo Class Reference

Public Types

enum  Error { NO_ERR = 0 , BAD_LIBRARY_FILE = 1 , SDK_BROKEN = 3 }
 

Public Member Functions

 ScannedMaterialInfo (const char *pluginLibPath=NULL)
 
 ScannedMaterialInfo (const std::string &pluginLibPath)
 
Error getError () const
 
bool getInfo (const char *filename, std::string &info) const
 
bool getInfo (const std::string &filename, std::string &info) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
bool getPreset (const char *filename, ScannedMaterialPreset &result) const
 
bool getPreset (const std::string &filename, ScannedMaterialPreset &result) const
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
 
 operator bool () const
 
bool operator! () const
 

Member Function Documentation

◆ getError()

Error VRay::ScannedMaterialInfo::getError ( ) const

If exeptions are disabled, check if the ScannedMaterialInfo constructor has been able to load the vray_BRDFScanned dynamic library.

Returns
Error

◆ getInfo()

bool VRay::ScannedMaterialInfo::getInfo ( const char *  filename,
std::string &  info 
) const

Get information string about the file content.

Parameters
filenameThe name of the file containing the scanned material data.
info[out] Info string.
Returns
true - success, false - failure.

◆ getPreset()

bool VRay::ScannedMaterialInfo::getPreset ( const char *  filename,
ScannedMaterialPreset result 
) const

Get preset values of the scanned material.

Parameters
filenameThe name of the file containing the scanned material data.
result[out] Structure filled in with preset data.
Returns
true - success, false - failure.

◆ operator bool()

VRay::ScannedMaterialInfo::operator bool ( ) const

If exeptions are disabled, check if the ScannedMaterialInfo constructor has been able to load the vray_BRDFScanned dynamic library.

Returns
true - ok, false - error.

◆ operator!()

bool VRay::ScannedMaterialInfo::operator! ( ) const

If exeptions are disabled, check if the ScannedMaterialInfo constructor hasn't been able to load the vray_BRDFScanned dynamic library.


The documentation for this class was generated from the following file: