#include
<class_material_library_selector_1_1_material_library_selector.h>
List of all members.
Member Function Documentation
MaterialLibrarySelector.MaterialLibrarySelector.__init__ |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.cleanup |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.getMaterial |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.setSize |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.setSearchTerms |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.popupMenu |
( |
|
) |
|
If the UI wants to
show a popup menu then this is the time to do it.
The popup menu may vary depending on what part of the UI the mouse pointer is over.
Use the position argument to determine what UI is under the pointer.
Return True if the position argument is over a part of the
UI. You should return
True whether you show a popup menu or not.
MaterialLibrarySelector.MaterialLibrarySelector.select |
( |
|
) |
|
Call when you want to select a control at the specified
position.
Test each control in the UI to see if it contains the given
position.
Return the control containing the position, or None if no
control does.
MaterialLibrarySelector.MaterialLibrarySelector.editMode |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.setLibraryGroupOpen |
( |
|
) |
|
Opens or closes the given group.
Note, you must call refresh() for the changes to be reflected in
the UI.
MaterialLibrarySelector.MaterialLibrarySelector.setGroupOpen |
( |
|
) |
|
Opens or closes the given group.
Note, you must call refresh() for the changes to be reflected in
the UI.
MaterialLibrarySelector.MaterialLibrarySelector.updateMaterials |
( |
|
) |
|
Updates the UI based
on the given MaterialLibrary.
The materials will be grouped by category, and categories are
grouped by catalog.
MaterialLibrarySelector.MaterialLibrarySelector.updateSelectionHasDecals |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.updateSelectionAllLights |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.isMaterialSwatchVisible |
( |
|
) |
|
MaterialLibrarySelector.MaterialLibrarySelector.invalidateMaterialSwatch |
( |
|
) |
|
Given the material name, and whether or not it is a scene
material, invalidates the associated swatch image.
MaterialLibrarySelector.MaterialLibrarySelector.updateMaterialSwatch |
( |
|
) |
|
This is called after the swatch generator has created a material
image, probably as a JPEG file.
To make it look nice in the display, we need to matte out part
of the image before using it. We do this by masking the generated
image using an image with the required mask.
MaterialLibrarySelector.MaterialLibrarySelector.openGroup |
( |
|
) |
|
Open a group with a given name if it is not already opened.
MaterialLibrarySelector.MaterialLibrarySelector.selectCallback |
( |
|
) |
|
This method is called whenever a control in the library list ui
is selected.