1SoXtMaterialList(3IV)()                                SoXtMaterialList(3IV)()
2
3
4

NAME

6       SoXtMaterialList  —  component  which lets you edit a material interac‐
7       tively
8

INHERITS FROM

10       SoXtComponent > SoXtMaterialList
11

SYNOPSIS

13       #include <Inventor/Xt/SoXtMaterialList.h>
14
15     typedef void        SoXtMaterialListCB(void *userData,  const  SoMaterial
16                              *mtl)
17
18          Methods from class SoXtMaterialList:
19
20                         SoXtMaterialList(Widget  parent  =  NULL,  const char
21                              *name = NULL, SbBool buildInsideParent  =  TRUE,
22                              const char *dir = NULL)
23                         ~SoXtMaterialList()
24                         addCallback(SoXtMaterialListCB  *f,  void *userData =
25                              NULL)
26                         removeCallback(SoXtMaterialListCB *f, void  *userData
27                              = NULL)
28
29          Methods from class SoXtComponent:
30
31     virtual void            show()
32     virtual void            hide()
33     SbBool                  isVisible()
34     Widget                  getWidget() const
35     SbBool                  isTopLevelShell() const
36     Widget                  getShellWidget() const
37     Widget                  getParentWidget() const
38     void                    setSize(const SbVec2s &size)
39     SbVec2s                 getSize()
40     Display *               getDisplay()
41     void                    setTitle(const char *newTitle)
42     const char *            getTitle() const
43     void                    setIconTitle(const char *newIconTitle)
44     const char *            getIconTitle() const
45     void                    setWindowCloseCallback(SoXtComponentCB     *func,
46                                  void *data = NULL)
47     static SoXtComponent *  getComponent(Widget w)
48     const char *            getWidgetName() const
49     const char *            getClassName() const
50
51

DESCRIPTION

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

METHODS

59                         SoXtMaterialList(Widget  parent  =  NULL,  const char
60                              *name = NULL, SbBool buildInsideParent  =  TRUE,
61                              const char *dir = NULL)
62                         ~SoXtMaterialList()
63          The  constructor is passed a directory name which serves as the home
64          directory for the material palettes. You can have any number of pal‐
65          ettes  in  this directory. A palette is a subdirectory that contains
66          Inventor data files, where each file describes one material.  Prede‐
67          fined Inventor materials are found in /usr/share/data/materials.
68
69                         addCallback(SoXtMaterialListCB  *f,  void *userData =
70                              NULL)
71                         removeCallback(SoXtMaterialListCB *f, void  *userData
72                              = NULL)
73          Register  functions  that will be called whenever the user chooses a
74          new material from the list.  Each  callback  when  invoked  will  be
75          passed  the  userData  pointer,  along  with  a pointer to the newly
76          selected material.
77
78

SEE ALSO

80       SoXtComponent, SoCallbackList, SoMaterial, SoXtMaterialEditor
81
82
83
84
85                                                       SoXtMaterialList(3IV)()
Impressum