26#ifndef _SO_WIN_MATERIAL_LIST_H_
27#define _SO_WIN_MATERIAL_LIST_H_
33#include <Inventor/SbBasic.h>
34#include <Inventor/misc/SoCallbackList.h>
35#include <Inventor/Win/SoWinComponent.h>
36#include <Inventor/nodes/SoMaterial.h>
39typedef void SoWinMaterialListCB(
void *userData,
const SoMaterial *mtl);
52 SoWidget parent = NULL,
53 const char *name = NULL,
54 SbBool buildInsideParent = TRUE,
55 const char *dir = NULL);
62 SoWinMaterialListCB *f,
63 void *userData = NULL)
64 { callbackList->
addCallback((SoCallbackListCB *) f, userData);}
67 SoWinMaterialListCB *f,
68 void *userData = NULL)
69 { callbackList->
removeCallback((SoCallbackListCB *) f, userData); }
85 virtual SbString getDefaultWidgetName()
const;
86 virtual SbString getDefaultTitle()
const;
87 virtual SbString getDefaultIconTitle()
const;
90 SoWidget buildWidget(SoWidget parent);
91 SoWidget buildPulldownMenu(SoWidget parent);
103 void fillInMaterialList();
107 static void menuPick(SoWidget,
int,
XtPointer);
108 static void listPick(SoWidget, SoWinMaterialList *,
XtPointer);
111 void constructorCommon(
const char *dir,
SbBool buildNow);
List of generic (void *) pointers.
Class for smart character strings.
Manages a list of callbacks and associated data.
void addCallback(SoCallbackListCB *f, void *userData=NULL)
Adds a function to the list of callback functions.
void removeCallback(SoCallbackListCB *f, void *userData=NULL)
Removes a function from the list of callback functions.
Surface material definition node.