GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SOXTMATERIALLIST (3)

NAME

SoXtMaterialList — component which lets you edit a material interactively

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoXtComponent > SoXtMaterialList

SYNOPSIS

#include <Inventor/Xt/SoXtMaterialList.h>

    typedef void    
                    
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    
                        
virtual void             show()    
virtual void    
                        
virtual void             hide()    
SbBool    
                        
SbBool                   isVisible()    
Widget    
                        
Widget                   getWidget() const    
SbBool    
                        
SbBool                   isTopLevelShell() const    
Widget    
                        
Widget                   getShellWidget() const    
Widget    
                        
Widget                   getParentWidget() const    
void    
                        
void                     setSize(const SbVec2s &size)    
SbVec2s    
                        
SbVec2s                  getSize()    
Display *    
                        
Display *                getDisplay()    
void    
                        
void                     setTitle(const char *newTitle)    
const char *    
                        
const char *             getTitle() const    
void    
                        
void                     setIconTitle(const char *newIconTitle)    
const char *    
                        
const char *             getIconTitle() const    
void    
                        
void                     setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL)    
static SoXtComponent *    
                        
static SoXtComponent *   getComponent(Widget w)    
const char *    
                        
const char *             getWidgetName() const    
const char *    
                        
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 palette; 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 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.

SEE ALSO

SoXtComponent, SoCallbackList, SoMaterial, SoXtMaterialEditor

Search for    or go to Top of page |  Section 3 |  Main Index


SOXTMATERIALLIST(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.