man SoXtMaterialList () - component which lets you edit a material interactively

NAME

SoXtMaterialList - component which lets you edit a material interactively

INHERITS FROM

SoXtComponent > SoXtMaterialList

SYNOPSIS

#include <Inventor/Xt/SoXtMaterialList.h> c } c } SoXtMaterialListCB(void *userData, const SoMaterial *mtl) Methods from class SoXtMaterialList: c } c } SoXtMaterialList(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE, const char *dir = NULL)

c } c } ~SoXtMaterialList()

c } c } addCallback(SoXtMaterialListCB *f, void *userData = NULL)

c } c } removeCallback(SoXtMaterialListCB *f, void *userData = NULL) Methods from class SoXtComponent: c } c } show()

c } c } hide()

c } c } isVisible()

c } c } getWidget() const

c } c } isTopLevelShell() const

c } c } getShellWidget() const

c } c } getParentWidget() const

c } c } setSize(const SbVec2s &size)

c } c } getSize()

c } c } getDisplay()

c } c } setTitle(const char *newTitle)

c } c } getTitle() const

c } c } setIconTitle(const char *newIconTitle)

c } c } getIconTitle() const

c } c } setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL)

c } c } getComponent(Widget w)

c } c } getWidgetName() const

c } c } getClassName() const

DESCRIPTION

This class is used to choose an SoMaterial from palettes of predefined materials (for example, gold, silver, or bronze from the metal palette; emerald, pearl, or ruby from the stones palette). The chosen material is passed to callback functions registered with this component.

METHODS

c } c } SoXtMaterialList(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE, const char *dir = NULL)

c } c } ~SoXtMaterialList()

The constructor is passed a directory name which serves as the home directory for the material palettes. You can have any number of palettes in this directory. A palette is a subdirectory that contains Inventor data files, where each file describes one material. Predefined Inventor materials are found in /usr/share/data/materials. c } c } addCallback(SoXtMaterialListCB *f, void *userData = NULL)

c } c } removeCallback(SoXtMaterialListCB *f, void *userData = NULL)

Register functions that will be called whenever the user chooses a new material from the list. Each callback when invoked will be passed the userData pointer, along with a pointer to the newly selected material.

SEE ALSO

SoXtComponent, SoCallbackList, SoMaterial, SoXtMaterialEditor