26#ifndef _SO_WIN_MATERIAL_PALETTE_
27#define _SO_WIN_MATERIAL_PALETTE_
77 const char *name = NULL,
94 void *userData = NULL);
97 void *userData = NULL);
121 static HKEY tgsRegKey;
123 void makePaletteMenuList(HMENU menuBar);
129 SoWinMaterialPalette(
136 virtual SbString getDefaultWidgetName()
const;
137 virtual SbString getDefaultTitle()
const;
138 virtual SbString getDefaultIconTitle()
const;
141 unsigned long nCurrEditId ;
146 WPARAM wParam, LPARAM lParam );
147 static void onCommand(
153 void handleMenu(SoWinMaterialPalette *p,
156 void initPlacement() ;
176 static void staticSelectionCB(
void *userData,
SoPath *path);
177 void selectionCB(
SoPath * path);
182 LPCTSTR getMaterialDir();
183 void setMaterialDir(LPCTSTR dirPath);
184 SbBool saveMaterial(LPCTSTR fName);
186 char* m_materialPath;
187 void changeMaterialPath(
UINT id);
192 void adjustVScrollInfo(
long rows);
193 void scrollCamera(
int nScrollCode,
short int nPos);
206 void copyMaterial(
SoMaterial *mat1,
int index1,
210 static void pasteDone(
void *userData,
SoPathList *pathList);
213 static void materialListCB(
void *,
const SoMaterial *);
223 void constructorCommon(
SbBool buildNow);
228SoWinMaterialPalette::addMaterialChangedCallback(
234SoWinMaterialPalette::removeMaterialChangedCallback(
#define TRUE
Possible value of SbBool.
#define FALSE
Possible value of SbBool.
SoWinColorSlider(SoWidget parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE, Type type=INTENSITY_SLIDER)
#define XmAnyCallbackStruct
void SoWinMaterialPaletteCB(void *userData, const SoMaterial *mtl)
static void staticLocation2EventCB(void *userData, SoEventCallback *node)
void setPaletteBaseDir(LPCTSTR newBaseDir)
void browsePalletteBaseDir()
void attach(SoMaterial *material, int index=0)
void addMaterialChangedCallback(SoWinMaterialPaletteCB *f, void *userData=NULL)
void location2Event(SoEventCallback *node)
void removeMaterialChangedCallback(SoWinMaterialPaletteCB *f, void *userData=NULL)
void setMaterial(const SoMaterial &mtl)
const SoMaterial & getMaterial() const
Class for smart character strings.
Node that defines an object's base color.
Base class for all nodes, paths, and engines.
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.
Node representing a directional light source.
Node which invokes callbacks for events.
Multiple-value field containing any number of RGB colors stored as three floats.
Surface material definition node.
Abstract base class for all database nodes.
Sensor class that can be attached to Open Inventor nodes.
Orthographic camera node.
Path that points to a list of hierarchical nodes.
Maintains a list of pointers to paths.
Manages a list of selected objects.
Abstract base class for Open Inventor sensors.
Group node that saves and restores traversal state.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Supports copy/pa...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component that l...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component which ...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Viewer component...
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Component for re...
void SoCallbackListCB(void *userData, void *callbackData)