MaterialList.MaterialList Class Reference

#include <class_material_list_1_1_material_list.h>

Inheritance diagram for MaterialList.MaterialList:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  __init__ ()
  requestSwatchGeneration ()
  setMaterialImages ()
  setMaterialImage ()
  Sets the swatch image path for the given material.
  materialImages ()
  getImage ()
  Return the swatch image for the specified material.
  isGroupOpen ()
  setGroupOpen ()
  groupSpace ()
  textOffset ()
  createImageControl ()
  createItemLayout ()
  Create an item layout.
  indent ()
  itemSpacing ()
  createIndicator ()
  maskImage ()
  This is called after the swatch generator has created a material image, probably as a JPEG file.
  getCachedSwatchFilename ()
  createMaterialImage ()
  Create the image control.
  createText ()
  Create the text control.
  createBorder ()
  Create the border control.

Member Function Documentation

MaterialList.MaterialList.__init__ ( )
MaterialList.MaterialList.requestSwatchGeneration ( )
MaterialList.MaterialList.setMaterialImages ( )
MaterialList.MaterialList.setMaterialImage ( )

Sets the swatch image path for the given material.

MaterialList.MaterialList.materialImages ( )
MaterialList.MaterialList.getImage ( )

Return the swatch image for the specified material.

MaterialList.MaterialList.isGroupOpen ( )
MaterialList.MaterialList.setGroupOpen ( )
MaterialList.MaterialList.groupSpace ( )
MaterialList.MaterialList.textOffset ( )
MaterialList.MaterialList.createImageControl ( )
MaterialList.MaterialList.createItemLayout ( )

Create an item layout.

What is an item layout?

Must return a list of layouts. A layout is a tuple containing the position and size of a control.

( x, y, width, height, data )

Feel free to attach any data desired to the last data parameter.

Reimplemented from ListUi.ListUi.

Reimplemented in MaterialSceneSelector.MaterialSceneListUi.

MaterialList.MaterialList.indent ( )
MaterialList.MaterialList.itemSpacing ( )
MaterialList.MaterialList.createIndicator ( )
MaterialList.MaterialList.maskImage ( )

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.

MaterialList.MaterialList.getCachedSwatchFilename ( )
MaterialList.MaterialList.createMaterialImage ( )

Create the image control.

This control is responsible for drawing the image corresponding to the material.

MaterialList.MaterialList.createText ( )

Create the text control.

This control is responsible for drawing the name of the item and a background image to ensure the name is visible.

MaterialList.MaterialList.createBorder ( )

Create the border control.

This control is responsible for drawing the border, the highlight and selection.


MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList
MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList MaterialList.MaterialList