51# include <Inventor/Win/SoWinMaterialList.h>
54#ifndef _SO_XT_MATERIAL_LIST_H_
55#define _SO_XT_MATERIAL_LIST_H_
57#include <X11/Intrinsic.h>
58#include <Inventor/SbBasic.h>
59#include <Inventor/misc/SoCallbackList.h>
60#include <Inventor/Xt/SoXtComponent.h>
61#include <Inventor/nodes/SoMaterial.h>
113 SoWidget parent = NULL,
114 const char *name = NULL,
115 SbBool buildInsideParent = TRUE,
116 const char *dir = NULL);
128 SoXtMaterialListCB *f,
129 void *userData = NULL)
130 { callbackList->
addCallback((SoCallbackListCB *) f, userData);}
136 SoXtMaterialListCB *f,
137 void *userData = NULL)
138 { callbackList->
removeCallback((SoCallbackListCB *) f, userData); }
154 virtual SbString getDefaultWidgetName()
const;
155 virtual SbString getDefaultTitle()
const;
156 virtual SbString getDefaultIconTitle()
const;
159 SoWidget buildWidget(SoWidget parent);
160 SoWidget buildPulldownMenu(SoWidget parent);
172 void fillInMaterialList();
176 static void menuPick(SoWidget,
int,
XtPointer);
180 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.
Abstract base class for all Open Inventor components.
Component which lets you edit a material interactively.
SoXtMaterialList(SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE, const char *dir=NULL)
The constructor is passed a directory name which serves as the home directory for the material palett...
void SoXtMaterialListCB(void *userData, const SoMaterial *mtl)
~SoXtMaterialList()
Destructor.
void removeCallback(SoXtMaterialListCB *f, void *userData=NULL)
Removes callback.
void addCallback(SoXtMaterialListCB *f, void *userData=NULL)
Registers functions that will be called whenever the user chooses a new material from the list.