Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

soxtmateriallist(3iv) [debian man page]

SoXtMaterialList(3IV)() 												   SoXtMaterialList(3IV)()

NAME
SoXtMaterialList -- component which lets you edit a material interactively INHERITS FROM
SoXtComponent > SoXtMaterialList SYNOPSIS
#include <Inventor/Xt/SoXtMaterialList.h> typedef void SoXtMaterialListCB(void *userData, const SoMaterial *mtl) Methods from class SoXtMaterialList: SoXtMaterialList(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE, const char *dir = NULL) ~SoXtMaterialList() addCallback(SoXtMaterialListCB *f, void *userData = NULL) removeCallback(SoXtMaterialListCB *f, void *userData = NULL) Methods from class SoXtComponent: virtual void show() virtual void hide() SbBool isVisible() Widget getWidget() const SbBool isTopLevelShell() const Widget getShellWidget() const Widget getParentWidget() const void setSize(const SbVec2s &size) SbVec2s getSize() Display * getDisplay() void setTitle(const char *newTitle) const char * getTitle() const void setIconTitle(const char *newIconTitle) const char * getIconTitle() const void setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL) static SoXtComponent * getComponent(Widget w) const char * getWidgetName() const const char * getClassName() const DESCRIPTION
This class is used to choose an SoMaterial from palettes of predefined materials (for example, gold, silver, or bronze from the metal pal- ette; emerald, pearl, or ruby from the stones palette). The chosen material is passed to callback functions registered with this component. METHODS
SoXtMaterialList(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE, const char *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 pal- ettes in this directory. A palette is a subdirectory that contains Inventor data files, where each file describes one material. Prede- fined 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. SEE ALSO
SoXtComponent, SoCallbackList, SoMaterial, SoXtMaterialEditor SoXtMaterialList(3IV)()

Check Out this Related Man Page

SoXtDirectionalLightEditor(3IV)()										 SoXtDirectionalLightEditor(3IV)()

NAME
SoXtDirectionalLightEditor -- component for editing directional lights INHERITS FROM
SoXtComponent > SoXtDirectionalLightEditor SYNOPSIS
#include <Inventor/Xt/SoXtDirectionalLightEditor.h> typedef void SoXtDirectionalLightEditorCB(void *userData, const SoDirectionalLight *light) Methods from class SoXtDirectionalLightEditor: SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE) ~SoXtDirectionalLightEditor() void attach(SoPath *pathToLight) void detach() SbBool isAttached() void addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL) void removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL) void setLight(const SoDirectionalLight &newLight) const SoDirectionalLight & getLight() const Methods from class SoXtComponent: virtual void show() virtual void hide() SbBool isVisible() Widget getWidget() const SbBool isTopLevelShell() const Widget getShellWidget() const Widget getParentWidget() const void setSize(const SbVec2s &size) SbVec2s getSize() Display * getDisplay() void setTitle(const char *newTitle) const char * getTitle() const void setIconTitle(const char *newIconTitle) const char * getIconTitle() const void setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL) static SoXtComponent * getComponent(Widget w) const char * getWidgetName() const const char * getClassName() const DESCRIPTION
This class is used to edit an SoDirectionalLight node (color, intensity, and direction are changed). In addition to directly editing direc- tional light nodes, the editor can also be used with callbacks which will be called whenever the light is changed. The component consists of a render area and a value slider in the main window, with controls to display a color picker. In the render area there appears a sphere representing the world, and a directional light manipulator representing the direction of the light. Picking on the manipulator and moving the mouse provides direct manipulation of the light direction. The color picker is used to edit the color, and the value slider edits the intensity. The editor can currently be attached to only one light at a time. Attaching to two different lights will automatically detach the first one before attaching the second. METHODS
SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE) ~SoXtDirectionalLightEditor() Constructor and destructor. void attach(SoPath *pathToLight) void detach() Attach/detach the editor to/from a directional light. When attached, changes made in the editor directly affect the attached light. SbBool isAttached() Returns TRUE if the editor is attached. void addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL) void removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL) Additional way of using the directional light editor, by registering a callback and setting the light. void setLight(const SoDirectionalLight &newLight) const SoDirectionalLight & getLight() const Set new light values, and get the current light values. SEE ALSO
SoXtComponent, SoDirectionalLight SoXtDirectionalLightEditor(3IV)()
Man Page