HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SHOP_GeoOverride Class Reference

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
 

Detailed Description

Class to help with managing material overrides for geometry attributes.

Definition at line 21 of file SHOP_GeoOverride.h.

Constructor & Destructor Documentation

SHOP_GeoOverride::SHOP_GeoOverride ( )
SHOP_GeoOverride::~SHOP_GeoOverride ( )

Member Function Documentation

void SHOP_GeoOverride::addKey ( const char *  key,
exint  value 
)
inline

Add override options

Definition at line 44 of file SHOP_GeoOverride.h.

void SHOP_GeoOverride::addKey ( const char *  key,
fpreal  value 
)
inline

Add override options

Definition at line 46 of file SHOP_GeoOverride.h.

void SHOP_GeoOverride::addKey ( const char *  key,
const UT_StringHolder value 
)
inline

Add override options

Definition at line 48 of file SHOP_GeoOverride.h.

void SHOP_GeoOverride::clear ( void  )
inline

Clear object.

Definition at line 31 of file SHOP_GeoOverride.h.

exint SHOP_GeoOverride::entries ( ) const
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'}")

void SHOP_GeoOverride::merge ( const SHOP_GeoOverride other)
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.


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