MaterialSwatchGenerator is used for generating swatch images.
To use:
#include
<class_material_swatch_generator_1_1_material_swatch_generator.h>
Public Member Functions |
|
__init__ () | |
cleanup () | |
Clean-up all our references to complex
objects. |
|
isReady () | |
isWaiting () | |
setDisplay () | |
setDrawRoot () | |
Sets the draw root onto which the swatch
geometry will be attached. |
|
createSwatchGeometryFromFile () | |
Creates the geometry to be used for the
swatch images using the data contained in the given file. |
|
generateSwatch () | |
Generates a swatch using the given filename
and dimensions, using the provided appearance parameters. |
|
onNodeBoundingBoxValid () |
MaterialSwatchGenerator.MaterialSwatchGenerator.__init__ | ( | ) |
MaterialSwatchGenerator.MaterialSwatchGenerator.cleanup | ( | ) |
Clean-up all our references to complex objects.
MaterialSwatchGenerator.MaterialSwatchGenerator.isReady | ( | ) |
MaterialSwatchGenerator.MaterialSwatchGenerator.isWaiting | ( | ) |
MaterialSwatchGenerator.MaterialSwatchGenerator.setDisplay | ( | ) |
MaterialSwatchGenerator.MaterialSwatchGenerator.setDrawRoot | ( | ) |
Sets the draw root onto which the swatch geometry will be attached.
MaterialSwatchGenerator.MaterialSwatchGenerator.createSwatchGeometryFromFile | ( | ) |
Creates the geometry to be used for the swatch images using the data contained in the given file.
MaterialSwatchGenerator.MaterialSwatchGenerator.generateSwatch | ( | ) |
Generates a swatch using the given filename and dimensions, using the provided appearance parameters.
The appearance parameters should be a two-item sequence, with the first item being the material, and the second being the environment lighting (as found in the Appearance class).
MaterialSwatchGenerator.MaterialSwatchGenerator.onNodeBoundingBoxValid | ( | ) |