logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SoXtMaterialList — component which lets you edit a material interactively

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.

Inherits From

       SoXtComponent > SoXtMaterialList

Methods

SoXtMaterialList(Widgetparent=NULL,constchar*name=NULL,SbBoolbuildInsideParent=TRUE,constchar*dir=NULL)~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.

                         addCallback(SoXtMaterialListCB*f,void*userData=NULL)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.

Name

       SoXtMaterialList — component which lets you edit a material interactively

See Also

SoXtComponent,SoCallbackList,SoMaterial,SoXtMaterialEditorSoXtMaterialList(3IV)()

Synopsis

#include<Inventor/Xt/SoXtMaterialList.h>typedefvoidSoXtMaterialListCB(void*userData,constSoMaterial*mtl)

          Methods from class SoXtMaterialList:

                         SoXtMaterialList(Widgetparent=NULL,constchar*name=NULL,SbBoolbuildInsideParent=TRUE,constchar*dir=NULL)~SoXtMaterialList()addCallback(SoXtMaterialListCB*f,void*userData=NULL)removeCallback(SoXtMaterialListCB*f,void*userData=NULL)

          Methods from class SoXtComponent:

     virtualvoidshow()virtualvoidhide()SbBoolisVisible()WidgetgetWidget()constSbBoolisTopLevelShell()constWidgetgetShellWidget()constWidgetgetParentWidget()constvoidsetSize(constSbVec2s&size)SbVec2sgetSize()Display*getDisplay()voidsetTitle(constchar*newTitle)constchar*getTitle()constvoidsetIconTitle(constchar*newIconTitle)constchar*getIconTitle()constvoidsetWindowCloseCallback(SoXtComponentCB*func,void*data=NULL)staticSoXtComponent*getComponent(Widgetw)constchar*getWidgetName()constconstchar*getClassName()const

See Also