HDK
|
Class to help with managing material overrides for geometry attributes. More...
#include <SHOP_GeoOverride.h>
Public Member Functions | |
SHOP_GeoOverride () | |
~SHOP_GeoOverride () | |
exint | entries () const |
Number of entries. More... | |
void | clear () |
Clear object. More... | |
void | merge (const SHOP_GeoOverride &other) |
Merge with another SHOP_GeoOverride object. More... | |
bool | load (const char *string) |
Load from the string (i.e. "{'diff_clrb':0.32,'map':'foo.pic'}") More... | |
bool | save (UT_WorkBuffer &result) const |
Save to a string (note that the order of the keys may be different. More... | |
void | getKeys (UT_StringArray &keys) const |
Extract the keys. More... | |
bool | isString (const char *key) const |
void | addKey (const char *key, exint value) |
void | addKey (const char *key, fpreal value) |
void | addKey (const char *key, const UT_StringHolder &value) |
bool | import (const char *key, fpreal &value) const |
bool | import (const char *key, exint &value) const |
bool | import (const char *key, UT_WorkBuffer &buf) const |
Class to help with managing material overrides for geometry attributes.
Definition at line 21 of file SHOP_GeoOverride.h.
SHOP_GeoOverride::SHOP_GeoOverride | ( | ) |
SHOP_GeoOverride::~SHOP_GeoOverride | ( | ) |
Add override options
Definition at line 44 of file SHOP_GeoOverride.h.
Add override options
Definition at line 46 of file SHOP_GeoOverride.h.
|
inline |
Add override options
Definition at line 48 of file SHOP_GeoOverride.h.
Clear object.
Definition at line 31 of file SHOP_GeoOverride.h.
|
inline |
Number of entries.
Definition at line 28 of file SHOP_GeoOverride.h.
void SHOP_GeoOverride::getKeys | ( | UT_StringArray & | keys | ) | const |
Extract the keys.
bool SHOP_GeoOverride::import | ( | const char * | key, |
fpreal & | value | ||
) | const |
Extract options
bool SHOP_GeoOverride::import | ( | const char * | key, |
exint & | value | ||
) | const |
Extract options
bool SHOP_GeoOverride::import | ( | const char * | key, |
UT_WorkBuffer & | buf | ||
) | const |
Extract options
bool SHOP_GeoOverride::isString | ( | const char * | key | ) | const |
Check to see whether the value associated with the key is a string or a number.
bool SHOP_GeoOverride::load | ( | const char * | string | ) |
Load from the string (i.e. "{'diff_clrb':0.32,'map':'foo.pic'}")
|
inline |
Merge with another SHOP_GeoOverride object.
Definition at line 34 of file SHOP_GeoOverride.h.
bool SHOP_GeoOverride::save | ( | UT_WorkBuffer & | result | ) | const |
Save to a string (note that the order of the keys may be different.